[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: boni_go <boni_go_at_nana.co.il>
Date: Mon, 15 Dec 2008 22:40:48 +0200

Hi,
Thanks for you replay.

>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"."

I do not understand the question.
I originally setup Apache with svn setup.
As I wrote, I can use both ways.
Can I disable on of them? How?

>'svnserve' process
What do to mean?

>Did you configure the svnserve.conf file?
Yes, as you wrote, to:
anon-access = write
auth-access = write

As before, I can checkout, but can't check in "Authorization failed" error.
Change to:
anon-access = none
auth-access = write
password-db = passwd
It did not change either, even after SVN service restart.
SVN service statement: "D:\Program Files\CollabNet Subversion
Server\svnserve.exe" --service -r "D:\svn_repository" --listen-port "3690"

It is looks like there is no effect.

Of course, the URL I used was: "svn://localhost/<repositortName>"

The book did not help. I read chapter 6 before posting the question.

Thanks,
Hope you can help.

-----Original Message-----
From: David Weintraub [mailto:qazwart_at_gmail.com]
Sent: Monday, December 15, 2008 9:44 PM
To: boni_go
Cc: users_at_subversion.tigris.org
Subject: Re: SVN: Problem with Authorization

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=984658
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2008-12-15 23:13:27 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.