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

Using SVN with Apache PAM Authentication

From: UÄŸur ASLAN <ugur_at_uguraslan.net>
Date: 2006-11-26 08:09:43 CET

Hi,

I am trying to authenticate all users on my server(Ubuntu 6.06) to SVN
repositories on the same machine with Apache and PAM authentication. I
have enabled AuthPAM in Apache Configuration file and made necessary
changes in order Apache to read shadow. I tested my configuration by
trying to access SVN repository with HTTP and I could accessed files in
SVN repository with my Ubuntu account and password.

But I also want users that are in a specific group to be able to access
SVN repositories, while other users cannot access. So I added "require
group svnusers" to dav_svn.conf for giving permissions only to group
"svnusers". Restarting apache returned no error or warning, worked
normally but when I tried to log in SVN by HTTP with a user account in
svnusers group and a user account that is not in svnusers group. The
result is same for all : Apache gives 505-Internal Server error.

My question is, how can I achieve only my "svnusers" group users by HTTP
using PAM Authentication. Or what may be the problem with my configuration?

Any ideas?

My dav_svn.conf file as following:

<Location /solotest>
  DAV svn
  SVNPath /var/svn-repos/solotest
  AuthPAM_Enabled on
  AuthType "basic"
  AuthName "Subversion Repository"
  Require group svnusers
</Location>

My "solotest" SVN repository file permissions as following

drwxrwx--- 2 www-data svnusers 4096 2006-11-24 18:36 conf
drwxrwx--- 2 www-data svnusers 4096 2006-11-24 15:28 dav
drwxrwx--- 5 www-data svnusers 4096 2006-11-24 15:28 db
-rwxrwx--- 1 www-data svnusers 2 2006-11-24 15:28 format
drwxrwx--- 2 www-data svnusers 4096 2006-11-24 15:28 hooks
drwxrwx--- 2 www-data svnusers 4096 2006-11-24 15:28 locks
-rwxrwx--- 1 www-data svnusers 229 2006-11-24 15:28 README.txt

Best regards,
Ugur Aslan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Nov 26 08:10:44 2006

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.