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

Re: SVN: Problem with Authorization

From: David Weintraub <qazwart_at_gmail.com>
Date: Mon, 15 Dec 2008 14:44:24 -0500

One step at a time...

Did you setup Apache and setup Apache to checkout from Subversion via
the dav_svn_module module? If not, you cannot use the http://
protocol. Instead, you need to svn:// protocol, but only if you
started "svnserve".

If you did setup the "svnserve" process (which it looks like since you
were able to do a checkout) did you configure the svnserve.conf file?
This file is located under the "conf" directory inside your
repository. If you don't want any authorization (i.e. allow anonymous
commits), you need to modify the following two lines:

# anon-access = read
# auth-access = write

To this:

anon-access = write
auth-access = write

If you want to prevent anonymous commits, you need to leave these two
lines alone, and modify this line:

# password-db = passwd

To this:

password-db = passwd

Then, you need to edit the "passwd" file which is in the same
directory as the svnserve.conf file, and setup the user accounts. The
passwd file tells you how to do this.

If you don't want just anyone checking out your files, then you need
to modify these two lines in svnserve.conf:

# anon-access = read
# auth-access = write

to:

anon-access = none
auth-access = write

If you have never used or setup Subversion before, take a quick look
at the Subversion book at http://svnbook.com, and take a good look at
Chapter #6 on Server Configuration.

On Mon, Dec 15, 2008 at 2:21 AM, boni_go <boni_go_at_nana.co.il> wrote:>
I am using CollabNet Subversion Server with TortoiseSVN
> Try check out using TortoiseSVN with the path "svn://localhost/<repoName>"
> finish with OK (no password is asked, why?).
>
> Try check out using TortoiseSVN with the path
> "http://localhost/svn/<repoName>", no password is asked, and I got the
> error:
> Server sent unexpected return value (403 Forbidden) in response to PROPFIND
> request for '/svn/<repoName>'
>
> Why there is a different between the two?
> "svn://localhost/<repoName>"
> "http://localhost/svn/<repoName>"
>
>
> After a sucessful check out using path "svn://localhost/<repoName>" i tryed
> to check in, no password is asked and got the error:
> Commit failed (details follow):
> Authorization failed
>
> What can i do?
>
>
> The relevant files are:
> svn repository root = D:\svn_repository
>
> ********* D:\svn_repository\password-file:
> A:<pass hash>
>
> ********* D:\svn_repository\<repoName>\conf\passwd:
> [users]
> A = 1234
>
> ********* D:\svn_repository\<repoName>\conf\authz:
> [/]
> A = rw
>
> ********* D:\svn_repository\<repoName>\conf\svnserve.conf:
> anon-access = none
> auth-access = write
> password-db = passwd
>
> ********* <CollabNet Subversion Server INSTALL dir>\httpd\conf\httpd.conf
> <Location /svn>
> DAV svn
> SVNParentPath D:\svn_repository
> SVNListParentPath On
> Require valid-user
> AuthType Basic
> AuthName "Subversion repository"
> AuthUserFile D:\svn_repository\password-file
> </Location>
>
>
> ********* <CollabNet Subversion Server INSTALL dir>\svn-auth-file
> A:<pass hash>
> ????? for what this file is needed?
>
> ********* <CollabNet Subversion Server INSTALL dir>\svn-acl
> [<repoName>:/]
> * = rw
>
>
> BTW, under c:\Documents and Settings\<user name>\Application
> Data\Subversion\auth\ all 3 files are empty.

-- 
--
David Weintraub
qazwart_at_gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=984626
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2008-12-15 20:45:16 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.