I'm trying to set up SVN to authenticate against an ActiveDirectory. I know this is possible if you set up SVN to be served using Apache, but doing so introduces too much overhead, and SVN runs too slow. From reading the SVN docs, it sounds like it should now be possible (since SASL was integrated into SVN in 1.5) to configure SVN to authenticate against ActiveDirectory without using Apache. Unfortunately the documentation from SVN and SASL is extremely generic, and lacks specifics to help get this working properly.
Has anyone gotten this working? It would be a huge help if you could provide some sample configuration files, or high-level steps to point myself (and likely others) in the right direction on this.
SVN with SASL enabled (on a Debian v7 box), using Active Directory (on another server)
note that I already setup samba and winbind, which included libsasl2-2 so also get the startup executable and svnserve and modules (needed for svn plain (or other) mechanism to work, which (just FYI) puts them in /usr/lib/x86_64-linux-gnu/sasl2/libplain.so):
change
START=no
toSTART=yes
, andMECHANISMS="pam"
toMECHANISMS="ldap"
, andTHREADS=0
(not 5), and remove the/var
in front of/run
from the last line so that it'sOPTIONS="-c -m /run/saslauthd";
control x, y, enterAdd the following (note: you may need an "ou=folder" in front of the dc= series):
Run
sudo testsaslauthd -u usernamehere -p password
to test the ldap setup andcat /var/log/auth.log
to see log.Add following lines to a file
/usr/lib/sasl2/svn.conf
:Create repository:
assuming some sort of previous "svnadmin dump /data/repohere >/data/repohere.dump" svnadmin load /data/repohere
uncomment (remove the leading pound and the leading space); and, modify anon-access and authz-db (and note that I put authz in /data so than my multiple repos share it):
add the following:
to schedule svnserve on startup (sorry, couldn't find one, so manually make one):
change DESC to "subversion server", change NAME to "svnserve", take out the "s" in the "sbin" of DAEMON (to make it just /bin/), change DAEMON_ARGS to "-d -r /data --log-file /var/log.svn.log"
test your favorite svn client (e.g. TortoiseSVN)!
I found this post in one of the mailing lists. Next time I try to get this working I'm going to reference this information. I'll quote it below for reference.
I think it's technically possible. See the link point 8.GSSAPI and microsoft technet article as well.
I've hands-on experience with SVN 1.6 + SASL as described here. It's works fine for us. So I think your biggest challenge is to "married" SASL and Active directory.
Run SVN on windows using VisualSVN Server