Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Obtaining Windows username from an intranet ActiveState Perl script

by Plankton (Priest)
on Feb 07, 2013 at 00:23 UTC ( #1017530=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Obtaining Windows username from an intranet ActiveState Perl script
in thread Obtaining Windows username from an intranet ActiveState Perl script

Its like any other authentication scheme, the user supplies the username and a password. Or does Apache2::AuthenNTLM somehow read the mind of the person on the other end of the network and determine their window's username? Not even windows can get a person username until they type it in to the login screen. Maybe what you are looking for is a single sign on solution. If so why didn't ask about that? I have used products from Quest http://www.quest.com/identity-management/ that handle Apache authentication with Window credentials but its not free or opensource.


Comment on Re^3: Obtaining Windows username from an intranet ActiveState Perl script
Re^4: Obtaining Windows username from an intranet ActiveState Perl script
by saa (Initiate) on Feb 07, 2013 at 00:55 UTC

    Because the users are on intranet and it's a Microsoft IT environment, their browser automatically identifies who they are (I believe using NTLM authentication).

    Using ASP, the variable is HttpContext.Current.User

    The original post that I linked to also describes this scenario (where the intranet user never has to supply their username/password to the site, but the site can still obtain it).

      So, you're running this "perl script" under what environment? Have you looked inside %ENV?
        I am running this script using Apache Web Server on Windows. I have tried the code that displays all variables inside of %ENV, but in terms of identifying the users that shows only their IP and not their username.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017530]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2014-09-02 19:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (29 votes), past polls