PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Apache + Subversion + mySQL-Authentifizierung



PierreS
27.05.06, 21:43
Hallo,

ich möchte mehrere Subversion-Repositories verwalten. Die Zugangsberechtigung läuft zur Zeit über mod_auth_mysql. Jetzt soll aber nicht jeder in allen Repositories Schreibrechte haben, sondern nur in bestimmten.

Wie kann man das realisieren. Meine apache-config für den entsprechenden vhost sieht momentan folgendermaßen aus. Die Information, wer zu welchem Repository Zugriff hat, würde ich am liebsten auch aus der DB holen.



<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName svn.laber-land.de

LoadModule auth_mysql_module /usr/lib/apache2/modules/mod_auth_mysql.so
#LoadModule dav_module /usr/lib/apache2/modules/mod_dav.so
#LoadModule dav_svn_module /usr/lib/apache2/modules/mod_dav_svn.so

DocumentRoot /home/www-data/svn/
#Redirect / http://websvn.laber-land.de/

<Location />
DAV svn
SVNPathAuthz off
SVNParentPath /home/www-data/svn/
#SVNListParentPath on

AuthName "LL-SVN"
AuthType Basic
AuthMySQL_Host localhost
AuthMySQL_DB svn
AuthMySQL_Password_Table users
AuthMySQL_User svn
AuthMySQL_Password ******
AuthMySQL_Username_Field name
AuthMySQL_Password_Field password
#Auth_MySQL_Password_Clause " AND svn=1"
AuthMySQL_Encryption_Types PHP_MD5
#AuthMySQL_Group_Field level

# <LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
# </LimitExcept>
</Location>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined
ServerSignature Off

</VirtualHost>