Pages

Monday 21 January 2008

I havo no name! (problems with LDAP on Debian)

Short post.

If you bound your machine to an LDAP server using PAM and libnss on a Debian box and you run into this:

I have no name!@yourmachine:~$


Check the permission for both libnss-ldap.conf and pam_ldap.conf. They have to be world readable ;)

Enjoy :D

10 comments:

  1. Both are 644 (pam_ldap.conf is a symlink to libnss-ldap.conf), and still have no name..

    ReplyDelete
  2. Both are 644 (pam_ldap.conf is a symlink to libnss-ldap.conf) and still have no name...

    ReplyDelete
  3. On my machine(s) they are 2 different files. That might be the problem for you.

    ReplyDelete
  4. I currently have this exact problem.

    # ls -l libnss-ldap.conf pam_ldap.conf
    -rw-rw-r-- 1 root openldap 9815 2008-11-09 17:05 libnss-ldap.conf
    -rw-rw-r-- 1 root openldap 9035 2008-11-09 17:05 pam_ldap.conf

    ReplyDelete
  5. This actually worked for me on etch.

    ReplyDelete
  6. My permissions were fine. This came out of the blue. I only had to restart nscd and everything was fine.

    ReplyDelete
  7. I didn't have nscd installed. A quick install later the username showed up as expected.

    ReplyDelete
  8. Simple advice that was very helpful. Thanks!

    ReplyDelete
  9. Installing nscd helped. thanks

    ReplyDelete