Discussion:
Force windows client to use certain authentication
Pauli Sundberg
2014-09-26 07:44:32 UTC
Permalink
Hi all.

The background of the problem is that we have visual-svn server running (somewhere) and it is painfully slow to use with windows. With linux the server works fast. We are speaking 90sec vs 3sec in 'svn up'. I did some package capture with wireshark and i see that windows client is doing lots of LDAP queries and waiting for responses. The visual svn server also provides browser interface, and that also works fine (with windows). I know that the proper answer is that "fix your server/domain" but unfortunately its not my call.

So, i would like to make my life bearable by forcing my windows svn client to use http-basic authentication (to skip windows domain authentication that i think is causing slow performance). And based on manual i think would need to set "http-auth-types" = "basic".

I tried setting %USERPROFILE%\AppData\Roaming\Subversion\servers setting "http-auth-types" and i was able to get error by setting it to "FOO" (so its proper file and its red ok). Setting it to "basic" seems to have no effect; the same (slow) authentication cycle continues.

I tried also configuration line option --config-option=servers:global:http-auth-types=FOO - it gives error on linux but works fine on windows, without effect (dont know why!).

I am running "svn, version 1.8.8 (r1568071), compiled Feb 18 2014, 20:42:30 on x86-microsoft-windows" and the schema is HTTPS that is handled by "ra_serf".

Any suggestions what i am doing wrong?

Thanks!

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3089068

To unsubscribe from this discussion, e-mail: [dev-***@tortoisesvn.tigris.org].
Simon Large
2014-09-26 13:55:22 UTC
Permalink
Post by Pauli Sundberg
Hi all.
The background of the problem is that we have visual-svn server running
(somewhere) and it is painfully slow to use with windows. With linux the
server works fast. We are speaking 90sec vs 3sec in 'svn up'. I did some
package capture with wireshark and i see that windows client is doing lots
of LDAP queries and waiting for responses. The visual svn server also
provides browser interface, and that also works fine (with windows). I know
that the proper answer is that "fix your server/domain" but unfortunately
its not my call.
So, i would like to make my life bearable by forcing my windows svn client
to use http-basic authentication (to skip windows domain authentication
that i think is causing slow performance). And based on manual i think
would need to set "http-auth-types" = "basic".
I tried setting %USERPROFILE%\AppData\Roaming\Subversion\servers setting
"http-auth-types" and i was able to get error by setting it to "FOO" (so
its proper file and its red ok). Setting it to "basic" seems to have no
effect; the same (slow) authentication cycle continues.
I tried also configuration line option
--config-option=servers:global:http-auth-types=FOO - it gives error on
linux but works fine on windows, without effect (dont know why!).
I am running "svn, version 1.8.8 (r1568071), compiled Feb 18 2014,
20:42:30 on x86-microsoft-windows" and the schema is HTTPS that is handled
by "ra_serf".
Any suggestions what i am doing wrong?
Hi Pauli,

I think you will get more responses if you ask this question on the
subversion users mailing list as it is not specific to TortoiseSVN, more
about the interaction of subversion client and server libraries.

Simon

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3089081

To unsubscribe from this discussion, e-mail: [dev-***@tortoisesvn.tigris.org].
Stefan Küng
2014-09-26 14:35:45 UTC
Permalink
Post by Pauli Sundberg
Hi all.
The background of the problem is that we have visual-svn server
running (somewhere) and it is painfully slow to use with windows.
With linux the server works fast. We are speaking 90sec vs 3sec in
'svn up'. I did some package capture with wireshark and i see that
windows client is doing lots of LDAP queries and waiting for
responses. The visual svn server also provides browser interface, and
that also works fine (with windows). I know that the proper answer is
that "fix your server/domain" but unfortunately its not my call.
But you could ask others to fix the domain?
Post by Pauli Sundberg
So, i would like to make my life bearable by forcing my windows svn
client to use http-basic authentication (to skip windows domain
authentication that i think is causing slow performance). And based
on manual i think would need to set "http-auth-types" = "basic".
I tried setting %USERPROFILE%\AppData\Roaming\Subversion\servers
setting "http-auth-types" and i was able to get error by setting it
to "FOO" (so its proper file and its red ok). Setting it to "basic"
seems to have no effect; the same (slow) authentication cycle
continues.
No, it can't have an effect: domain authentication is done by ssl way
before svn even gets asked about authentication,
Post by Pauli Sundberg
I tried also configuration line option
--config-option=servers:global:http-auth-types=FOO - it gives error
on linux but works fine on windows, without effect (dont know why!).
I am running "svn, version 1.8.8 (r1568071), compiled Feb 18 2014,
20:42:30 on x86-microsoft-windows" and the schema is HTTPS that is
handled by "ra_serf".
Any suggestions what i am doing wrong?
the domain authentication is done by the ssl library, not svn. So you
can't disable that.
Such a slowdown as you described usually only happens if the user GUEST
is active on your computer and/or the domain. If that user is active on
a domain, that's never a good idea and only causes security risks - in a
normal setup, that user is never used and therefore should be
disabled/removed.

The slowdown happens because domain authentication is per definition
always done using the credentials with the least privileges. So if the
user GUEST is active, every net request is first tried with that user.
Of course, that user does not have access to your repository so an error
is returned, which then causes the domain auth to try the next user (the
one you're logged in with).

Also, TortoiseSVN has the eCapi module enabled in OpenSSL. It shouldn't
cause such slowdowns but since I don't know your exact setup I can't be
sure. To disable that, create the DWORD registry value
HKCU\Software\TortoiseSVN\OpenSSLCapi and set it to zero.

Stefan
--
___
oo // \\ "De Chelonian Mobile"
(_,\/ \_/ \ TortoiseSVN
\ \_/_\_/> The coolest interface to (Sub)version control
/_/ \_\ http://tortoisesvn.net

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3089083

To unsubscribe from this discussion, e-mail: [dev-***@tortoisesvn.tigris.org].
Stefan Küng
2014-09-26 14:51:03 UTC
Permalink
Post by Pauli Sundberg
I tried setting %USERPROFILE%\AppData\Roaming\Subversion\servers
Post by Pauli Sundberg
setting "http-auth-types" and i was able to get error by setting it
to "FOO" (so its proper file and its red ok). Setting it to "basic"
seems to have no effect; the same (slow) authentication cycle
continues.
Also, in svn 1.8 the default for the http-auth-types is "
negotiate;ntlm;basic".
which means you should not set it to something illegal but to "basic"

Stefan
--
___
oo // \\ "De Chelonian Mobile"
(_,\/ \_/ \ TortoiseSVN
\ \_/_\_/> The coolest Interface to (Sub)Version Control
/_/ \_\ http://tortoisesvn.net

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3089084

To unsubscribe from this discussion, e-mail: [dev-***@tortoisesvn.tigris.org].
Continue reading on narkive:
Loading...