You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Koert van der Veer <kv...@playlogicgames.com> on 2009/06/19 08:39:39 UTC
What auth providers to use for NTLM authentication?
I'm trying to make an unattended tool that needs to access subversion.
This client will connect to an apache server which provides the ntlm
authentication method, but it also offers basic authentication.
I really don't want my client to ask for a password, as I don't have a
reasonable way to ask the user for one.
I'm using win32 1.6.2 dev libraries provided on tigris.
My provider setup is as follows:
apr_array_header_t* providers =
apr_array_make(RootPool,0,sizeof(svn_auth_provider_object_t*));
svn_auth_get_platform_specific_client_providers(&providers,NULL,
RootPool);
svn_auth_provider_object_t * provider;
svn_auth_get_windows_simple_provider(&provider,RootPool);
*(svn_auth_provider_object_t**)apr_array_push(providers) =
provider;
svn_auth_get_username_provider(&provider,RootPool);
*(svn_auth_provider_object_t**)apr_array_push(providers) =
provider;
svn_auth_open( &(context->auth_baton), providers, RootPool);
svn_auth_set_parameter( context->auth_baton,
SVN_AUTH_PARAM_NON_INTERACTIVE,
"true");
Unfortunately, when accessing the repository, an error is returned with
the message:
OPTIONS of ' http://hostname/svn': authorization failed: Could not
authenticate to server: ignored NTLM challenge, rejected Basic challenge
(http://hostname)
I'm guessing I've set up the providers wrongly, but I can't seem to
figure out how to tell neon not to ignore the NTLM challenge. Any clues?
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2363445
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].