Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Check NT login via CGI perl script / Webserver authentication

by daniel98 (Initiate)
on Apr 24, 2003 at 17:00 UTC ( #252952=perlquestion: print w/replies, xml ) Need Help??
daniel98 has asked for the wisdom of the Perl Monks concerning the following question:

I'm running a website on a linux server using Apache. The linux server is part of an intranet. All users run windows and log in to our domain when they log on to their computers.

When these users visit my website, I want to know what the username is that they used to log into our domain. Is that possible? If so, how?

I would very much appreciate any help I could get.

Thank you,
Daniel
  • Comment on Check NT login via CGI perl script / Webserver authentication

Replies are listed 'Best First'.
Re: Check NT login via CGI perl script / Webserver authentication
by eduardo (Curate) on Apr 24, 2003 at 18:21 UTC
      Doesn't NTLM require the user to re-enter their windows username and password when accessing my site?

      My goal is that the user doesn't have to enter anything else once he/she successfully logged on to our network.
      I will use the username (that was already authenticated by the network) to authorize access to certain pages.

      Thanks,
      Daniel
        I hate to sound like a pedantic ass. But, if you read the document I had linked to my response at Apache::AuthenNTML you'll see that it says:
        The purpose of this module is to perform a user authentication via Mircosofts NTLM protocol. This protocol is supported by all versions of the Internet Explorer and is mainly usefull for intranets. Depending on your preferences setting IE will supply your windows logon credentials to the web server when the server asks for NTLM authentication. This saves the user to type in his/her password again.
        What really seems to get my goat is that you asked this question before at NT login to authenticate web user and you got basically the same answer I gave you from valdez. Go to your network, set up a few of the solutions that have been suggested to you, try them out, get back to us with error messages or success stories.
Re: Check NT login via CGI perl script / Webserver authentication
by allyc (Scribe) on Apr 24, 2003 at 21:02 UTC
    Hi,

    I know that you are using Linux and Apache... but you can also use MS IIS which will do this automatically. This is the solution that I have just had to use at work.

    I am however interested if you have managed to get any of the other methods working as I would much prefer to use Unix and Apache.

    Dose anyone have any experience with the Apache-AuthenNTLM-0.23 module?

    Thanks,

    Alistair

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://252952]
Approved by Corion
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2018-05-24 06:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?