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

Re: Issues when trying to login with svn

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-07-30 20:14:32 CEST

On Fri, 2004-07-30 at 13:08, Matt Harp wrote:
> Complete newbe here trying to do some integration into Subversion.
> I setup my server and am running svnserve on a Windows box.
> I have two main questions.
> 1. When I have anon-access set to read, I can execute a call like
> svn -ls --username fred --password blah
> Where the info I give for login is bad, but I never get an error from
> svn client. It just returns the results of the ls call? Shouldn't it be
> failing since my login was bad?

SVN isn't like CVS: the client doesn't "push" authentication to the
server; rather, the server "pulls" it from the client only when it
deems necessary.

The --username/--password argument are *only* used if the server
challenges the client in the first place. Otherwise they're ignored.

> 2. How can I stop svn from prompting on a bad login attempt? I set
> anon-access to none and now when I give a bad user/pwd I get prompted
> for both username and password. It would seem there should be a flag to
> tell svn to just fail with an error message w/o having to prompt.

Again, you're trying to do something anonymously, so the server sends a
challenge, because anonymous access isn't allowed. That causes the
client to prompt you. After 3 failed prompting attempts, the client
gives up, and the whole operation fails. It's all working exactly as it
should -- just the way a web browser does.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jul 30 20:16:40 2004

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.