Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - "DOMAIN\username" vs "username" for login
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

"DOMAIN\username" vs "username" for login

 Post Reply Post Reply
Author
jaycer View Drop Down
Newbie
Newbie


Joined: 15 April 2010
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote jaycer Quote  Post ReplyReply Direct Link To This Post Topic: "DOMAIN\username" vs "username" for login
    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.


Edited by jaycer - 16 April 2010 at 5:55pm
Back to Top
jaycer View Drop Down
Newbie
Newbie


Joined: 15 April 2010
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote jaycer Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
jaycer View Drop Down
Newbie
Newbie


Joined: 15 April 2010
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote jaycer Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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)

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.