2014-10-31 103 views
0

是否可以通过.htaccess与Mamp使用ldap认证?Mamp Apache Ldap支持

我想我需要包含/启用Apache模块,但我不知道该怎么做?

感谢您的帮助!

回答

0

Enalble它

a2enmod authnz_ldap 
a2enmod ldap 
/etc/init.d/apache2 restart 

在htaccess你使用

AuthType Basic 
AuthName "secured site" 
AuthBasicProvider ldap 

AuthLDAPUrl "ldap://server/ou=People,dc=example,dc=local" 
AuthLDAPBindDN "cn=reader,dc=example,dc=local" 
AuthLDAPBindPassword the_secret_one 
AuthzLDAPAuthoritative Off 
Require valid-user