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

Re: Options for how ra_svn client authenticates

From: mark benedetto king <mbk_at_lowlatency.com>
Date: 2003-10-17 16:14:54 CEST

On Thu, Oct 16, 2003 at 11:02:58PM -0400, Greg Hudson wrote:
>
> This is tough because ra_svn is a stateless protocol. However,
> we can cut down on the toughness with the following
> observations:

I think you meant "stateful". :-)

What if, when the server decides it needs credentials from the client,
it sends back a special tuple, for example:

   (CHALLENGE (CRAM-MD5 DIGEST-MD5 ...))

ra_svn is stateful, yes, but AFAIK, the client is always blocked inside
svn_ra_svn_read_tuple() when waiting on the server.

Since we know control will be in svn_ra_svn_read_tuple(), we can
take a peek at the first string of the tuple.

If the first string is CHALLENGE, read_tuple() invokes the new and magical
conn->challenge() callback that gets the creds, and then read_tuple() takes
those results and writes them back to the server. Obviously, svnserve's
conn->challenge would be NULL.

--ben

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Oct 17 16:15:54 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.