PDA

Click to See Complete Forum and Search --> : Security


Curry
Oct 4th, 2000, 09:49 PM
I am developing a DLL that will find the User Name of the person logged on to a computer and do some other verification before allowing the user to move on. This DLL work's perfectly from a local machine, but when installed on the server and used with a ASP page, it can not find the name of the user who's activating this ASP page.

How can I find the User Name of the person who's clicking the ASP page????

harsoni
Oct 5th, 2000, 03:34 PM
Try using in asp file

<%=Request.servervariables("LOGON_USER") %>

Chers
Harsoni

monte96
Oct 5th, 2000, 05:21 PM
That's because the user has to be running NT or 2000.

I don't know how you are getting this info with the dll but your dll on the server will not be able to get at this info.

Your best bet is to create a login page.

Clunietp
Oct 5th, 2000, 10:28 PM
If you want to get the NT User name on an ASP page via the LOGON_USER parameter, you must disable anonymous access to your directory. This will force authentication to occur and allow you to get the NT name.