Solaris 9 native LDAP client ssh public key authentication

I have directory server 6.0 up on solaris 9 system and I have a couple of solaris 9 system migrated to LDAP client. I need to configure ssh public key authentication on two Solaris 9 LDAP clients. However, I seem can't make it working. I have done 1) generate rsa public/private key pairs on one host 2) cat public key to the authorized_keys file on another host. I checked the permission on $HOME and $HOME/.ssh, they both set to 700. The file permission are also correct. But I still get prompt when ssh from one LDAP client to another. If I add my password/shadow entry back to local files, then public key authentication works. My /etc/pam.conf is set up according to the Sun documentation for LDAP client. In /etc/nsswitch.conf

passwd: compat

passwd_compat: ldap

shadow: files ldap

group: files ldap

netgroup: ldap

loginShell does exist for the user.and LDAP entry has objectClasses 'posixAccount' and 'shadowAccount'

What am I missing here?

Thanks,

--xinhuan

[1030 byte] By [xhza] at [2007-11-27 11:43:34]
# 1

One more thing - I have latest patch 112960 installed on all of LDAP clients.

--xinhuan

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

Check this blog entry

http://blog.fupps.com/2006/03/02/ssh-public-keys-from-ldap/

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

When using LDAP, the public key needs to be stored into LDAP.

Check this page: http://dev.inversepath.com/trac/openssh-lpk

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

I am not using openssh. I am using SUN ssh.

bash-2.05$ ssh -V

SSH Version Sun_SSH_1.0, protocol versions 1.5/2.0.

For Sun ssh, do i really need to store the ssh pub key to the LDAP entry? how?

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

I really do not know. I'm right now activating Solaris 8 and 9 with OpenSSH boxes to use LDAP.

afberendsena at 2007-7-29 17:50:43 > top of Java-index,Web & Directory Servers,Directory Servers...