ldap authentication on solaris 8 client

I have directory server 6.0 set up on solaris 9 system. I convert a Solaris 8 system to be a ldap client. However, I can use ssh to authentication against LDAP server. Here is the output I got:

# ssh -v user@localhost

SSH Version 1.2.27 [sparc-sun-solaris2.8], protocol version 1.5.

Standard version. Does not use RSAREF.

host: Reading configuration data /etc/ssh_config

host: ssh_connect: getuid 0 geteuid 0 anon 0

host: Allocated local port 1023.

host: Connecting to 127.0.0.1 port 22.

host: Connection established.

host: Remote protocol version 1.5, remote software version 1.2.27

host: Waiting for server public key.

host: Received server public key (768 bits) and host key (1024 bits).

host: Forcing accepting of host key for localhost.

host: Host '127.0.0.1' is known and matches the host key.

host: Initializing random; seed file /root/.ssh/random_seed

host: Encryption type: idea

host: Sent encrypted session key.

host: Installing crc compensation attack detector.

host: Received encrypted confirmation.

host: Trying rhosts or /etc/hosts.equiv with RSA host authentication.

host: Server refused our rhosts authentication or host key.

host: No agent.

host: Doing password authentication.

user@127.0.0.1's password:

Permission denied.

This is the pam.conf I use:

loginauth requisitepam_authtok_get.so.1

loginauth required pam_dhkeys.so.1

loginauth required pam_dial_auth.so.1

loginauth binding pam_unix_auth.so.1 server_policy

loginauth required pam_ldap.so.1

rlogin auth sufficientpam_rhosts_auth.so.1

rlogin auth requisitepam_authtok_get.so.1

rlogin auth required pam_dhkeys.so.1

rlogin auth binding pam_unix_auth.so.1 server_policy

rlogin auth required pam_ldap.so.1

rshauth sufficientpam_rhosts_auth.so.1

rshauth binding pam_unix_auth.so.1 server_policy

rshauth required pam_ldap.so.1

pppauth requisitepam_authtok_get.so.1

pppauth required pam_dhkeys.so.1

pppauth required pam_dial_auth.so.1

pppauth binding pam_unix_auth.so.1 server_policy

pppauth required pam_ldap.so.1

otherauth requisitepam_authtok_get.so.1

otherauth required pam_dhkeys.so.1

otherauth binding pam_unix_auth.so.1 server_policy

otherauth required pam_ldap.so.1

passwd auth binding pam_passwd_auth.so.1 server_policy

passwd auth required pam_ldap.so.1

cronaccount requiredpam_unix_account.so.1

otheraccount requisitepam_roles.so.1

otheraccount bindingpam_unix_account.so.1 server_policy

otheraccount requiredpam_ldap.so.1

othersession requiredpam_unix_session.so.1

otherpassword requiredpam_dhkeys.so.1

otherpassword requisitepam_authtok_get.so.1

otherpassword requisitepam_authtok_check.so.1

otherpassword requiredpam_authtok_store.so.1 server_policy

pppauth requiredpam_unix_auth.so.1

Not sure why Solaris 8 can't authentication with LDAP server. I have applied the patch 108993-67. Also, su and telnet can work with LDAP but not 'ftp' and 'ssh'.

Any ideas?

[3222 byte] By [xhza] at [2007-11-27 11:27:33]
# 1

>I can use ssh to authentication against LDAP server

Mistyping. I can NOT use ssh to authentication with LDAP server.

xhza at 2007-7-29 16:16:50 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2

Not fully familiar with all the PAM modules...

Do you have similar errors as in this thread ?

http://forum.java.sun.com/thread.jspa?forumID=761&threadID=5196489

Ludovic.

ludovicpa at 2007-7-29 16:16:50 > top of Java-index,Web & Directory Servers,Directory Servers...
# 3

No, my problem seems different.

The authentication between ldap client and server is through tls:simple. Also, exact same configuration can work with Solaris 9 client, but not Solaris 8 client. Furthur checks on ssh on Solaris 8, the ssh is 'SSH Version 1.2.27 [sparc-sun-solaris2.8], protocol version 1.5.

Standard version. Does not use RSAREF.'. But on a Solaris 9 client, the ssh is 'SSH Version Sun_SSH_1.0, protocol versions 1.5/2.0.' Not sure why the Solaris 8 ssh can't work with ldap authentication.

Thanks,

--xinhuan

xhza at 2007-7-29 16:16:50 > top of Java-index,Web & Directory Servers,Directory Servers...
# 4

Does anyone have any ideas on this problem? Is it well-known problem for solaris 8 ssh? If possible, does anyone know what kind of ssh can support ldap pam authenticaiton on solaris 8? I can try different ssh.

Thanks,

--xinhuan

xhza at 2007-7-29 16:16:50 > top of Java-index,Web & Directory Servers,Directory Servers...