Oops, I missed your comment #7... The user is never added to the /etc/passwd file, but it is accessible using "getent passwd". getpwnam probably uses the same access for getting the passwd name.
however the man page of getpwnam is interesting: ... The return value may point to a static area, and may be overwritten by subsequent calls to getpwent(3), getpwnam(), or getpwuid(). ... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1237306 Title: lightdm + LDAP login intermitent fail To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1237306/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs