updated the sample apache configuration file
This commit is contained in:
parent
0efa872e3a
commit
4d16600d40
@ -5,15 +5,19 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
<Location "/svn">
|
<Location "/svn">
|
||||||
DAV svn
|
DAV svn
|
||||||
SVNParentPath "@DEPOTDIR@/svnrepo"
|
SVNParentPath "@DEPOTDIR@/svnrepo"
|
||||||
|
|
||||||
|
Order deny,allow
|
||||||
|
#Deny from all
|
||||||
|
#Satisfy any
|
||||||
|
|
||||||
# Uncomment SSLRequireSSL below to disallow non-SSL access.
|
# Uncomment SSLRequireSSL below to disallow non-SSL access.
|
||||||
# Note that SSL must be enabled site-wide to use it.
|
# Note that SSL must be enabled site-wide to use it.
|
||||||
# SSLRequireSSL
|
# SSLRequireSSL
|
||||||
|
|
||||||
AuthType Basic
|
AuthType Basic
|
||||||
AuthName "@PACKAGE@"
|
AuthName "@PACKAGE@"
|
||||||
|
|
||||||
#
|
#
|
||||||
# configure authentication below
|
# configure authentication below
|
||||||
@ -23,23 +27,34 @@
|
|||||||
# Apache version 2.1 or later
|
# Apache version 2.1 or later
|
||||||
# mod_authnz_ldap
|
# mod_authnz_ldap
|
||||||
#
|
#
|
||||||
AuthBasicProvider ldap
|
AuthBasicProvider ldap
|
||||||
|
|
||||||
# prevent other authenticatication moudles from authenticating users
|
# prevent other authenticatication moudles from authenticating users
|
||||||
# if this one fails. Set it to 'off' for 'require valid-user' as it
|
# if this one fails. Set it to 'off' for 'require valid-user' as it
|
||||||
# is handled by mod_authz_user.
|
# is handled by mod_authz_user.
|
||||||
AuthzLDAPAuthoritative on
|
AuthzLDAPAuthoritative on
|
||||||
|
|
||||||
AuthLDAPGroupAttribute memberUid
|
AuthLDAPGroupAttribute memberUid
|
||||||
AuthLDAPGroupAttributeIsDN off
|
AuthLDAPGroupAttributeIsDN off
|
||||||
AuthLDAPRemoteUserIsDN off
|
AuthLDAPRemoteUserIsDN off
|
||||||
|
|
||||||
# ldap binding information
|
# ldap binding information
|
||||||
AuthLDAPURL ldap://127.0.0.1:389/ou=users,dc=sample,dc=net?uid
|
AuthLDAPURL ldap://127.0.0.1:389/ou=users,dc=sample,dc=net?uid
|
||||||
AuthLDAPBindDN cn=admin,dc=sample,dc=net
|
AuthLDAPBindDN cn=admin,dc=sample,dc=net
|
||||||
AuthLDAPBindPassword xxxxxxx
|
AuthLDAPBindPassword xxxxxxx
|
||||||
|
|
||||||
Require ldap-group cn=users,ou=groups,dc=sample,dc=net
|
#Require ldap-group cn=users,ou=groups,dc=sample,dc=net
|
||||||
|
|
||||||
|
# allow anynymous for viewing and checking out
|
||||||
|
<Limit GET HEAD OPTIONS REPORT PROPFIND>
|
||||||
|
Allow from all
|
||||||
|
#Satisfy any
|
||||||
|
</Limit>
|
||||||
|
|
||||||
|
# require authentication for other operations
|
||||||
|
<LimitExcept GET HEAD OPTIONS REPORT PROPFIND>
|
||||||
|
Require ldap-group cn=coders,ou=groups,dc=sample,dc=net
|
||||||
|
</LimitExcept>
|
||||||
|
|
||||||
#
|
#
|
||||||
# Apache version 2.0.41
|
# Apache version 2.0.41
|
||||||
|
Loading…
Reference in New Issue
Block a user