LDAP - cannot log in as LDAP user on server

Hi,

I’ve recently configured an LDAP server (SUSE 11.1). All setup and configuration was done with YAST and all seemed to go fine.

I setup the LDAP client on several network machines and LDAP login from all of them works perfectly, no problems.

However back locally on the server when I try to login as an LDAP user I hit a brick wall !! su’ing to any LDAP user gives

su: user myuser does not exist

I’ve checked LDAP client has been configured on the server and the option User Authentication is Use LDAP

If I run slapcat all LDAP entries appear correctly.

However getent passwd returns NO ldap users, only local users.

On all client machines getent passwd returns the ldap users correctly.

In /etc/nsswitch.conf I have the following entries related to passwd

*passwd: compat
passwd_compat: ldap
*
And I have the following line at the end of **/etc/passwd
**
+::::::

This is exactly the same as my client machines.

I’m sure i’m overlooking something very simple here, but have google all over the place and can’t find a solution!

Any help would be highly appreciated!

Thanks,

Robin

OK this is now fixed. Problem was I had both the 32 & 64 bit nss_ldap and pam_ldap packages installed (server is running on 64 bit openSUSE 11.1). This seemed to cause some sort of conflict which screwed up getent.

Removing the 32 bit package and then updating the 64bit package via YAST sorted it all out.

Yeehah!

Robin