2008年3月31日 星期一

使用 Apache + AD 來做網頁資料夾的認證

<Directory />
Options All ExecCGI -Indexes
Order allow,deny
Allow from all
# LDAP Authentication & Authorization is final; do not check other databases
AuthLDAPAuthoritative on
# Do basic password authentication in the clear
AuthType Basic
# The name of the protected area or "realm"
AuthName "Something you want"
# Active Directory requires an authenticating DN to access records
AuthLDAPBindDN cn=LDAP_Username,cn=Users,dc=yourdomain,dc=com
# This is the password for the AuthLDAPBindDN user in Active Directory
AuthLDAPBindPassword LDAP_Password
# The LDAP query URL
AuthLDAPURL "ldap://ldap.yourdomain.com:389/ou=demo,dc=yourdomain,dc=com?sAMAccountName?sub?(objectClass=*)"

Require valid-user
</Directory>


沒有留言:

著作人