You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Alexander Zeitler <az...@aspintranet.de> on 2003/12/20 16:44:28 UTC
Problem using svnaccessfile
hi,
i installed the current version of subversion on
apache using webdav according to:
http://tortoisesvn.tigris.org/documentation/ch03.html
my httpd.conf contains this one:
<Location /svn>
DAV svn
SVNParentPath D:\SVN
AuthType Basic
AuthName "Subversion repositories"
AuthUserFile passwd
#AuthzSVNAccessFile svnaccessfile
Require valid-user
</Location>
it works fine (login with users defined
in the passwd file) until i uncommend the line
#AuthzSVNAccessFile svnaccessfile
my svnaccessfile (which is placed in
the root of my apache-path) looks like this:
#[groups]
developers = Administrator
#allow developers access
[/EventManager]
@developers = rw
where EventManager is a repository
inside D:\SVN\
the path is
D:\SVN\EventManager
When trying to connect to this repository
using http://myserver/svn/EventManager the
user name and password are requested, but
when entering these creditensials as uncommending
the svnaccessfile line, i get an 401 authorization
error.
watching in apache's error log i get something like this:
[Sat Dec 20 17:20:44 2003] [error] [client myip]
(200002)APR does not understand this error code:
C:/Program Files/Apache Group/Apache2/svnaccessfile:2: Section header
expected
what am i doing wrong?
regards
Alex
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: Problem using svnaccessfile
Posted by Alexander Zeitler <az...@aspintranet.de>.
>
> <Location /svn-projA>
> DAV svn
> SVNParentPath D:/SVN/projA
> AuthType Basic
> AuthName "Subversion repositories"
> AuthUserFile passwd
> AuthzSVNAccessFile svnaccessfile
> Require valid-user
> </Location>
>
> <Location /svn-projB>
> DAV svn
> SVNParentPath D:/SVN/projB
> AuthType Basic
> AuthName "Subversion repositories"
> AuthUserFile passwd
> AuthzSVNAccessFile svnaccessfile
> Require valid-user
> </Location>
>
> BTW, if I remember correctly, Apache requires the use of the
> forward-slash (/) character in it's configuration files. I believe this
> warning was in the httpd.conf file, at the top.
>
this works now when using SVNPath instead of
SVNParenthPath and a AuthzSVNAccessFile,
thank you.
regards
Alex
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: Problem using svnaccessfile
Posted by Francois Beausoleil <fb...@users.sourceforge.net>.
You use locations, each with it's own SVNPath directive.
Something like:
<Location /svn-projA>
DAV svn
SVNParentPath D:/SVN/projA
AuthType Basic
AuthName "Subversion repositories"
AuthUserFile passwd
AuthzSVNAccessFile svnaccessfile
Require valid-user
</Location>
<Location /svn-projB>
DAV svn
SVNParentPath D:/SVN/projB
AuthType Basic
AuthName "Subversion repositories"
AuthUserFile passwd
AuthzSVNAccessFile svnaccessfile
Require valid-user
</Location>
BTW, if I remember correctly, Apache requires the use of the
forward-slash (/) character in it's configuration files. I believe this
warning was in the httpd.conf file, at the top.
Hope that helps,
François
On Mon, 22 Dec 2003 22:12:07 +0100, "Alexander Zeitler"
<az...@aspintranet.de> said:
>
>
> > > <Location /svn>
> > > DAV svn
> > > SVNParentPath D:\SVN
> > > AuthType Basic
> > > AuthName "Subversion repositories"
> > > AuthUserFile passwd
> > > #AuthzSVNAccessFile svnaccessfile
> > > Require valid-user
> > > </Location>
> >
> > AuthzSVNAccessFile does not work with SVNParentPath, only with SVNPath.
> >
> > Maybe we'll have time to put this in svn 1.1. :-)
> >
>
> thanks for your reply, so how can i set up more
> than one repository this way (using SVNPath)?
>
> regards
>
> Alex
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: Problem using svnaccessfile
Posted by Alexander Zeitler <az...@aspintranet.de>.
> > <Location /svn>
> > DAV svn
> > SVNParentPath D:\SVN
> > AuthType Basic
> > AuthName "Subversion repositories"
> > AuthUserFile passwd
> > #AuthzSVNAccessFile svnaccessfile
> > Require valid-user
> > </Location>
>
> AuthzSVNAccessFile does not work with SVNParentPath, only with SVNPath.
>
> Maybe we'll have time to put this in svn 1.1. :-)
>
thanks for your reply, so how can i set up more
than one repository this way (using SVNPath)?
regards
Alex
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Problem using svnaccessfile
Posted by Ben Collins-Sussman <su...@collab.net>.
On Sat, 2003-12-20 at 10:44, Alexander Zeitler wrote:
> <Location /svn>
> DAV svn
> SVNParentPath D:\SVN
> AuthType Basic
> AuthName "Subversion repositories"
> AuthUserFile passwd
> #AuthzSVNAccessFile svnaccessfile
> Require valid-user
> </Location>
AuthzSVNAccessFile does not work with SVNParentPath, only with SVNPath.
Maybe we'll have time to put this in svn 1.1. :-)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org