Web Development

General discussion

Locked

Interrogate user login name

By munrrob ·
This is probably bread and butter but I need to know how I can capture the log in name for a user on a Windows 2K domain using a VBScript asp page running on an IIS intranet server. There is more than one domain accessing the server but I do not need to know password or domain name, just login name (as these are unique across the domains).

Any help appreciated.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

by steven_v_brown In reply to Interrogate user login na ...

In IIS set the page properties to authenicate. (Remove Anonymous Flag)

Then in your ASP query your Server Variable
I.e.:
UserID = Request.ServerVariables("Auth_User)
"Auth_User" or "Remote_User"

That will return the User that is Logged onto the PC.

Collapse -

by munrrob In reply to

Poster rated this answer.

Collapse -

by steven_v_brown In reply to Interrogate user login na ...

In IIS set the page properties to authenicate. (Remove Anonymous Flag)

Then in your ASP query your Server Variable
I.e.:
UserID = Request.ServerVariables("Auth_User)
"Auth_User" or "Remote_User"

That will return the User that is Logged onto the PC.

Collapse -

by munrrob In reply to

Poster rated this answer.

Collapse -

by munrrob In reply to Interrogate user login na ...

This question was closed by the author

Related Discussions

Related Forums