codepot/codepot/etc/codepot.a2ldap.in

66 lines
1.5 KiB
Plaintext
Raw Normal View History

2010-01-24 14:34:03 +00:00
#
# This file contains sample configuration to enable LDAP authentication
# for subversion webdav access. The actual configuration can be more
# complex than this file depending on your requirement.
#
<Location "/svn">
DAV svn
SVNParentPath "@DEPOTDIR@/svnrepo"
#SVNListParentPath on
Order deny,allow
#Deny from all
#Satisfy any
2010-01-24 14:34:03 +00:00
# Uncomment SSLRequireSSL below to disallow non-SSL access.
# Note that SSL must be enabled site-wide to use it.
# SSLRequireSSL
AuthType Basic
AuthName "@PACKAGE@"
2010-01-24 14:34:03 +00:00
#
# configure authentication below
#
#
# Apache version 2.1 or later
# mod_authnz_ldap
#
AuthBasicProvider ldap
2010-01-24 14:34:03 +00:00
# prevent other authenticatication moudles from authenticating users
# if this one fails. Set it to 'off' for 'require valid-user' as it
# is handled by mod_authz_user.
AuthzLDAPAuthoritative on
2010-01-24 14:34:03 +00:00
AuthLDAPGroupAttribute memberUid
AuthLDAPGroupAttributeIsDN off
AuthLDAPRemoteUserIsDN off
2010-01-24 14:34:03 +00:00
# ldap binding information
AuthLDAPURL ldap://127.0.0.1:389/ou=users,dc=sample,dc=net?uid
AuthLDAPBindDN cn=admin,dc=sample,dc=net
AuthLDAPBindPassword xxxxxxx
#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>
2010-01-24 14:34:03 +00:00
# require authentication for other operations
<LimitExcept GET HEAD OPTIONS REPORT PROPFIND>
Require ldap-group cn=coders,ou=groups,dc=sample,dc=net
</LimitExcept>
2010-01-24 14:34:03 +00:00
#
# Apache version 2.0.41
# mod_auth_ldap
#
</Location>