Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: OT ? : Active Directory Authentication with Perl, Mod_Perl and Apache

by eric256 (Parson)
on Mar 11, 2008 at 18:49 UTC ( [id://673583]=note: print w/replies, xml ) Need Help??


in reply to OT ? : Active Directory Authentication with Perl, Mod_Perl and Apache

I use the following HTTP conf to restrict access to my Trac SVN repo

<Location /svn> DAV svn SVNParentPath /projects/svn Order allow,deny Allow from all AuthType Basic AuthName "Trac" AuthBasicProvider "ldap" AuthLDAPURL "ldap://domain.com:389/DC=domain,DC=com?sAMAccountName? +sub?(objectClass=*)" AuthLDAPBindDN "user@domain.com" AuthLDAPBindPassword "password" authzldapauthoritative Off require ldap-group CN=Trac,CN=Users,DC=domain,DC=com </Location>

I don't think you need perl at all for this aspect. I do also have a perl script that uses LDAP for authentication but its not to protect a website.


___________
Eric Hodges
  • Comment on Re: OT ? : Active Directory Authentication with Perl, Mod_Perl and Apache
  • Download Code

Replies are listed 'Best First'.
Re^2: OT ? : Active Directory Authentication with Perl, Mod_Perl and Apache
by Anonymous Monk on Mar 12, 2008 at 10:32 UTC
    Hi, this is interesting, thanks. Do I need to have mod_perl or apache configured in a special way? Does Apache support LDAP "out of the box"? Thanks again

      Using Google, getting answers to such questions often is a matter of seconds. The reply by eric256 contained several suitable keywords to craft a search, e.g. http://www.google.com/search?q=authzldapauthoritative (choose a word that looks sufficiently specific to the issue...). The first hit is a link to the Apache auth module mod_authnz_ldap on the httpd.apache.org site, which has lots of other info around configuring Apache.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-26 00:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found