Hook to make Subversion Read Only for specific users

Posted by Shane on Stack Overflow See other posts from Stack Overflow or by Shane
Published on 2010-04-26T17:18:26Z Indexed on 2010/04/26 17:23 UTC
Read the original article Hit count: 203

Filed under:

We have an existing Subversion repository that uses LDAP to manage users/passwords. There are some new users who we would like to provide read-only access to SVN. I did some Google searches and found a way to open up read-only access to anonymous users, but this is not what we want. We do not want to open up SVN to everyone. We still want to control login through LDAP, but we would like to prevent certain named users from being able to add/edit/delete.

I am assuming this can be done with a hook (pre-commit?), but I have no experience writing hooks. Can someone show me or point me to an example of how to do this?

© Stack Overflow or respective owner

Related posts about svn