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

Subversion using apache and ldap

From: Brent Kiley <bkiley_at_gmail.com>
Date: 2007-05-10 18:15:02 CEST

Hello all,

I have finally been able to get subversion working over apache. I have now
jumped into the task of adding authentication of this access using an
openldap directory that is already used for our domain authentication. The
problem is I can not seem to get it to work. I believe that I have the ldap
url correct but I can still not authenticate anyone. The weird problem is
that I don't get an error in the apache error log. With previous attempts at
ldap urls I would get an error such as object not found or something
similar, but now the error log is clean. All I get now is a 401 showing in
the access log, which is what I get when using a browser or a client. I just
thought that some sort of error would show in the error log explaining why I
was getting this 401. Is it possible that it is not connecting to ldap or it
can not correctly check the password? I am fairly new to ldap as well, so
maybe I did something there in my setup that is not allowing the
authentication.

I will include my vhost config, the auth section will eventually go into the
<LimitExcept>, but for now I am just testing.

<VirtualHost 192.168.1.15>
 DocumentRoot /devel/web
 ServerName repo.mansef
 ServerAdmin bkiley@gmail.com
# YaST created entry
 <Directory "/devel/web">
  Options None
  AllowOverride None
  Order allow,deny
  Allow from all
  DirectoryIndex index.php index.html
  #Options +FollowSymLinks
  #RewriteEngine on
  #RewriteBase /repo/
  #RewriteCond %{REQUEST_FILENAME} -d
  #RewriteRule ^(.+[^/])$ /$1/ [R]
 </Directory>

 <IfModule mod_dav_svn.c>
  <Location /repos>
   #RedirectMatch ^(/repo)$ $1/
   DAV svn
   SVNListParentPath on
   SVNParentPath /devel/repo
   AuthType basic
   AuthName "LDAP Repo"
   AuthBasicProvider ldap
   AuthzLDAPAuthoritative on
   AuthLDAPURL
"ldap://192.168.1.7:389/OU=people,DC=Mansef?uid?sub?(objectClass=*)"
   require valid-user
   <LimitExcept GET PROPFIND OPTIONS REPORT>
   Order deny,allow
   Allow from all
   </LimitExcept>
  </Location>
 </IfModule>
</VirtualHost>

If anyone has any ideas please let me know, or if I can provide any
additional info to diagnose the problem, please tell me.

Brent
Received on Thu May 10 18:15:26 2007

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.