[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: LDAP Authentification

From: Helmut Heidegger <h.heidegger_at_phion.com>
Date: 2004-04-26 11:04:09 CEST

Mladen Mihajlovic [H] wrote:
> Hi
> Could you please explain what you did to get SSL and LDAP working on
> your system? I just joined the mailing list and cannot find any of the
> posts that you were referring to.


just add to your apache2 config file (httpd.conf) a section like this:

<Location /svn>
    DAV svn
    SVNParentPath /opt/repos
    AuthzSVNAccessFile /opt/repos/access.conf
    AuthLDAPAuthoritative on
    AuthType Basic
    AuthName "Subversion Repository"
    AuthLDAPBindDN CN=Your,OU=System,OU=User
    AuthLDAPBindPassword YourPassword
    require valid-user

[no break after AuthLDAPURL]

I got the settings for active directory from this link:

The SVNParentPath means you have all repositories in the /opt/repos
path. If you want to specify a single repository you will have to use
the SVNPath parameter as described at

In the access.conf file there is the following very trivial to start:

* = rw

which means everyone (authorized) can read and write in every repository
in all paths. Just for testing, I will do some finer fragmentation of
user access rights later. Look also at the above link for description.

Verify that the following modules are present in your apache2 config file:

LoadModule authz_svn_module modules/mod_authz_svn.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule auth_ldap_module modules/mod_auth_ldap.so

try this to get working on your repository. After you verified your
configuration and so the authorization works, just add https as it is
described in the apache documentation.

I added the following to the httpd.conf file to enable HTTPS:

SSLEngine on
SSLProtocol all
SSLCertificateFile conf/ssl.crt/server.crt
SSLCertificateKeyFile conf/ssl.key/server.key

using the default server certificate files provided by the Redhat
distribution. I will update them to pass the requirements of our server,
since the default cert refers to localhost etc.

Hope that helps...

Helmut Heidegger

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Apr 26 11:04:46 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.