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

Re: [PATCH] svnserve --user, use svn+ssh but avoid system accounts

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2004-02-19 16:17:24 CET

On Thu, 2004-02-19 at 07:48, Tommi Virtanen wrote:
> But if I just make the --tunnel-user override the value in mecharg,
> won't this strcmp (against the unix username) then fail 100% of the
> time?
>
> if (*mecharg && strcmp(mecharg, b->user) != 0)
> return svn_ra_svn_write_tuple(conn, pool, "w(c)", "failure",
> "Requested username does not match");

No, in general *mecharg is false, because our client sends an empty
string as the mechanism argument. The SASL spec says that the client is
allowed, but not required, to give the authentication name it believes
it has externally authenticated as.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Feb 19 16:18:06 2004

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.