Forum Moderators: coopster & phranque

Message Too Old, No Replies

Is it possible to request this server variable?

         

FiRe

12:45 pm on Aug 9, 2005 (gmt 0)

10+ Year Member



I am trying to log in through active directories in Perl (not ASP)! I am told you have to request the server variable LOGON_USER but it doesn't seem to work!
Code:

#!C:/Perl/bin/perl.exe
use CGI;
print "Content-type: text/html\n\n";
print $ENV{LOGON_USER};

Is this even possible to do in Perl or is this faulty code?

bennymack

6:50 pm on Aug 9, 2005 (gmt 0)

10+ Year Member



#!C:/Perl/bin/perl.exe
use CGI;
print "Content-type: text/html\n\n";
map { print "\$ENV{$_}=$ENV{$_}<br />\n"; } keys %ENV;

## To find what's available

WWMike

10:32 pm on Aug 10, 2005 (gmt 0)

10+ Year Member



Never heard of that one but $ENV{REMOTE_USER} contains the authorized user that is currently logged in, if there is one.