2014-10-31 102 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