<highlight language="config">
<Directory /www/docs/private>
-<indent>
AuthName "Private"
AuthType Basic
AuthBasicProvider dbm
AuthDBMUserFile /www/passwords/passwd.dbm
Require valid-user
-</indent>
</Directory>
</highlight>
<highlight language="config">
<Directory /www/docs/private>
-<indent>
AuthName "Private"
AuthType Basic
AuthBasicProvider file ldap
AuthUserFile /usr/local/apache/passwd/passwords
AuthLDAPURL ldap://ldaphost/o=yourorg
Require valid-user
-</indent>
</Directory>
</highlight>
<highlight language="config">
<Directory /www/docs/private>
-<indent>
AuthName "Private"
AuthType Basic
AuthBasicProvider file
AuthGroupFile /usr/local/apache/passwd/groups
Require group GroupName
Require ldap-group cn=mygroup,o=yourorg
-</indent>
</Directory>
</highlight>
<highlight language="config">
<Directory /www/docs/private>
-<indent>
AuthName "Private"
AuthType Basic
AuthBasicProvider dbm
AuthDBMUserFile /www/passwords/passwd.dbm
Require valid-user
-</indent>
</Directory>
</highlight>
<highlight language="config">
<Directory /www/docs/private>
-<indent>
AuthName "Private"
AuthType Basic
AuthBasicProvider file ldap
AuthUserFile /usr/local/apache/passwd/passwords
AuthLDAPURL ldap://ldaphost/o=yourorg
Require valid-user
-</indent>
</Directory>
</highlight>
<highlight language="config">
<Directory /www/docs/private>
-<indent>
AuthName "Private"
AuthType Basic
AuthBasicProvider file
AuthGroupFile /usr/local/apache/passwd/groups
Require group GroupName
Require ldap-group cn=mygroup,o=yourorg
-</indent>
</Directory>
</highlight>