LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache + NIS +SVN authentication (http://www.linuxquestions.org/questions/linux-software-2/apache-nis-svn-authentication-836189/)

xcoldfyrex 10-04-2010 07:49 PM

Apache + NIS +SVN authentication
 
I have apache to handle svn authentication(all users have rw) via the perl NIS handler, that part works fine. What I need to do is go a step further and make it so certain(NIS) group members or users only have READ access.

Code:

<Location /svn>
  DAV svn
  SVNParentPath /var/www/svn
  AuthType Basic
  AuthName "The SVN Server!!"
  PerlAuthenHandler Apache2::AuthenNIS
  PerlSetVar AllowAlternateAuth no
  <LimitExcept GET PROPFIND OPTIONS REPORT>
      AuthType Basic
      AuthName "The SVN Server!!"
      PerlAuthenHandler Apache2::AuthenNIS
      PerlSetVar AllowAlternateAuth no
      Require valid-user
  </LimitExcept>
  <Limit GET PROPFIND OPTIONS REPORT>
      AuthType Basic
      AuthName "The SVN Server!!"
      PerlAuthenHandler Apache2::AuthenNIS
      PerlSetVar AllowAlternateAuth no
      Require pixel
  </Limit>
</Location>

Something like this, but this example seems to disallow any methods. How can I go about doing this and still use apache/NIS auth?

prayag_pjs 10-06-2010 05:45 AM

In present setup can you control read or read-write permissions on projects created in repositories?
It is possible to give read or write permission if you follow apache authentication (using htpasswd) by specifying /etc/svn-acl and defining users and projects with read or write permissions in it.


All times are GMT -5. The time now is 04:42 AM.