subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Sperling <>
Subject Re: svnserv + ssh + ldap
Date Fri, 30 Jul 2010 14:40:37 GMT
On Fri, Jul 30, 2010 at 04:20:14PM +0200, Nils Wilhelm wrote:
> Hi there,
> Stefan Sperling wrote:
> >If I understood correctly, the question was about using Subversion
> >with SSH and LDAP.
> You're right.
> i have installed the server by using this tutorial
> So what i have now is a subversion server and the ability to connect
> to it using ssh and private/public keys. So i have one system user
> that starts the svnserv process  everytime a user connects and i can
> add new users by creating and adding just the private/public keys.
> So the question now is if it would be possible to use LDAP at all.
> What would be the advantage?

I don't know. Presumably you could use a fancy configuration
to make sshd retreive authorized_keys information from ldap?

A quick search suggests that this is only possible for passwords, though.
Check the UsePAM option of OpenSSH in the sshd_config man page.
With that scheme, your developers would have to enter their passwords
all the time (without having the option of saving them to disk, since
authentication is done by SSH, not Subversion).

Maybe another option is to authenticate via SSH using single-sign with
Kerberos, if that helps.

Or maybe you could periodically re-generate the authorized_keys file
on the Subversion server from data stored in ldap (generate a temporary
file, and upon success, move it into place)? That would be a crutch,
but similar schemes are used by several Subversion users to e.g. create
configuration files for path-based authorization within the repository
based on data in LDAP.


View raw message