Python for ASP

Yann Schwartz yann at winwise.fr
Wed Nov 8 13:02:10 EST 2000


On Tue, 07 Nov 2000 21:50:47 GMT, "Arturo Pérez Mulas"
<arturo_perez at wanadoo.es> wrote:

>> >2) I request login to access to my pages via an NT net server. Is the
>> >login name stored somewhere in the ASP jungle?
>> The login is a user defined on the NT Web Server (or on the domain the
>> server is). So to authenticate on it, you need to provide a valid
>> login/pwd corresponding to a user in the nt box.
>
>Ok! Let's say a user is properly authenticated by the NT domain server,
>and get access to my pages. Is there any way to know what his login
>string is?

Yes, there is with

Request.ServerVariables("AUTH_USER")

or

Request.ServerVariables("LOGON_USER")

(which are basically the same in this context)

You get the login in the form "domain\user"

>From this login, you can query the corresponding first name, last
name, etc. using the WinNT provider for ADSI (and ADSI, of course).




More information about the Python-list mailing list