RedmineにおけるSubversionの認証方法
Redmineの"committer"というグループに所属するユーザだけがコミットできるようにする認証方法を考えてみた。
前に特定のプロジェクトに所属するユーザだけコミット可能とする方法を考えてみたが、こっちの方が直かな。
- /etc/httpd/conf.d/subversion.conf
<Location /svn> DAV svn SVNParentPath /home1/svnrepos <LimitExcept GET PROPFIND OPTIONS REPORT> AuthMySQLEnable On AuthMySQLSocket /var/lib/mysql/mysql.sock AuthMySQLHost localhost AuthMySQLUser redmine AuthMySQLPassword redmine AuthMySQLDB redmine AuthMySQLUserTable "users" AuthMySQLNameField "users.login" AuthMySQLUserCondition "users.id in (select groups_users.user_id from users,groups_users where users.type = 'Group' and users.lastname = 'committer' and users.id = groups_users.group_id)" AuthMySQLPasswordField "users.hashed_password" AuthMySQLPwEncryption sha1 AuthMySQLNoPasswd Off AuthType Basic AuthName "Authorization Realm" Require valid-user </LimitExcept> </Location>