Friday, August 28, 2009

integrate Subversion with Windows Active Directory

apache httpd.conf

<Location /reponame>

DAV svn
SVNPath /opt/subversion/rep/reponame
AuthzSVNAccessFile /opt/subversion/rep/reponame/conf/authz
Require valid-user
AuthBasicProvider ldap
AuthType Basic
AuthName "subversion repository"
AuthLDAPURL "ldap://hostname:389/OU=Users,OU=Shire,DC=shire,DC=org?sAMAccountName?sub?(objectClass=hobbitName)" NONE
AuthLDAPBindDN "CN=Bilbo,CN=Users,DC=shire,DC=org"
AuthLDAPBindPassword "RiNg"
</Location>



authz example

[groups]
wizard = gandalf
hobbit = forodo, sam

[/]
#* = r
@wizard = rw
@hibbot = r

No comments: