"DOMAIN\username" vs "username" for login
Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=28526
Printed Date: 01 April 2026 at 9:11pm Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: "DOMAIN\username" vs "username" for login
Posted By: jaycer
Subject: "DOMAIN\username" vs "username" for login
Date Posted: 16 April 2010 at 5:44pm
When logging in with Active Directory, the accounts used to show up just as their username was. Now, however it shows up as "DOMAIN\username". Anyone know of a way to force the login to be just the username?
It seems like the difference may be the client, as with an XP machine I had, it didn't do this, but my Win7 machine does.
|
Replies:
Posted By: jaycer
Date Posted: 16 April 2010 at 6:45pm
I added the following to functions\functions_windows_authentication.asp around the 262 line and that fixed it for me...at least with Internet Explorer. Firefox is giving me issues though for some reason.
'Strip domain here: If InStr(strAuthenticatedUser, "\") Then strAuthenticatedUser = Right(strAuthenticatedUser, (Len(strAuthenticatedUser)-InStr(strAuthenticatedUser, "\"))) End If
|
Posted By: jaycer
Date Posted: 21 April 2010 at 4:55pm
Yeah, I don't know what's up...I think this was all crappy cookie management or something. I deleted my cookies and it worked without the additional code.
Why are cookies even used?
|
Posted By: WebWiz-Bruce
Date Posted: 21 April 2010 at 5:36pm
Cookies are used to improve session tracking, without them the session tracking does not work so well.
You can prevent cookies being used by commenting the following lines out at the end of the functions_windows_authentication.asp file:-
'Write auto login cookie (can improve tracking for some browsers) Call setCookie("sLID", "UID", strAuthenticatedUser, True) Call setCookie("sLID", "NS", "0", True) |
------------- https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting
|
|