Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Checking Windows Authentication

by BigJoe (Curate)
on Nov 03, 2001 at 03:02 UTC ( #122943=note: print w/replies, xml ) Need Help??

in reply to Checking Windows Authentication

Actually I am looking at doing this by using a mod for apache called mod_auth_smb. I believe it is written in perl. It requires that you have the samba client libraries installed on the *nix system. Then you can install the module using:
perl -MCPAN -e'shell' install Apache::AuthenSmb
This will install the stuff you need for authentication. Then I put in my httpd.conf file this line where I wanted the authentication point to be:
<Location > AuthName "Warning this is a restricted area" AuthType Basic PerlSetVar myPDC PDC.domain PerlSetVar myDOMAIN domain PerlAuthenHandler Apache::AuthenSmb require valid-user </Location>
you need to change PDC.domain to your PDC server and your domain along with changing the domian on the next line. Because it passes these variables through to the authentication script. Also in your open Location tag you need to specify the location (acording to the webserver like /). Location can also be replaced by file directive to allow authentication to a file.

Hope this helps. </code>


Learn patience, you must.
Young PerlMonk, craves Not these things.
Use the source Luke.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://122943]
erix learned the word 'portaging' not so long ago (from vikings lugging their ships from one river-system to another)
[choroba]: my best run so far
[erix]: I think they build a portaging installation for yachts here not so long ago - lemme google it
[erix]: choroba ah, you should have sprinted 7 s off that :)
[erix]: (but then there's always a next (im)possible goal)
Corion avoids running by starting on time
[choroba]: my phone showed me 1 hour 10 km which was my goal, it changed a bit after uploading to the website
[erix]: choroba I believe you ;)

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2017-05-24 12:50 GMT
Find Nodes?
    Voting Booth?