with IIS, if you allow only "integrated windows authentication", 
then in ASP you have Request.ServerVariables("AUTH_USER"), which 
contains just the user's NT account in the form of "domain\user". 
the same information can be found in an HTTP head, i forgot 
the name of the head though. You can find out using a packet sniffer.
i don't have much experience with Apache, so i don't know the 
equevalent of "integrated windows authentication" mode in Apache.

Regards
Yimin

On Fri, 7 Dec 2001 15:09:01 -0500
Weir, Jason - Contractor wrote:

>when calling a cgi from Internet Explorer (and I imagine other 
browsers) the
>browser will pass the web server (apache or IIS or whatever) 
a number of
>variables.  Some are as follows
>
>GATEWAY_INTERFACE
>REQUEST_METHOD
>SCRIPT_NAME
>QUERY_STRING 
>SERVER_SOFTWARE
>SERVER_NAME
>SERVER_PROTOCOL
>SERVER_PORT
>HTTP_USER_AGENT
>HTTP_ACCEPT
>PATH_INFO 
>PATH_TRANSLATED
>REMOTE_HOST
>REMOTE_ADDR
>REMOTE_USER 
>REMOTE_IDENT 
>AUTH_TYPE 
>CONTENT_TYPE 
>CONTENT_LENGTH
>
>I mentioned IE because it gives the NT Username as REMOTE_USER
>
>
>Jason Weir
>
>-----Original Message-----
>From: Ailes, Kevin [mailto:[EMAIL PROTECTED]]
>Sent: Friday, December 07, 2001 3:09 PM
>To: 'Weir, Jason - Contractor'
>Subject: RE: User validation
>
>
>you mean Internet Information Server?  or Internet Explorer?
>
>Kevin Ailes
>Administrator
>OTTO Engineering
>
>> -----Original Message-----
>> From:        Weir, Jason - Contractor [SMTP:[EMAIL PROTECTED]]
>> Sent:        Friday, December 07, 2001 1:39 PM
>> To:  'Ailes, Kevin'
>> Cc:  '[EMAIL PROTECTED]'
>> Subject:     RE: User validation
>> 
>> IE does it has a USERNAME variable which is passed to the 
CGI script as
>> one
>> of the defualt CGI variables... Not sure about Netscape..
>> 
>> Jason
>> 
>> -----Original Message-----
>> From: Ailes, Kevin [mailto:[EMAIL PROTECTED]]
>> Sent: Thursday, December 06, 2001 2:37 PM
>> To: Perl-win32-admin list (E-mail)
>> Subject: User validation
>> 
>> 
>> I am going to be building an interface via perl through an 
apache web
>> server
>> to a mysql database.
>> 
>> I want to be able to get the user's "NT Username" without 
having to prompt
>> the user for any info.
>> 
>> Is this even possible or does the browser not have a clue 
what user is
>> running it?
>> 
>> I have been hacking/slashing out some automation for a long 
time with
>> perl,
>> but have never attempted to figure out info about who the 
user is on the
>> other end of the connection.(we had a small network, but 
it is now big
>> enough that I should start worrying about a little security, 
but I don't
>> want to burden the user with another password to remember...)
>> 
>> Thanks for any responses,
>> 
>> Kevin Ailes
>> Administrator
>> OTTO Engineering
>> 
>> _______________________________________________
>> Perl-Win32-Admin mailing list
>> [EMAIL PROTECTED]
>> http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
>_______________________________________________
>Perl-Win32-Admin mailing list
>[EMAIL PROTECTED]
>http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
>
>



--------------------------------------------------------------------------
Global Internet phone calls, voicemail, fax, e-mail and instant messaging.
Sign-up today at http://www.hotvoice.com

Reply via email to