0 votes
by (300 points)
edited

Hello, I have problems trying to login at a unix server using LDAP...

I can login without problems in other unix systems withc clien.login(user, passwd)

But this one has LDAP and I can't log in...

any advice?

thank you!

by (134k points)
edited

Hello, are you able to log to that server in using any third party client such as PuTTY (SSH Shell) or PSFTP (SFTP)? (Both are available at http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html)

4 Answers

0 votes
by (300 points)
edited

I don't know if its because of LDAP or because it is an AIX unix system, and befere there was a HPUX Unix and maybe credentials ar

by (134k points)
edited

Looks like a part of your text is missing. Have you tried connecting with PuTTY, PSFTP or other non-Rebex app?

0 votes
by (300 points)
edited

yes, I have no problems connecting with PuTTY

0 votes
by (134k points)
edited

Please try connecting using "keyboard-interactive" authentication method:

// Create an instance of SshParameters class 
// to specify desired arguments. 
SshParameters par = new SshParameters();

// Force "keyboard-interactive" authentication method.
par.AuthenticationMethods = SshAuthenticationMethod.KeyboardInteractive;

// Create an instance of Ssh object
Ssh client = new Ssh();

// Connect to the server. 
// The third argument refers to the parameters class. 
client.Connect(serverName, 22, par);

// Authenicate.
client.Login(userName, password);

Does this make any difference?

0 votes
by (300 points)
edited

thank you, it works! now I'm having this other problem (http://forum.rebex.net/questions/2224/ssh-the-channel-has-been-closed)

by (134k points)
edited

This is strange, but not the first time we encountered this problem. It looks like there is some bug in "password" authentication method implementation. PuTTY uses "keyboard-interactive" by default and only uses "password" if it's not available, we do it the other way around.

...