Authentication failed

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

Authentication failed

by I. Borosan :: Rate this Message:

| View Threaded | Show Only this Message

Hello!

I've tried to do a checkout from a password protected repository(https://....), and I got an error: svn: Authentication required for... FTSRG LDAP Authorization .
The code is the following:

private static ISVNAuthenticationManager authManager =
SVNWCUtil.createDefaultAuthenticationManager( "login" , "passwrd" );
private static SVNRepository repository;
....

public ManageSVN()
        {
                SVNRepositoryFactoryImpl.setup();
                DAVRepositoryFactory.setup();
                try{
                    SVNURL url1 = SVNURL.parseURIDecoded( "https://..." );
                    repository = SVNRepositoryFactory.create( url1, null );

                    repository.setAuthenticationManager(authManager);


                }catch(Exception e)
                {
                        System.out.println(e.getMessage());
                }
        }

Then I call the checkout, which works well with repositories which aren't protected.
Please help
Best regards
I.Borosan

Re: Authentication failed

by Alexander Kitaev-3 :: Rate this Message:

| View Threaded | Show Only this Message

Hello,

Sorry for delay with the answer. What authentication method is used by
the server? Is it NTLM? If so, and if Basic method also supported, then
setting the following property might help:

-Dsvnkit.http.methods=Digest,Basic,Negotiate,NTLM

Otherwise code looks fine.

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

On 29-Apr-10 08:38, I. Borosan wrote:

>
> Hello!
>
> I've tried to do a checkout from a password protected
> repository(https://....), and I got an error: svn: Authentication required
> for... FTSRG LDAP Authorization .
> The code is the following:
>
> private static ISVNAuthenticationManager authManager =
> SVNWCUtil.createDefaultAuthenticationManager( "login" , "passwrd" );
> private static SVNRepository repository;
> ....
>
> public ManageSVN()
>          {
>                  SVNRepositoryFactoryImpl.setup();
>                  DAVRepositoryFactory.setup();
>                  try{
>                      SVNURL url1 = SVNURL.parseURIDecoded( "https://..." );
>                      repository = SVNRepositoryFactory.create( url1, null );
>
>                      repository.setAuthenticationManager(authManager);
>
>
>                  }catch(Exception e)
>                  {
>                          System.out.println(e.getMessage());
>                  }
>          }
>
> Then I call the checkout, which works well with repositories which aren't
> protected.
> Please help
> Best regards
> I.Borosan

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


Re: Authentication failed

by I. Borosan :: Rate this Message:

| View Threaded | Show Only this Message

Hello!

Thank you for your answer, and I'm sorry for my answers delay. I put the System.setProperty("svnkit.http.methods", "Digest,Basic,Negotiate,NTLM");
codeline to the source code, but the problem is still remains. The authentication method for the server is unknown for me.
Alexander Kitaev-3 wrote:
Hello,

Sorry for delay with the answer. What authentication method is used by
the server? Is it NTLM? If so, and if Basic method also supported, then
setting the following property might help:

-Dsvnkit.http.methods=Digest,Basic,Negotiate,NTLM

Otherwise code looks fine.

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

On 29-Apr-10 08:38, I. Borosan wrote:
>
> Hello!
>
> I've tried to do a checkout from a password protected
> repository(https://....), and I got an error: svn: Authentication required
> for... FTSRG LDAP Authorization .
> The code is the following:
>
> private static ISVNAuthenticationManager authManager =
> SVNWCUtil.createDefaultAuthenticationManager( "login" , "passwrd" );
> private static SVNRepository repository;
> ....
>
> public ManageSVN()
>          {
>                  SVNRepositoryFactoryImpl.setup();
>                  DAVRepositoryFactory.setup();
>                  try{
>                      SVNURL url1 = SVNURL.parseURIDecoded( "https://..." );
>                      repository = SVNRepositoryFactory.create( url1, null );
>
>                      repository.setAuthenticationManager(authManager);
>
>
>                  }catch(Exception e)
>                  {
>                          System.out.println(e.getMessage());
>                  }
>          }
>
> Then I call the checkout, which works well with repositories which aren't
> protected.
> Please help
> Best regards
> I.Borosan

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

Re: Authentication failed

by Alexander Kitaev-3 :: Rate this Message:

| View Threaded | Show Only this Message

Hello,

 > codeline to the source code, but the problem is still remains. The
 > authentication method for the server is unknown for me.

Could you get a connection log (log file that will contain debug
information including data sent and received over network) to shed more
light on the reason of the problem? To get the log file, please follow
instructions in the following article (see first part of the article):

https://wiki.svnkit.com/Troubleshooting

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

On 03-May-10 18:44, I. Borosan wrote:

>
> Hello!
>
> Thank you for your answer, and I'm sorry for my answers delay. I put the
> System.setProperty("svnkit.http.methods", "Digest,Basic,Negotiate,NTLM");
> codeline to the source code, but the problem is still remains. The
> authentication method for the server is unknown for me.
>
> Alexander Kitaev-3 wrote:
>>
>> Hello,
>>
>> Sorry for delay with the answer. What authentication method is used by
>> the server? Is it NTLM? If so, and if Basic method also supported, then
>> setting the following property might help:
>>
>> -Dsvnkit.http.methods=Digest,Basic,Negotiate,NTLM
>>
>> Otherwise code looks fine.
>>
>> Alexander Kitaev,
>> TMate Software,
>> http://svnkit.com/ - Java [Sub]Versioning Library!
>> http://sqljet.com/ - Java SQLite Library!
>>
>> On 29-Apr-10 08:38, I. Borosan wrote:
>>>
>>> Hello!
>>>
>>> I've tried to do a checkout from a password protected
>>> repository(https://....), and I got an error: svn: Authentication
>>> required
>>> for... FTSRG LDAP Authorization .
>>> The code is the following:
>>>
>>> private static ISVNAuthenticationManager authManager =
>>> SVNWCUtil.createDefaultAuthenticationManager( "login" , "passwrd" );
>>> private static SVNRepository repository;
>>> ....
>>>
>>> public ManageSVN()
>>>           {
>>>                   SVNRepositoryFactoryImpl.setup();
>>>                   DAVRepositoryFactory.setup();
>>>                   try{
>>>                       SVNURL url1 = SVNURL.parseURIDecoded( "https://..."
>>> );
>>>                       repository = SVNRepositoryFactory.create( url1, null
>>> );
>>>
>>>                       repository.setAuthenticationManager(authManager);
>>>
>>>
>>>                   }catch(Exception e)
>>>                   {
>>>                           System.out.println(e.getMessage());
>>>                   }
>>>           }
>>>
>>> Then I call the checkout, which works well with repositories which aren't
>>> protected.
>>> Please help
>>> Best regards
>>> I.Borosan
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: svnkit-users-unsubscribe@...
>> For additional commands, e-mail: svnkit-users-help@...
>>
>>
>>
>

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


Re: Authentication failed

by I. Borosan :: Rate this Message:

| View Threaded | Show Only this Message

Hello!

I got the connection log, it contains the following:


2010.05.05. 10:11:41 org.tmatesoft.svn.core.internal.util.DefaultSVNDebugLogger log
FINE: NETWORK: Thread[SVN-CNA7N,6,main]: LOCKED
2010.05.05. 10:11:41 org.tmatesoft.svn.core.internal.util.DefaultSVNDebugLogger log
FINE: NETWORK: Thread[SVN-CNA7N,6,main]: UNLOCKED

Alexander Kitaev-3 wrote:
Hello,

 > codeline to the source code, but the problem is still remains. The
 > authentication method for the server is unknown for me.

Could you get a connection log (log file that will contain debug
information including data sent and received over network) to shed more
light on the reason of the problem? To get the log file, please follow
instructions in the following article (see first part of the article):

https://wiki.svnkit.com/Troubleshooting

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

On 03-May-10 18:44, I. Borosan wrote:
>
> Hello!
>
> Thank you for your answer, and I'm sorry for my answers delay. I put the
> System.setProperty("svnkit.http.methods", "Digest,Basic,Negotiate,NTLM");
> codeline to the source code, but the problem is still remains. The
> authentication method for the server is unknown for me.
>
> Alexander Kitaev-3 wrote:
>>
>> Hello,
>>
>> Sorry for delay with the answer. What authentication method is used by
>> the server? Is it NTLM? If so, and if Basic method also supported, then
>> setting the following property might help:
>>
>> -Dsvnkit.http.methods=Digest,Basic,Negotiate,NTLM
>>
>> Otherwise code looks fine.
>>
>> Alexander Kitaev,
>> TMate Software,
>> http://svnkit.com/ - Java [Sub]Versioning Library!
>> http://sqljet.com/ - Java SQLite Library!
>>
>> On 29-Apr-10 08:38, I. Borosan wrote:
>>>
>>> Hello!
>>>
>>> I've tried to do a checkout from a password protected
>>> repository(https://....), and I got an error: svn: Authentication
>>> required
>>> for... FTSRG LDAP Authorization .
>>> The code is the following:
>>>
>>> private static ISVNAuthenticationManager authManager =
>>> SVNWCUtil.createDefaultAuthenticationManager( "login" , "passwrd" );
>>> private static SVNRepository repository;
>>> ....
>>>
>>> public ManageSVN()
>>>           {
>>>                   SVNRepositoryFactoryImpl.setup();
>>>                   DAVRepositoryFactory.setup();
>>>                   try{
>>>                       SVNURL url1 = SVNURL.parseURIDecoded( "https://..."
>>> );
>>>                       repository = SVNRepositoryFactory.create( url1, null
>>> );
>>>
>>>                       repository.setAuthenticationManager(authManager);
>>>
>>>
>>>                   }catch(Exception e)
>>>                   {
>>>                           System.out.println(e.getMessage());
>>>                   }
>>>           }
>>>
>>> Then I call the checkout, which works well with repositories which aren't
>>> protected.
>>> Please help
>>> Best regards
>>> I.Borosan
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: svnkit-users-unsubscribe@svnkit.com
>> For additional commands, e-mail: svnkit-users-help@svnkit.com
>>
>>
>>
>

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

Re: Authentication failed

by Alexander Kitaev-3 :: Rate this Message:

| View Threaded | Show Only this Message

Hello,

This couldn't be the full log. If you're using http protocol to
connection to the server, then log should include all messages sent to
and received from the server.

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

On 05-May-10 10:20, I. Borosan wrote:

>
> Hello!
>
> I got the connection log, it contains the following:
>
>
> 2010.05.05. 10:11:41
> org.tmatesoft.svn.core.internal.util.DefaultSVNDebugLogger log
> FINE: NETWORK: Thread[SVN-CNA7N,6,main]: LOCKED
> 2010.05.05. 10:11:41
> org.tmatesoft.svn.core.internal.util.DefaultSVNDebugLogger log
> FINE: NETWORK: Thread[SVN-CNA7N,6,main]: UNLOCKED
>
>
> Alexander Kitaev-3 wrote:
>>
>> Hello,
>>
>>   >  codeline to the source code, but the problem is still remains. The
>>   >  authentication method for the server is unknown for me.
>>
>> Could you get a connection log (log file that will contain debug
>> information including data sent and received over network) to shed more
>> light on the reason of the problem? To get the log file, please follow
>> instructions in the following article (see first part of the article):
>>
>> https://wiki.svnkit.com/Troubleshooting
>>
>> Alexander Kitaev,
>> TMate Software,
>> http://svnkit.com/ - Java [Sub]Versioning Library!
>> http://sqljet.com/ - Java SQLite Library!
>>
>> On 03-May-10 18:44, I. Borosan wrote:
>>>
>>> Hello!
>>>
>>> Thank you for your answer, and I'm sorry for my answers delay. I put the
>>> System.setProperty("svnkit.http.methods", "Digest,Basic,Negotiate,NTLM");
>>> codeline to the source code, but the problem is still remains. The
>>> authentication method for the server is unknown for me.
>>>
>>> Alexander Kitaev-3 wrote:
>>>>
>>>> Hello,
>>>>
>>>> Sorry for delay with the answer. What authentication method is used by
>>>> the server? Is it NTLM? If so, and if Basic method also supported, then
>>>> setting the following property might help:
>>>>
>>>> -Dsvnkit.http.methods=Digest,Basic,Negotiate,NTLM
>>>>
>>>> Otherwise code looks fine.
>>>>
>>>> Alexander Kitaev,
>>>> TMate Software,
>>>> http://svnkit.com/ - Java [Sub]Versioning Library!
>>>> http://sqljet.com/ - Java SQLite Library!
>>>>
>>>> On 29-Apr-10 08:38, I. Borosan wrote:
>>>>>
>>>>> Hello!
>>>>>
>>>>> I've tried to do a checkout from a password protected
>>>>> repository(https://....), and I got an error: svn: Authentication
>>>>> required
>>>>> for... FTSRG LDAP Authorization .
>>>>> The code is the following:
>>>>>
>>>>> private static ISVNAuthenticationManager authManager =
>>>>> SVNWCUtil.createDefaultAuthenticationManager( "login" , "passwrd" );
>>>>> private static SVNRepository repository;
>>>>> ....
>>>>>
>>>>> public ManageSVN()
>>>>>            {
>>>>>                    SVNRepositoryFactoryImpl.setup();
>>>>>                    DAVRepositoryFactory.setup();
>>>>>                    try{
>>>>>                        SVNURL url1 = SVNURL.parseURIDecoded(
>>>>> "https://..."
>>>>> );
>>>>>                        repository = SVNRepositoryFactory.create( url1,
>>>>> null
>>>>> );
>>>>>
>>>>>                        repository.setAuthenticationManager(authManager);
>>>>>
>>>>>
>>>>>                    }catch(Exception e)
>>>>>                    {
>>>>>                            System.out.println(e.getMessage());
>>>>>                    }
>>>>>            }
>>>>>
>>>>> Then I call the checkout, which works well with repositories which
>>>>> aren't
>>>>> protected.
>>>>> Please help
>>>>> Best regards
>>>>> I.Borosan
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: svnkit-users-unsubscribe@...
>>>> For additional commands, e-mail: svnkit-users-help@...
>>>>
>>>>
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: svnkit-users-unsubscribe@...
>> For additional commands, e-mail: svnkit-users-help@...
>>
>>
>>
>

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


Re: Authentication failed

by I. Borosan :: Rate this Message:

| View Threaded | Show Only this Message

Hello!

I hope I got the full log now, I attached it. svnkit.1.logI found out that the server uses Basic authentication method. I used Wireshark to watch messages sent to and received from the server, and I noticed that when the server challanged for authentication first time, svnkit sent the user name and password. But when the server challanged second time, the user name and password haven't been sent.

 
Alexander Kitaev-3 wrote:
Hello,

This couldn't be the full log. If you're using http protocol to
connection to the server, then log should include all messages sent to
and received from the server.

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

On 05-May-10 10:20, I. Borosan wrote:
>
> Hello!
>
> I got the connection log, it contains the following:
>
>
> 2010.05.05. 10:11:41
> org.tmatesoft.svn.core.internal.util.DefaultSVNDebugLogger log
> FINE: NETWORK: Thread[SVN-CNA7N,6,main]: LOCKED
> 2010.05.05. 10:11:41
> org.tmatesoft.svn.core.internal.util.DefaultSVNDebugLogger log
> FINE: NETWORK: Thread[SVN-CNA7N,6,main]: UNLOCKED
>
>
> Alexander Kitaev-3 wrote:
>>
>> Hello,
>>
>>   >  codeline to the source code, but the problem is still remains. The
>>   >  authentication method for the server is unknown for me.
>>
>> Could you get a connection log (log file that will contain debug
>> information including data sent and received over network) to shed more
>> light on the reason of the problem? To get the log file, please follow
>> instructions in the following article (see first part of the article):
>>
>> https://wiki.svnkit.com/Troubleshooting
>>
>> Alexander Kitaev,
>> TMate Software,
>> http://svnkit.com/ - Java [Sub]Versioning Library!
>> http://sqljet.com/ - Java SQLite Library!
>>
>> On 03-May-10 18:44, I. Borosan wrote:
>>>
>>> Hello!
>>>
>>> Thank you for your answer, and I'm sorry for my answers delay. I put the
>>> System.setProperty("svnkit.http.methods", "Digest,Basic,Negotiate,NTLM");
>>> codeline to the source code, but the problem is still remains. The
>>> authentication method for the server is unknown for me.
>>>
>>> Alexander Kitaev-3 wrote:
>>>>
>>>> Hello,
>>>>
>>>> Sorry for delay with the answer. What authentication method is used by
>>>> the server? Is it NTLM? If so, and if Basic method also supported, then
>>>> setting the following property might help:
>>>>
>>>> -Dsvnkit.http.methods=Digest,Basic,Negotiate,NTLM
>>>>
>>>> Otherwise code looks fine.
>>>>
>>>> Alexander Kitaev,
>>>> TMate Software,
>>>> http://svnkit.com/ - Java [Sub]Versioning Library!
>>>> http://sqljet.com/ - Java SQLite Library!
>>>>
>>>> On 29-Apr-10 08:38, I. Borosan wrote:
>>>>>
>>>>> Hello!
>>>>>
>>>>> I've tried to do a checkout from a password protected
>>>>> repository(https://....), and I got an error: svn: Authentication
>>>>> required
>>>>> for... FTSRG LDAP Authorization .
>>>>> The code is the following:
>>>>>
>>>>> private static ISVNAuthenticationManager authManager =
>>>>> SVNWCUtil.createDefaultAuthenticationManager( "login" , "passwrd" );
>>>>> private static SVNRepository repository;
>>>>> ....
>>>>>
>>>>> public ManageSVN()
>>>>>            {
>>>>>                    SVNRepositoryFactoryImpl.setup();
>>>>>                    DAVRepositoryFactory.setup();
>>>>>                    try{
>>>>>                        SVNURL url1 = SVNURL.parseURIDecoded(
>>>>> "https://..."
>>>>> );
>>>>>                        repository = SVNRepositoryFactory.create( url1,
>>>>> null
>>>>> );
>>>>>
>>>>>                        repository.setAuthenticationManager(authManager);
>>>>>
>>>>>
>>>>>                    }catch(Exception e)
>>>>>                    {
>>>>>                            System.out.println(e.getMessage());
>>>>>                    }
>>>>>            }
>>>>>
>>>>> Then I call the checkout, which works well with repositories which
>>>>> aren't
>>>>> protected.
>>>>> Please help
>>>>> Best regards
>>>>> I.Borosan
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: svnkit-users-unsubscribe@svnkit.com
>>>> For additional commands, e-mail: svnkit-users-help@svnkit.com
>>>>
>>>>
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: svnkit-users-unsubscribe@svnkit.com
>> For additional commands, e-mail: svnkit-users-help@svnkit.com
>>
>>
>>
>

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

Re: Authentication failed

by Alexander Kitaev-3 :: Rate this Message:

| View Threaded | Show Only this Message

Hello,

Thank you for the log file. It looks strange as you may see
authentication is accepted by the server at the beginning and then just
not sent.

This may happen if you create a new instance of SVNRepository or
SVNClientManager and does not set authentication manager on that
instance. Then this new instance will have no credentials to send to the
server.

Could you please send the whole code you use for checking out? You set
authentication manager on 'repository' instance:

repository.setAuthenticationManager(authManager);

Does you use this 'repository' for checkout? If not, then do you set
'authManager' on SVNClientManager you create to perform checkout?

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

On 06-May-10 19:15, I. Borosan wrote:

>
> Hello!
>
> I hope I got the full log now, I attached it.
> http://old.nabble.com/file/p28476888/svnkit.1.log svnkit.1.log I found out
> that the server uses Basic authentication method. I used Wireshark to watch
> messages sent to and received from the server, and I noticed that when the
> server challanged for authentication first time, svnkit sent the user name
> and password. But when the server challanged second time, the user name and
> password haven't been sent.
>
>
>
> Alexander Kitaev-3 wrote:
>>
>> Hello,
>>
>> This couldn't be the full log. If you're using http protocol to
>> connection to the server, then log should include all messages sent to
>> and received from the server.
>>
>> Alexander Kitaev,
>> TMate Software,
>> http://svnkit.com/ - Java [Sub]Versioning Library!
>> http://sqljet.com/ - Java SQLite Library!
>>
>> On 05-May-10 10:20, I. Borosan wrote:
>>>
>>> Hello!
>>>
>>> I got the connection log, it contains the following:
>>>
>>>
>>> 2010.05.05. 10:11:41
>>> org.tmatesoft.svn.core.internal.util.DefaultSVNDebugLogger log
>>> FINE: NETWORK: Thread[SVN-CNA7N,6,main]: LOCKED
>>> 2010.05.05. 10:11:41
>>> org.tmatesoft.svn.core.internal.util.DefaultSVNDebugLogger log
>>> FINE: NETWORK: Thread[SVN-CNA7N,6,main]: UNLOCKED
>>>
>>>
>>> Alexander Kitaev-3 wrote:
>>>>
>>>> Hello,
>>>>
>>>>    >   codeline to the source code, but the problem is still remains. The
>>>>    >   authentication method for the server is unknown for me.
>>>>
>>>> Could you get a connection log (log file that will contain debug
>>>> information including data sent and received over network) to shed more
>>>> light on the reason of the problem? To get the log file, please follow
>>>> instructions in the following article (see first part of the article):
>>>>
>>>> https://wiki.svnkit.com/Troubleshooting
>>>>
>>>> Alexander Kitaev,
>>>> TMate Software,
>>>> http://svnkit.com/ - Java [Sub]Versioning Library!
>>>> http://sqljet.com/ - Java SQLite Library!
>>>>
>>>> On 03-May-10 18:44, I. Borosan wrote:
>>>>>
>>>>> Hello!
>>>>>
>>>>> Thank you for your answer, and I'm sorry for my answers delay. I put
>>>>> the
>>>>> System.setProperty("svnkit.http.methods",
>>>>> "Digest,Basic,Negotiate,NTLM");
>>>>> codeline to the source code, but the problem is still remains. The
>>>>> authentication method for the server is unknown for me.
>>>>>
>>>>> Alexander Kitaev-3 wrote:
>>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> Sorry for delay with the answer. What authentication method is used by
>>>>>> the server? Is it NTLM? If so, and if Basic method also supported,
>>>>>> then
>>>>>> setting the following property might help:
>>>>>>
>>>>>> -Dsvnkit.http.methods=Digest,Basic,Negotiate,NTLM
>>>>>>
>>>>>> Otherwise code looks fine.
>>>>>>
>>>>>> Alexander Kitaev,
>>>>>> TMate Software,
>>>>>> http://svnkit.com/ - Java [Sub]Versioning Library!
>>>>>> http://sqljet.com/ - Java SQLite Library!
>>>>>>
>>>>>> On 29-Apr-10 08:38, I. Borosan wrote:
>>>>>>>
>>>>>>> Hello!
>>>>>>>
>>>>>>> I've tried to do a checkout from a password protected
>>>>>>> repository(https://....), and I got an error: svn: Authentication
>>>>>>> required
>>>>>>> for... FTSRG LDAP Authorization .
>>>>>>> The code is the following:
>>>>>>>
>>>>>>> private static ISVNAuthenticationManager authManager =
>>>>>>> SVNWCUtil.createDefaultAuthenticationManager( "login" , "passwrd" );
>>>>>>> private static SVNRepository repository;
>>>>>>> ....
>>>>>>>
>>>>>>> public ManageSVN()
>>>>>>>             {
>>>>>>>                     SVNRepositoryFactoryImpl.setup();
>>>>>>>                     DAVRepositoryFactory.setup();
>>>>>>>                     try{
>>>>>>>                         SVNURL url1 = SVNURL.parseURIDecoded(
>>>>>>> "https://..."
>>>>>>> );
>>>>>>>                         repository = SVNRepositoryFactory.create(
>>>>>>> url1,
>>>>>>> null
>>>>>>> );
>>>>>>>
>>>>>>>
>>>>>>> repository.setAuthenticationManager(authManager);
>>>>>>>
>>>>>>>
>>>>>>>                     }catch(Exception e)
>>>>>>>                     {
>>>>>>>                             System.out.println(e.getMessage());
>>>>>>>                     }
>>>>>>>             }
>>>>>>>
>>>>>>> Then I call the checkout, which works well with repositories which
>>>>>>> aren't
>>>>>>> protected.
>>>>>>> Please help
>>>>>>> Best regards
>>>>>>> I.Borosan
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: svnkit-users-unsubscribe@...
>>>>>> For additional commands, e-mail: svnkit-users-help@...
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: svnkit-users-unsubscribe@...
>>>> For additional commands, e-mail: svnkit-users-help@...
>>>>
>>>>
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: svnkit-users-unsubscribe@...
>> For additional commands, e-mail: svnkit-users-help@...
>>
>>
>>
>

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


Re: Authentication failed

by I. Borosan :: Rate this Message:

| View Threaded | Show Only this Message

Hello Alexander

I attached the file, which contains the code: code.txt

Alexander Kitaev-3 wrote:
Hello,

Thank you for the log file. It looks strange as you may see
authentication is accepted by the server at the beginning and then just
not sent.

This may happen if you create a new instance of SVNRepository or
SVNClientManager and does not set authentication manager on that
instance. Then this new instance will have no credentials to send to the
server.

Could you please send the whole code you use for checking out? You set
authentication manager on 'repository' instance:

repository.setAuthenticationManager(authManager);

Does you use this 'repository' for checkout? If not, then do you set
'authManager' on SVNClientManager you create to perform checkout?

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

On 06-May-10 19:15, I. Borosan wrote:
>
> Hello!
>
> I hope I got the full log now, I attached it.
> http://old.nabble.com/file/p28476888/svnkit.1.log svnkit.1.log I found out
> that the server uses Basic authentication method. I used Wireshark to watch
> messages sent to and received from the server, and I noticed that when the
> server challanged for authentication first time, svnkit sent the user name
> and password. But when the server challanged second time, the user name and
> password haven't been sent.
>
>
>
> Alexander Kitaev-3 wrote:
>>
>> Hello,
>>
>> This couldn't be the full log. If you're using http protocol to
>> connection to the server, then log should include all messages sent to
>> and received from the server.
>>
>> Alexander Kitaev,
>> TMate Software,
>> http://svnkit.com/ - Java [Sub]Versioning Library!
>> http://sqljet.com/ - Java SQLite Library!
>>
>> On 05-May-10 10:20, I. Borosan wrote:
>>>
>>> Hello!
>>>
>>> I got the connection log, it contains the following:
>>>
>>>
>>> 2010.05.05. 10:11:41
>>> org.tmatesoft.svn.core.internal.util.DefaultSVNDebugLogger log
>>> FINE: NETWORK: Thread[SVN-CNA7N,6,main]: LOCKED
>>> 2010.05.05. 10:11:41
>>> org.tmatesoft.svn.core.internal.util.DefaultSVNDebugLogger log
>>> FINE: NETWORK: Thread[SVN-CNA7N,6,main]: UNLOCKED
>>>
>>>
>>> Alexander Kitaev-3 wrote:
>>>>
>>>> Hello,
>>>>
>>>>    >   codeline to the source code, but the problem is still remains. The
>>>>    >   authentication method for the server is unknown for me.
>>>>
>>>> Could you get a connection log (log file that will contain debug
>>>> information including data sent and received over network) to shed more
>>>> light on the reason of the problem? To get the log file, please follow
>>>> instructions in the following article (see first part of the article):
>>>>
>>>> https://wiki.svnkit.com/Troubleshooting
>>>>
>>>> Alexander Kitaev,
>>>> TMate Software,
>>>> http://svnkit.com/ - Java [Sub]Versioning Library!
>>>> http://sqljet.com/ - Java SQLite Library!
>>>>
>>>> On 03-May-10 18:44, I. Borosan wrote:
>>>>>
>>>>> Hello!
>>>>>
>>>>> Thank you for your answer, and I'm sorry for my answers delay. I put
>>>>> the
>>>>> System.setProperty("svnkit.http.methods",
>>>>> "Digest,Basic,Negotiate,NTLM");
>>>>> codeline to the source code, but the problem is still remains. The
>>>>> authentication method for the server is unknown for me.
>>>>>
>>>>> Alexander Kitaev-3 wrote:
>>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> Sorry for delay with the answer. What authentication method is used by
>>>>>> the server? Is it NTLM? If so, and if Basic method also supported,
>>>>>> then
>>>>>> setting the following property might help:
>>>>>>
>>>>>> -Dsvnkit.http.methods=Digest,Basic,Negotiate,NTLM
>>>>>>
>>>>>> Otherwise code looks fine.
>>>>>>
>>>>>> Alexander Kitaev,
>>>>>> TMate Software,
>>>>>> http://svnkit.com/ - Java [Sub]Versioning Library!
>>>>>> http://sqljet.com/ - Java SQLite Library!
>>>>>>
>>>>>> On 29-Apr-10 08:38, I. Borosan wrote:
>>>>>>>
>>>>>>> Hello!
>>>>>>>
>>>>>>> I've tried to do a checkout from a password protected
>>>>>>> repository(https://....), and I got an error: svn: Authentication
>>>>>>> required
>>>>>>> for... FTSRG LDAP Authorization .
>>>>>>> The code is the following:
>>>>>>>
>>>>>>> private static ISVNAuthenticationManager authManager =
>>>>>>> SVNWCUtil.createDefaultAuthenticationManager( "login" , "passwrd" );
>>>>>>> private static SVNRepository repository;
>>>>>>> ....
>>>>>>>
>>>>>>> public ManageSVN()
>>>>>>>             {
>>>>>>>                     SVNRepositoryFactoryImpl.setup();
>>>>>>>                     DAVRepositoryFactory.setup();
>>>>>>>                     try{
>>>>>>>                         SVNURL url1 = SVNURL.parseURIDecoded(
>>>>>>> "https://..."
>>>>>>> );
>>>>>>>                         repository = SVNRepositoryFactory.create(
>>>>>>> url1,
>>>>>>> null
>>>>>>> );
>>>>>>>
>>>>>>>
>>>>>>> repository.setAuthenticationManager(authManager);
>>>>>>>
>>>>>>>
>>>>>>>                     }catch(Exception e)
>>>>>>>                     {
>>>>>>>                             System.out.println(e.getMessage());
>>>>>>>                     }
>>>>>>>             }
>>>>>>>
>>>>>>> Then I call the checkout, which works well with repositories which
>>>>>>> aren't
>>>>>>> protected.
>>>>>>> Please help
>>>>>>> Best regards
>>>>>>> I.Borosan
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: svnkit-users-unsubscribe@svnkit.com
>>>>>> For additional commands, e-mail: svnkit-users-help@svnkit.com
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: svnkit-users-unsubscribe@svnkit.com
>>>> For additional commands, e-mail: svnkit-users-help@svnkit.com
>>>>
>>>>
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: svnkit-users-unsubscribe@svnkit.com
>> For additional commands, e-mail: svnkit-users-help@svnkit.com
>>
>>
>>
>

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

Re: Authentication failed

by Alexander Kitaev-3 :: Rate this Message:

| View Threaded | Show Only this Message

Hello,

You never set ISVNAuthenticationManager to the ourClientManager object
and authentication manager you create is actually never used (as
'repository' is never used).

Add the follwing line:

ourClientManager.setAuthenticationManager(authManager);

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

On 09-May-10 16:57, I. Borosan wrote:

>
> Hello Alexander
>
> I attached the file, which contains the code:
> http://old.nabble.com/file/p28503290/code.txt code.txt
>
>
> Alexander Kitaev-3 wrote:
>>
>> Hello,
>>
>> Thank you for the log file. It looks strange as you may see
>> authentication is accepted by the server at the beginning and then just
>> not sent.
>>
>> This may happen if you create a new instance of SVNRepository or
>> SVNClientManager and does not set authentication manager on that
>> instance. Then this new instance will have no credentials to send to the
>> server.
>>
>> Could you please send the whole code you use for checking out? You set
>> authentication manager on 'repository' instance:
>>
>> repository.setAuthenticationManager(authManager);
>>
>> Does you use this 'repository' for checkout? If not, then do you set
>> 'authManager' on SVNClientManager you create to perform checkout?
>>
>> Alexander Kitaev,
>> TMate Software,
>> http://svnkit.com/ - Java [Sub]Versioning Library!
>> http://sqljet.com/ - Java SQLite Library!
>>
>> On 06-May-10 19:15, I. Borosan wrote:
>>>
>>> Hello!
>>>
>>> I hope I got the full log now, I attached it.
>>> http://old.nabble.com/file/p28476888/svnkit.1.log svnkit.1.log I found
>>> out
>>> that the server uses Basic authentication method. I used Wireshark to
>>> watch
>>> messages sent to and received from the server, and I noticed that when
>>> the
>>> server challanged for authentication first time, svnkit sent the user
>>> name
>>> and password. But when the server challanged second time, the user name
>>> and
>>> password haven't been sent.
>>>
>>>
>>>
>>> Alexander Kitaev-3 wrote:
>>>>
>>>> Hello,
>>>>
>>>> This couldn't be the full log. If you're using http protocol to
>>>> connection to the server, then log should include all messages sent to
>>>> and received from the server.
>>>>
>>>> Alexander Kitaev,
>>>> TMate Software,
>>>> http://svnkit.com/ - Java [Sub]Versioning Library!
>>>> http://sqljet.com/ - Java SQLite Library!
>>>>
>>>> On 05-May-10 10:20, I. Borosan wrote:
>>>>>
>>>>> Hello!
>>>>>
>>>>> I got the connection log, it contains the following:
>>>>>
>>>>>
>>>>> 2010.05.05. 10:11:41
>>>>> org.tmatesoft.svn.core.internal.util.DefaultSVNDebugLogger log
>>>>> FINE: NETWORK: Thread[SVN-CNA7N,6,main]: LOCKED
>>>>> 2010.05.05. 10:11:41
>>>>> org.tmatesoft.svn.core.internal.util.DefaultSVNDebugLogger log
>>>>> FINE: NETWORK: Thread[SVN-CNA7N,6,main]: UNLOCKED
>>>>>
>>>>>
>>>>> Alexander Kitaev-3 wrote:
>>>>>>
>>>>>> Hello,
>>>>>>
>>>>>>     >    codeline to the source code, but the problem is still remains.
>>>>>> The
>>>>>>     >    authentication method for the server is unknown for me.
>>>>>>
>>>>>> Could you get a connection log (log file that will contain debug
>>>>>> information including data sent and received over network) to shed
>>>>>> more
>>>>>> light on the reason of the problem? To get the log file, please follow
>>>>>> instructions in the following article (see first part of the article):
>>>>>>
>>>>>> https://wiki.svnkit.com/Troubleshooting
>>>>>>
>>>>>> Alexander Kitaev,
>>>>>> TMate Software,
>>>>>> http://svnkit.com/ - Java [Sub]Versioning Library!
>>>>>> http://sqljet.com/ - Java SQLite Library!
>>>>>>
>>>>>> On 03-May-10 18:44, I. Borosan wrote:
>>>>>>>
>>>>>>> Hello!
>>>>>>>
>>>>>>> Thank you for your answer, and I'm sorry for my answers delay. I put
>>>>>>> the
>>>>>>> System.setProperty("svnkit.http.methods",
>>>>>>> "Digest,Basic,Negotiate,NTLM");
>>>>>>> codeline to the source code, but the problem is still remains. The
>>>>>>> authentication method for the server is unknown for me.
>>>>>>>
>>>>>>> Alexander Kitaev-3 wrote:
>>>>>>>>
>>>>>>>> Hello,
>>>>>>>>
>>>>>>>> Sorry for delay with the answer. What authentication method is used
>>>>>>>> by
>>>>>>>> the server? Is it NTLM? If so, and if Basic method also supported,
>>>>>>>> then
>>>>>>>> setting the following property might help:
>>>>>>>>
>>>>>>>> -Dsvnkit.http.methods=Digest,Basic,Negotiate,NTLM
>>>>>>>>
>>>>>>>> Otherwise code looks fine.
>>>>>>>>
>>>>>>>> Alexander Kitaev,
>>>>>>>> TMate Software,
>>>>>>>> http://svnkit.com/ - Java [Sub]Versioning Library!
>>>>>>>> http://sqljet.com/ - Java SQLite Library!
>>>>>>>>
>>>>>>>> On 29-Apr-10 08:38, I. Borosan wrote:
>>>>>>>>>
>>>>>>>>> Hello!
>>>>>>>>>
>>>>>>>>> I've tried to do a checkout from a password protected
>>>>>>>>> repository(https://....), and I got an error: svn: Authentication
>>>>>>>>> required
>>>>>>>>> for... FTSRG LDAP Authorization .
>>>>>>>>> The code is the following:
>>>>>>>>>
>>>>>>>>> private static ISVNAuthenticationManager authManager =
>>>>>>>>> SVNWCUtil.createDefaultAuthenticationManager( "login" , "passwrd"
>>>>>>>>> );
>>>>>>>>> private static SVNRepository repository;
>>>>>>>>> ....
>>>>>>>>>
>>>>>>>>> public ManageSVN()
>>>>>>>>>              {
>>>>>>>>>                      SVNRepositoryFactoryImpl.setup();
>>>>>>>>>                      DAVRepositoryFactory.setup();
>>>>>>>>>                      try{
>>>>>>>>>                          SVNURL url1 = SVNURL.parseURIDecoded(
>>>>>>>>> "https://..."
>>>>>>>>> );
>>>>>>>>>                          repository = SVNRepositoryFactory.create(
>>>>>>>>> url1,
>>>>>>>>> null
>>>>>>>>> );
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> repository.setAuthenticationManager(authManager);
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                      }catch(Exception e)
>>>>>>>>>                      {
>>>>>>>>>                              System.out.println(e.getMessage());
>>>>>>>>>                      }
>>>>>>>>>              }
>>>>>>>>>
>>>>>>>>> Then I call the checkout, which works well with repositories which
>>>>>>>>> aren't
>>>>>>>>> protected.
>>>>>>>>> Please help
>>>>>>>>> Best regards
>>>>>>>>> I.Borosan
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>> To unsubscribe, e-mail: svnkit-users-unsubscribe@...
>>>>>>>> For additional commands, e-mail: svnkit-users-help@...
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: svnkit-users-unsubscribe@...
>>>>>> For additional commands, e-mail: svnkit-users-help@...
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: svnkit-users-unsubscribe@...
>>>> For additional commands, e-mail: svnkit-users-help@...
>>>>
>>>>
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: svnkit-users-unsubscribe@...
>> For additional commands, e-mail: svnkit-users-help@...
>>
>>
>>
>

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


Re: Authentication failed

by I. Borosan :: Rate this Message:

| View Threaded | Show Only this Message

Hello,

Thank you for your answer, now everything works wel.:)
Kind regards
Istvan Borosan

Alexander Kitaev-3 wrote:
Hello,

You never set ISVNAuthenticationManager to the ourClientManager object
and authentication manager you create is actually never used (as
'repository' is never used).

Add the follwing line:

ourClientManager.setAuthenticationManager(authManager);

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

On 09-May-10 16:57, I. Borosan wrote:
>
> Hello Alexander
>
> I attached the file, which contains the code:
> http://old.nabble.com/file/p28503290/code.txt code.txt
>
>
> Alexander Kitaev-3 wrote:
>>
>> Hello,
>>
>> Thank you for the log file. It looks strange as you may see
>> authentication is accepted by the server at the beginning and then just
>> not sent.
>>
>> This may happen if you create a new instance of SVNRepository or
>> SVNClientManager and does not set authentication manager on that
>> instance. Then this new instance will have no credentials to send to the
>> server.
>>
>> Could you please send the whole code you use for checking out? You set
>> authentication manager on 'repository' instance:
>>
>> repository.setAuthenticationManager(authManager);
>>
>> Does you use this 'repository' for checkout? If not, then do you set
>> 'authManager' on SVNClientManager you create to perform checkout?
>>
>> Alexander Kitaev,
>> TMate Software,
>> http://svnkit.com/ - Java [Sub]Versioning Library!
>> http://sqljet.com/ - Java SQLite Library!
>>
>> On 06-May-10 19:15, I. Borosan wrote:
>>>
>>> Hello!
>>>
>>> I hope I got the full log now, I attached it.
>>> http://old.nabble.com/file/p28476888/svnkit.1.log svnkit.1.log I found
>>> out
>>> that the server uses Basic authentication method. I used Wireshark to
>>> watch
>>> messages sent to and received from the server, and I noticed that when
>>> the
>>> server challanged for authentication first time, svnkit sent the user
>>> name
>>> and password. But when the server challanged second time, the user name
>>> and
>>> password haven't been sent.
>>>
>>>
>>>
>>> Alexander Kitaev-3 wrote:
>>>>
>>>> Hello,
>>>>
>>>> This couldn't be the full log. If you're using http protocol to
>>>> connection to the server, then log should include all messages sent to
>>>> and received from the server.
>>>>
>>>> Alexander Kitaev,
>>>> TMate Software,
>>>> http://svnkit.com/ - Java [Sub]Versioning Library!
>>>> http://sqljet.com/ - Java SQLite Library!
>>>>
>>>> On 05-May-10 10:20, I. Borosan wrote:
>>>>>
>>>>> Hello!
>>>>>
>>>>> I got the connection log, it contains the following:
>>>>>
>>>>>
>>>>> 2010.05.05. 10:11:41
>>>>> org.tmatesoft.svn.core.internal.util.DefaultSVNDebugLogger log
>>>>> FINE: NETWORK: Thread[SVN-CNA7N,6,main]: LOCKED
>>>>> 2010.05.05. 10:11:41
>>>>> org.tmatesoft.svn.core.internal.util.DefaultSVNDebugLogger log
>>>>> FINE: NETWORK: Thread[SVN-CNA7N,6,main]: UNLOCKED
>>>>>
>>>>>
>>>>> Alexander Kitaev-3 wrote:
>>>>>>
>>>>>> Hello,
>>>>>>
>>>>>>     >    codeline to the source code, but the problem is still remains.
>>>>>> The
>>>>>>     >    authentication method for the server is unknown for me.
>>>>>>
>>>>>> Could you get a connection log (log file that will contain debug
>>>>>> information including data sent and received over network) to shed
>>>>>> more
>>>>>> light on the reason of the problem? To get the log file, please follow
>>>>>> instructions in the following article (see first part of the article):
>>>>>>
>>>>>> https://wiki.svnkit.com/Troubleshooting
>>>>>>
>>>>>> Alexander Kitaev,
>>>>>> TMate Software,
>>>>>> http://svnkit.com/ - Java [Sub]Versioning Library!
>>>>>> http://sqljet.com/ - Java SQLite Library!
>>>>>>
>>>>>> On 03-May-10 18:44, I. Borosan wrote:
>>>>>>>
>>>>>>> Hello!
>>>>>>>
>>>>>>> Thank you for your answer, and I'm sorry for my answers delay. I put
>>>>>>> the
>>>>>>> System.setProperty("svnkit.http.methods",
>>>>>>> "Digest,Basic,Negotiate,NTLM");
>>>>>>> codeline to the source code, but the problem is still remains. The
>>>>>>> authentication method for the server is unknown for me.
>>>>>>>
>>>>>>> Alexander Kitaev-3 wrote:
>>>>>>>>
>>>>>>>> Hello,
>>>>>>>>
>>>>>>>> Sorry for delay with the answer. What authentication method is used
>>>>>>>> by
>>>>>>>> the server? Is it NTLM? If so, and if Basic method also supported,
>>>>>>>> then
>>>>>>>> setting the following property might help:
>>>>>>>>
>>>>>>>> -Dsvnkit.http.methods=Digest,Basic,Negotiate,NTLM
>>>>>>>>
>>>>>>>> Otherwise code looks fine.
>>>>>>>>
>>>>>>>> Alexander Kitaev,
>>>>>>>> TMate Software,
>>>>>>>> http://svnkit.com/ - Java [Sub]Versioning Library!
>>>>>>>> http://sqljet.com/ - Java SQLite Library!
>>>>>>>>
>>>>>>>> On 29-Apr-10 08:38, I. Borosan wrote:
>>>>>>>>>
>>>>>>>>> Hello!
>>>>>>>>>
>>>>>>>>> I've tried to do a checkout from a password protected
>>>>>>>>> repository(https://....), and I got an error: svn: Authentication
>>>>>>>>> required
>>>>>>>>> for... FTSRG LDAP Authorization .
>>>>>>>>> The code is the following:
>>>>>>>>>
>>>>>>>>> private static ISVNAuthenticationManager authManager =
>>>>>>>>> SVNWCUtil.createDefaultAuthenticationManager( "login" , "passwrd"
>>>>>>>>> );
>>>>>>>>> private static SVNRepository repository;
>>>>>>>>> ....
>>>>>>>>>
>>>>>>>>> public ManageSVN()
>>>>>>>>>              {
>>>>>>>>>                      SVNRepositoryFactoryImpl.setup();
>>>>>>>>>                      DAVRepositoryFactory.setup();
>>>>>>>>>                      try{
>>>>>>>>>                          SVNURL url1 = SVNURL.parseURIDecoded(
>>>>>>>>> "https://..."
>>>>>>>>> );
>>>>>>>>>                          repository = SVNRepositoryFactory.create(
>>>>>>>>> url1,
>>>>>>>>> null
>>>>>>>>> );
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> repository.setAuthenticationManager(authManager);
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                      }catch(Exception e)
>>>>>>>>>                      {
>>>>>>>>>                              System.out.println(e.getMessage());
>>>>>>>>>                      }
>>>>>>>>>              }
>>>>>>>>>
>>>>>>>>> Then I call the checkout, which works well with repositories which
>>>>>>>>> aren't
>>>>>>>>> protected.
>>>>>>>>> Please help
>>>>>>>>> Best regards
>>>>>>>>> I.Borosan
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>> To unsubscribe, e-mail: svnkit-users-unsubscribe@svnkit.com
>>>>>>>> For additional commands, e-mail: svnkit-users-help@svnkit.com
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: svnkit-users-unsubscribe@svnkit.com
>>>>>> For additional commands, e-mail: svnkit-users-help@svnkit.com
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: svnkit-users-unsubscribe@svnkit.com
>>>> For additional commands, e-mail: svnkit-users-help@svnkit.com
>>>>
>>>>
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: svnkit-users-unsubscribe@svnkit.com
>> For additional commands, e-mail: svnkit-users-help@svnkit.com
>>
>>
>>
>

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

Re: Authentication failed

by I. Borosan :: Rate this Message:

| View Threaded | Show Only this Message

Hello,

Thank you for your answer, now everything works well.:)
Kind regards
Istvan Borosan

Alexander Kitaev-3 wrote:
Hello,

You never set ISVNAuthenticationManager to the ourClientManager object
and authentication manager you create is actually never used (as
'repository' is never used).

Add the follwing line:

ourClientManager.setAuthenticationManager(authManager);

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

On 09-May-10 16:57, I. Borosan wrote:
>
> Hello Alexander
>
> I attached the file, which contains the code:
> http://old.nabble.com/file/p28503290/code.txt code.txt
>
>
> Alexander Kitaev-3 wrote:
>>
>> Hello,
>>
>> Thank you for the log file. It looks strange as you may see
>> authentication is accepted by the server at the beginning and then just
>> not sent.
>>
>> This may happen if you create a new instance of SVNRepository or
>> SVNClientManager and does not set authentication manager on that
>> instance. Then this new instance will have no credentials to send to the
>> server.
>>
>> Could you please send the whole code you use for checking out? You set
>> authentication manager on 'repository' instance:
>>
>> repository.setAuthenticationManager(authManager);
>>
>> Does you use this 'repository' for checkout? If not, then do you set
>> 'authManager' on SVNClientManager you create to perform checkout?
>>
>> Alexander Kitaev,
>> TMate Software,
>> http://svnkit.com/ - Java [Sub]Versioning Library!
>> http://sqljet.com/ - Java SQLite Library!
>>
>> On 06-May-10 19:15, I. Borosan wrote:
>>>
>>> Hello!
>>>
>>> I hope I got the full log now, I attached it.
>>> http://old.nabble.com/file/p28476888/svnkit.1.log svnkit.1.log I found
>>> out
>>> that the server uses Basic authentication method. I used Wireshark to
>>> watch
>>> messages sent to and received from the server, and I noticed that when
>>> the
>>> server challanged for authentication first time, svnkit sent the user
>>> name
>>> and password. But when the server challanged second time, the user name
>>> and
>>> password haven't been sent.
>>>
>>>
>>>
>>> Alexander Kitaev-3 wrote:
>>>>
>>>> Hello,
>>>>
>>>> This couldn't be the full log. If you're using http protocol to
>>>> connection to the server, then log should include all messages sent to
>>>> and received from the server.
>>>>
>>>> Alexander Kitaev,
>>>> TMate Software,
>>>> http://svnkit.com/ - Java [Sub]Versioning Library!
>>>> http://sqljet.com/ - Java SQLite Library!
>>>>
>>>> On 05-May-10 10:20, I. Borosan wrote:
>>>>>
>>>>> Hello!
>>>>>
>>>>> I got the connection log, it contains the following:
>>>>>
>>>>>
>>>>> 2010.05.05. 10:11:41
>>>>> org.tmatesoft.svn.core.internal.util.DefaultSVNDebugLogger log
>>>>> FINE: NETWORK: Thread[SVN-CNA7N,6,main]: LOCKED
>>>>> 2010.05.05. 10:11:41
>>>>> org.tmatesoft.svn.core.internal.util.DefaultSVNDebugLogger log
>>>>> FINE: NETWORK: Thread[SVN-CNA7N,6,main]: UNLOCKED
>>>>>
>>>>>
>>>>> Alexander Kitaev-3 wrote:
>>>>>>
>>>>>> Hello,
>>>>>>
>>>>>>     >    codeline to the source code, but the problem is still remains.
>>>>>> The
>>>>>>     >    authentication method for the server is unknown for me.
>>>>>>
>>>>>> Could you get a connection log (log file that will contain debug
>>>>>> information including data sent and received over network) to shed
>>>>>> more
>>>>>> light on the reason of the problem? To get the log file, please follow
>>>>>> instructions in the following article (see first part of the article):
>>>>>>
>>>>>> https://wiki.svnkit.com/Troubleshooting
>>>>>>
>>>>>> Alexander Kitaev,
>>>>>> TMate Software,
>>>>>> http://svnkit.com/ - Java [Sub]Versioning Library!
>>>>>> http://sqljet.com/ - Java SQLite Library!
>>>>>>
>>>>>> On 03-May-10 18:44, I. Borosan wrote:
>>>>>>>
>>>>>>> Hello!
>>>>>>>
>>>>>>> Thank you for your answer, and I'm sorry for my answers delay. I put
>>>>>>> the
>>>>>>> System.setProperty("svnkit.http.methods",
>>>>>>> "Digest,Basic,Negotiate,NTLM");
>>>>>>> codeline to the source code, but the problem is still remains. The
>>>>>>> authentication method for the server is unknown for me.
>>>>>>>
>>>>>>> Alexander Kitaev-3 wrote:
>>>>>>>>
>>>>>>>> Hello,
>>>>>>>>
>>>>>>>> Sorry for delay with the answer. What authentication method is used
>>>>>>>> by
>>>>>>>> the server? Is it NTLM? If so, and if Basic method also supported,
>>>>>>>> then
>>>>>>>> setting the following property might help:
>>>>>>>>
>>>>>>>> -Dsvnkit.http.methods=Digest,Basic,Negotiate,NTLM
>>>>>>>>
>>>>>>>> Otherwise code looks fine.
>>>>>>>>
>>>>>>>> Alexander Kitaev,
>>>>>>>> TMate Software,
>>>>>>>> http://svnkit.com/ - Java [Sub]Versioning Library!
>>>>>>>> http://sqljet.com/ - Java SQLite Library!
>>>>>>>>
>>>>>>>> On 29-Apr-10 08:38, I. Borosan wrote:
>>>>>>>>>
>>>>>>>>> Hello!
>>>>>>>>>
>>>>>>>>> I've tried to do a checkout from a password protected
>>>>>>>>> repository(https://....), and I got an error: svn: Authentication
>>>>>>>>> required
>>>>>>>>> for... FTSRG LDAP Authorization .
>>>>>>>>> The code is the following:
>>>>>>>>>
>>>>>>>>> private static ISVNAuthenticationManager authManager =
>>>>>>>>> SVNWCUtil.createDefaultAuthenticationManager( "login" , "passwrd"
>>>>>>>>> );
>>>>>>>>> private static SVNRepository repository;
>>>>>>>>> ....
>>>>>>>>>
>>>>>>>>> public ManageSVN()
>>>>>>>>>              {
>>>>>>>>>                      SVNRepositoryFactoryImpl.setup();
>>>>>>>>>                      DAVRepositoryFactory.setup();
>>>>>>>>>                      try{
>>>>>>>>>                          SVNURL url1 = SVNURL.parseURIDecoded(
>>>>>>>>> "https://..."
>>>>>>>>> );
>>>>>>>>>                          repository = SVNRepositoryFactory.create(
>>>>>>>>> url1,
>>>>>>>>> null
>>>>>>>>> );
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> repository.setAuthenticationManager(authManager);
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                      }catch(Exception e)
>>>>>>>>>                      {
>>>>>>>>>                              System.out.println(e.getMessage());
>>>>>>>>>                      }
>>>>>>>>>              }
>>>>>>>>>
>>>>>>>>> Then I call the checkout, which works well with repositories which
>>>>>>>>> aren't
>>>>>>>>> protected.
>>>>>>>>> Please help
>>>>>>>>> Best regards
>>>>>>>>> I.Borosan
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>> To unsubscribe, e-mail: svnkit-users-unsubscribe@svnkit.com
>>>>>>>> For additional commands, e-mail: svnkit-users-help@svnkit.com
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: svnkit-users-unsubscribe@svnkit.com
>>>>>> For additional commands, e-mail: svnkit-users-help@svnkit.com
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: svnkit-users-unsubscribe@svnkit.com
>>>> For additional commands, e-mail: svnkit-users-help@svnkit.com
>>>>
>>>>
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: svnkit-users-unsubscribe@svnkit.com
>> For additional commands, e-mail: svnkit-users-help@svnkit.com
>>
>>
>>
>

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