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


From: William Ferguson <william.ferguson_at_hubbub.com.au>
Date: 2005-06-02 08:56:47 CEST

OK, I'm lost, I'll admit it.

If I already know the username for an SVN_RA client (ie they have already
been authenticated by a previous layer), and I just want to inform SVN that
the caller for the current RA session is userX, how do I do it?

This is what I have so far:
// 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?
.. code ommitted

// get the auth_baton
svn_auth_open(&authBaton, providers, pool);

// pass in the known username for this session.
svn_aut_set_parameter(authBaton, "someUserNameKey" /* perhaps

The above compiles OK, and even works when the server is configured as
  anon-access = write
// auth-access = write
Ie no authentication, although my providers aren't called.

But as soon as I copnfigugre the server as:
  anon-access = none
  auth-access = write
svn_ra_open fails with : "No access allowed to this Repository"

What should I do to pass the userName into SubVersion (so it annotates each
commit etc)?

Oh, and go slow, I'm a Java, not a C developer :-)


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 2 08:59:32 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.