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.