[Ilugc] Re: Authentication problem in SVN

  • From: stylesen@xxxxxxxxx (Senthil Kumaran S)
  • Date: Thu Jun 4 13:14:38 2009

Hi,

On Thu, Jun 4, 2009 at 11:17 AM, mettur salem <metturmohan2009@xxxxxxxxx> wrote:

?under the folder of conf

-rw-r--r-- 1 apache apache? 755 2009-06-03 21:41 authz
-rw-r--r-- 1 apache apache?? 46 2009-04-29 20:01 passwd
-rw-r--r-- 1 apache apache 1449 2009-06-03 21:41 svnserve.conf

if i give the some restriction in svnserve.conf??? file this is not able to
apply while access? via http of svn pages in local lan ??? authz file is not
responses? any upgradation required? ( related to Modules loaded? in http
file )

svnserve.conf has to do nothing with access over http://, it is for
svn:// access and svnserve daemon. So whatever you do inside conf
directory of a repository it wont have any effect for http:// access.
This is mentioned in those files clearly in the comments. Please read
http://svnbook.red-bean.com/, in order to understand the various
access methods of subversion which is clearly explained.

ie http://192.168.1.2/repos/svn??? --- it allows all to access and commit
and checkout? for all the repositary? i apply? restriction? as per senthil
says? but it is not effect

This may be due to many reasons. One such reason is, you don't have
the required authentication modules loaded in apache, like mod_auth,
mod_authz, mod_authz_svn, etc.

The following command will help you to identify this:

`sudo which httpd` -l

1.http authenticaion file is kept in? /etc/svn-auth?? ie user password are
stored here
2. subversion configuration file is kept in? /etc/
httpd/conf.d/subversion.conf


subversion.conf

<Location /repos>
??? DAV svn
?? SVNParentPath? /repos
?? AuthType Basic
? AuthName "Snowserver1 Subversion Repositories"
????? AuthUserFile /etc/svn-auth-file

As per 1. your file is " /etc/svn-auth" but you have put
"/etc/svn-auth-file" in your apache configuration.

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

Do not put "Require valid-user" inside <LimitExcept> section, just put
this after "AuthUserFile" directive.

Having said that, I would like you to go through
http://svnbook.red-bean.com/ which has all the information regarding
subversion administration.

Thank You.
-- 
Senthil Kumaran S
http://www.stylesen.org/

Other related posts: