How to make Subversion use Linux system accounts for authentication?

Posted by Alejandro García Iglesias on Stack Overflow See other posts from Stack Overflow or by Alejandro García Iglesias
Published on 2010-12-23T22:31:30Z Indexed on 2010/12/23 23:54 UTC
Read the original article Hit count: 236

Filed under:
|
|

Hi all, I've set up a Ubuntu Server for Subversion with Apache/WebDAV interface to share repositories with other developers. My question is, how can I make Subversion use the linux system accounts for authentication? This would lead to very easy Subversion account management. Subversion with Apache/WebDAV is currently working with this configuration:

Contents of /etc/apache2/mods-available/dav_svn.conf:

<Location /svn>
  DAV svn
  SVNParentPath /home/svn
  SVNListParentPath On
  AuthType Basic
  AuthName "Subversion Repository"
  AuthUserFile /etc/apache2/dav_svn.passwd
  Require valid-user
</Location>

I have tried changing AuthUserFile /etc/apache2/dav_svn.passwd with AuthUserFile /etc/shadow with no success. This makes the server to respond with a error 500 internal server error. It's logical, why the Web service should have access to system authentication file?

Thanks a lot in advance!

© Stack Overflow or respective owner

Related posts about svn

Related posts about apache2