I would like to know how to setup an SVN repository with LDAP authentication. I do not want to use Apache DAV though.
There are two options:
Since it took me some time to find the pieces to do this, I wanted to post how I did this on a RHEL5 server:
install CollabNet rpms (client, server, and extras).
run /opt/CollabNet_Subversion/bin/Configure-CollabNet-Subversion to configure without Apace and with svnserve.
modify your repo/conf/svnserve.conf file to have:
[sasl]
use-sasl=true
create /opt/CollabNet_Subversion/etc/saslauthd.conf file with these contents:
ldap_servers: ldaps://...
ldap_search_base: ...
ldap_bind_dn: ...
ldap_bind_pw: ...
ldap_auth_method: bind
ldap_timeout: 10
create /etc/opt/CollabNet_Subversion/sasl2/svn.conf file with these contents for use with MS AD LDAP:
pwcheck_method: saslauthd
auxprop_plugin: ldap
mech_list: PLAIN LOGIN
ldapdb_mech: PLAIN LOGIN
copy /etc/openldap/ldap.conf to /etc/opt/CollabNet_Subversion/conf/openldap and add TLS_REQCERT allow. This is required for our self-signed LDAP server
run collabnet saslauthd
mkdir -p /var/state/saslauthd/etc/init.d/collabnet_subversion to include /opt/CollabNet_Subversion/sbin/saslauthd -a ldap towards end of start() functionstop/start /etc/init.d/collabnet_subverisonnote: you can use /opt/CollabNet_Subversion/sbin/testsaslauthd -u <userid> -p <password> to test sasl connection to ldap
A bit involved, but for me, it allows our clients to connect to svn:// using their ldap passwords.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With