Can't authenticate

View: New views
4 Messages — Rating Filter:   Alert me  

Can't authenticate

by NickDeGraeve :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm trying to access Subversion but I keep getting

jsvn log http://_our_hostname_:8090/framework4-repos/trunk<Authentication realm: <http://_our_hostname_:8090>
Username: eu\ndegraev
Password for 'eu\ndegraev':
svn: OPTIONS of '/framework4-repos/trunk': 500 Internal Server Error (http://_our_hostname_:8090)
svn: OPTIONS request failed on '/framework4-repos/trunk'

In the server logs I see this:

[Mon Aug 31 11:11:58 2009] [error] [client _my_ip_address_] (OS 1326)Logon failure: unknown user name or bad password.  : user eu\\ndegraev: authentication failure for "/framework4-repos/trunk"


When I use the normal svn client I can do whatever I want. (The same with TortoiseSVN, Subversive plugin in Eclipse).

svn log http://_our_hostname_:8090/framework4-repos/trunk
------------------------------------------------------------------------
r54 | eu\ndegraev | 2009-08-31 11:37:56 +0200 (Mon, 31 Aug 2009) | 1 line

fixed: switch fall-through
------------------------------------------------------------------------
r53 | eu\ndegraev | 2009-08-31 09:08:01 +0200 (Mon, 31 Aug 2009) | 1 line

Build version 1.0.3 (r52)
------------------------------------------------------------------------
r52 | eu\ndegraev | 2009-08-31 09:05:44 +0200 (Mon, 31 Aug 2009) | 1 line
[...]


I originally encountered this issue while configuring Bamboo. The version shipped with that is 1.2.1.5297 but I tried it with 1.3.0-5847 too and that one doesn't work either.


Am I doing something wrong or is this a bug in SVNKit?

Re: Can't authenticate

by Alexander Kitaev-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Nick,

> Am I doing something wrong or is this a bug in SVNKit?
First, I was thinking that the reason of the problem is '\' character in
your user name - at least this looks suspicious and unusual. I've added
'a\nk' user to our test repository and surprisingly everything worked
fine both from command line (with jsvn) and programmatically.

I was using latest version of SVNKit from 1.3.x branch and our
repository uses Basic authentication. Does yours use another
authentication method?

Is it possible to get network sniffer log (I could recommend wireshark)
for failed operation and same command performed by the native client.
This will let us compare requests sent by native client and SVNKit to
see if there is any difference in this particular case.

Thanks,
Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!
http://sqljet.com/ - Java SQLite Library!

NickDeGraeve wrote:

> I'm trying to access Subversion but I keep getting
>
> jsvn log http://_our_hostname_:8090/framework4-repos/trunk<Authentication
> realm: <http://_our_hostname_:8090>
> Username: eu\ndegraev
> Password for 'eu\ndegraev':
> svn: OPTIONS of '/framework4-repos/trunk': 500 Internal Server Error
> (http://_our_hostname_:8090)
> svn: OPTIONS request failed on '/framework4-repos/trunk'
>
> In the server logs I see this:
>
> [Mon Aug 31 11:11:58 2009] [error] [client _my_ip_address_] (OS 1326)Logon
> failure: unknown user name or bad password.  : user eu\\ndegraev:
> authentication failure for "/framework4-repos/trunk"
>
>
> When I use the normal svn client I can do whatever I want. (The same with
> TortoiseSVN, Subversive plugin in Eclipse).
>
> svn log http://_our_hostname_:8090/framework4-repos/trunk
> ------------------------------------------------------------------------
> r54 | eu\ndegraev | 2009-08-31 11:37:56 +0200 (Mon, 31 Aug 2009) | 1 line
>
> fixed: switch fall-through
> ------------------------------------------------------------------------
> r53 | eu\ndegraev | 2009-08-31 09:08:01 +0200 (Mon, 31 Aug 2009) | 1 line
>
> Build version 1.0.3 (r52)
> ------------------------------------------------------------------------
> r52 | eu\ndegraev | 2009-08-31 09:05:44 +0200 (Mon, 31 Aug 2009) | 1 line
> [...]
>
>
> I originally encountered this issue while configuring Bamboo. The version
> shipped with that is 1.2.1.5297 but I tried it with 1.3.0-5847 too and that
> one doesn't work either.
>
>
> Am I doing something wrong or is this a bug in SVNKit?
>

---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@...
For additional commands, e-mail: svnkit-users-help@...


Re: Can't authenticate

by NickDeGraeve :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Alexander Kitaev-3 wrote:
Hello Nick,

> Am I doing something wrong or is this a bug in SVNKit?
First, I was thinking that the reason of the problem is '\' character in
your user name - at least this looks suspicious and unusual. I've added
'a\nk' user to our test repository and surprisingly everything worked
fine both from command line (with jsvn) and programmatically.

I was using latest version of SVNKit from 1.3.x branch and our
repository uses Basic authentication. Does yours use another
authentication method?
We are using NTLM and I fear that might be the problem. The authentication scheme is <domain>\<username>

I had a discussion with the SVN admin and in the near future we will be moving SVN to an Apache with ActiveDirectory module enabled.
For now we will enable anonymous access to avoid issues with NTLM.

Am I correct in my assessment that NTLM is causing our problems?

Re: Can't authenticate

by Alexander Kitaev-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I think NTLM is the reason of the problem. In case your server supports
fall back to Basic authentication, try launching SVNKit with
'-Dsvnkit.http.methods=Basic,NTLM' system property and try using user
name without domain name.

SVNKit also includes two NTLM implementations - default is pure Java and
you may switch to the native one (works on Windows through JNA library)
with the following system property:

-Dsvnkit.http.ntlm=jna

If possible please let me know if setting those options works for you.

Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!
http://sqljet.com/ - Java SQLite Library!

NickDeGraeve wrote:

>
> Alexander Kitaev-3 wrote:
>> Hello Nick,
>>
>>> Am I doing something wrong or is this a bug in SVNKit?
>> First, I was thinking that the reason of the problem is '\' character in
>> your user name - at least this looks suspicious and unusual. I've added
>> 'a\nk' user to our test repository and surprisingly everything worked
>> fine both from command line (with jsvn) and programmatically.
>>
>> I was using latest version of SVNKit from 1.3.x branch and our
>> repository uses Basic authentication. Does yours use another
>> authentication method?
>>
>
> We are using NTLM and I fear that might be the problem. The authentication
> scheme is <domain>\<username>
>
> I had a discussion with the SVN admin and in the near future we will be
> moving SVN to an Apache with ActiveDirectory module enabled.
> For now we will enable anonymous access to avoid issues with NTLM.
>
> Am I correct in my assessment that NTLM is causing our problems?
>

---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@...
For additional commands, e-mail: svnkit-users-help@...