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

Re: [python bindings] How to create an authentication func

From: Ben Reser <ben_at_reser.org>
Date: 2004-10-08 07:53:55 CEST

On Thu, Oct 07, 2004 at 04:38:29PM +0200, Alexis Boutillier wrote:
> I'm trying to make a svn_client_ls on a URL.
>
> It works fine if another client (svn status -u) have stored username and
> password in /.subversion directory but if i delete this directory, my
> python prog can't authenticate with the apache serveur.
>
> I use LDAP password under apache.
>
> there is my python code :

[snip]

> The program end with a : libsvn._core.SubversionException: ("PROPFIND
> request failed on '/svn-test-repos/testEnv/testDrivers/test1'", 170001)
>
> I try to use "svn_auth_set_parameter" with ctx.auth_baton but it require
> a pointer as the last argument instead of a string.
>
> I try to use "svn_client_get_simple_prompt_provider" with a function but
> it require a svn_auth_simple_prompt_func_t instead of a python function.
>
> I try to set util.SVN_AUTH_PARAM_DEFAULT_USERNAME and
> util.SVN_AUTH_PARAM_DEFAULT_PASSWORD as well as
> client.SVN_CLIENT_AUTH_USERNAME and client.SVN_CLIENT_AUTH_PASSWORD but
> it doesn't change anythings.
>
> Could someone help me to fix this problem ?

The Python bindings don't have authentication providers implemented. So
unless you want to implment the thunking for them then you can't do
anything about this. I did the ones for the Perl bindings and it's a
big pain to get them to work. However, you can certainly look at how
the Perl bindings did it to help in figuring it out.

-- 
Ben Reser <ben@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Oct 8 07:54:05 2004

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