svnserve with LDAP

Shyam picture Shyam · Dec 2, 2008 · Viewed 15.3k times · Source

I would like to know how to setup an SVN repository with LDAP authentication. I do not want to use Apache DAV though.

Answer

Martin v. Löwis picture Martin v. Löwis · Dec 2, 2008

There are two options:

  1. Run svnserve as a server, and authenticate using SASL. Configure SASL to authenticate against LDAP.
  2. Access the repository over ssh. Create ssh accounts for all users (perhaps automatically), and have these accounts authenticate against LDAP using PAM. Put all users into a single group, and make the repository files owned by that group.