...
To restrict Subversion repository access to certain groups and/or users, you can add the Require group and Require user directives, described in the page on integrating Crowd with Apache.
For more fine-grained access, Crowd provides the AuthzSVNCrowdAccessFile directive which allows you to define path-based access rules.
These changes need to be made to the default file in /etc/apache2/sites-available/
Also the code added must be located before the error log code in the file.
Code Block | ||
---|---|---|
| ||
<Location /svn> AuthName "Atlassian Crowd" AuthType Basic AuthBasicProvider crowd CrowdAppName subversion CrowdAppPassword yourpassword CrowdURL http://localhost:8095/crowd/ CrowdCreateSSO off # Improves performance when using Subversion clients that DAV svn # Set this to the path to your repository SVNPath /opt/svn-data/hamsters AuthzSVNCrowdAccessFile /etc/apache2/dav_svn.authz Require valid-user </Location> |
...