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

Re: Authentication

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-06-02 14:47:16 CEST

On Jun 2, 2005, at 1:56 AM, William Ferguson wrote:

> // pack the providers into an array
> apr_array_header_t *providers;
> // add provider - probably just need one simple one that reads the
> usernmae
> form the params perhaps?

That's the problem. You've installed only 1 provider, the one which
sucks the {username, password} credential structure from the
parameter hash. So when the server challenges the client, the client
asks this one provider, which returns {username, NULL} -- because
there's no SVN_AUTH_PARAM_DEFAULT_PASSWORD sitting in the parameter
hash. And you get failure.

If you were to add other providers -- like ones that pull credentials
from the disk cache, or ones that prompt the user, then the client
would have more options for digging up the password.

Remember, the username doesn't exist in a vacuum. The server and
client operate on a {username, password} *pair*.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 2 14:54:03 2005

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.