getent passwd fails, getent group works?

Posted by slugman on Server Fault See other posts from Server Fault or by slugman
Published on 2012-04-16T10:19:05Z Indexed on 2012/04/16 11:33 UTC
Read the original article Hit count: 274

I've almost got my AD integration working completely on my OpenSUSE 12.1 server. I have a OpenSUSE 11.4 system successfully integrated into our AD environment. (Meaning, we use ldap to authenticate to AD directory via kerberos, so we can login to our *nix systems via AD users, using name service caching daemon to cache our passwords and groups).

Also, important to note these systems are in our lan, ssl authentication is disabled.

I am almost all the way there. Nss_ldap is finally authenticating with ldap server (as /var/log/messages shows), but right now, I have another problem: getent passwd & getent shadow fails (shows local accounts only), but getent group works! Getent group shows all my ad groups!

I copied over the relavent configuration files from my working OpenSUSE 11.4 box:

  • /etc/krb5.conf
  • /etc/nsswitch.conf
  • /etc/nscd.conf
  • /etc/samba/smb.conf
  • /etc/sssd/sssd.conf
  • /etc/pam.d/common-session-pc
  • /etc/pam.d/common-account-pc
  • /etc/pam.d/common-auth-pc
  • /etc/pam.d/common-password-pc

I didn't modify anything between the two. I really don't think I need to modify anything, because getent passwd, getent shadow, and getent group all works fine on the OpenSUSE11.4 box.

Attempting to restart nscd service unfortunately didn't do much, and niether did running /usr/sbin/nscd -i passwd.

Do any of you admin-gurus have any suggestions?

Honestly, I'm happy I made it this far. I'm almost there guys!

© Server Fault or respective owner

Related posts about active-directory

Related posts about ldap