[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Authentication failure when SVNParentPath used

From: BRM <bm_witness_at_yahoo.com>
Date: Sat, 19 Jan 2013 14:05:59 -0800 (PST)

> From: Raghu GS <raghugs_at_gmail.com>

>To: users_at_subversion.apache.org
>Sent: Tuesday, January 15, 2013 8:46 AM
>Subject: Authentication failure when SVNParentPath used
>I regret for bugging you once again.
>Apache authentication for the particular repository is failing when i use
>SVNParentPath, but working well when i use repo:/ instead of folder1:/repo1
>in svnauthz file even without changing the apache configuration.
>
>I'll show my configuration below
>
>SVNAuthz file.
>
>[folder1:/repo1]
>john = rw
>joe = rw
>
>Apache configuration
>
><Location /parentfolder/folder1>
>                Order allow,deny
>                Allow from all
>                DAV svn
>                SVNParentPath /srv/svn/parentfolder/folder1
>                AuthType Basic
>                AuthName "svn repository"
>                AuthUserFile /srv/svn/config/userauthentication.conf
>                Require valid-user
>                AuthzSVNAccessFile /srv/svn/config/svnauthz.conf
></Location>
>
>Please assist me in resolving the issue.

If you want to use the SVNParentPath directive to specify multiple repositories then you also need to set the Location directive to something different than you are thinking.
<Location ..> directive should only point to the URL path of the base of the repository (single repository) or parent folder (SVNParentPath directive).

Thus, you really want:
<Location /parentfolder >
  ...
  SVNParentPath /svn/svn/parentfolder
 ...

</Location>

All else being the same.

HTH,

Ben
Received on 2013-01-19 23:06:38 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.