To configure the Subversion to have HTTP access will require Apache server to do this job for me. Once the Apache server has been installed, additional configuration need to be done on this file, httpd-subversion.conf located at /opt/freeware/etc/httpd/conf/extra. The same file can be used for Active Directory/LDAP authentication configuration, it is just right inside the same < Location > section.
DAV svn SVNParentPath /u01/svn SVNListParentPath off AuthType Basic AuthName "Huahsin Source Code Repository" AuthBasicProvider file ldap AuthBasicAuthoritative off AuthUserFile /opt/freeware/etc/httpd/conf/svn_auth_file AuthzLDAPAuthoritative off AuthLDAPURL "ldap://128.230.84.53:389/dc=Intralab,dc=java?sAMAccountName?sub" AuthLDAPBindDN "CN=TestUser,OU=javagroup,DC=intralab,DC=java" AuthLDAPBindPassword Test123 require valid-user
Assuming I'm connecting to an Active Directory server having this IP and port, 128.230.84.53:389, and the JAVA developer locate in the domain java.intranet will be granted access into the SVN. Thus the configuration will look like this.
Extra note on AuthLDAPBindDN and AuthLDAPBindPassword, this is the user account that dedicate for the SVN to get pass into Active Directory server authentication, without this the rest of the authentication will not get pass. AuthBasicProvider file ldap giving an option that first will look for the authentication inside /opt/freeware/etc/httpd/conf/svn_auth_file, if the user wasn't there, look into the Active Directory/LDAP server.
No comments:
Post a Comment