Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Obtaining Windows username from an intranet ActiveState Perl script

by Plankton (Priest)
on Feb 06, 2013 at 22:40 UTC ( #1017520=note: print w/ replies, xml ) Need Help??


in reply to Obtaining Windows username from an intranet ActiveState Perl script

Why did you choose Apache2::AuthenNTLM? Looking on CPAN it doesn't look like a very well maintained module, http://search.cpan.org/~speeves/Apache2-AuthenNTLM-0.02/ Why can't you use Basic Apache authentication?


Comment on Re: Obtaining Windows username from an intranet ActiveState Perl script
Replies are listed 'Best First'.
Re^2: Obtaining Windows username from an intranet ActiveState Perl script
by saa (Initiate) on Feb 06, 2013 at 23:31 UTC
    Is Basic Apache authentication able to automatically get the person's Windows username without prompting them?
      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.

        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).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2015-07-07 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls