Sunday, June 28, 2009

Apache22 LDAP integration on FreeBSD

Finally I make it doing apache22 auth using LDAP

the solution

open your apache configuration httpd.conf and add this lines

Directory /path/directory/toauth>
Order deny,allow
Deny from All
AuthName "Please Login Using password"
AuthType Basic
AuthBasicProvider ldap
AuthzLDAPAuthoritative on
AuthLDAPURL ldap://xxx.xx.xxx.xx:389/
Require valid-user
Satisfy any
/Directory>


restart your apache

No comments:

Post a Comment