I think the odd every-other behavior may have been the result of caching in ncsd? In any case, I was able to reproduce the problem on the commandline with id, and then use "strace id" to find a permissions error reading /etc/libnss-ldap.conf, which is not world-readable; chmod a+r /etc/libnss-ldap.conf solves the problem.
Should libnss-ldap.conf be world-readable? Also, why did this work when I initially set it up a few weeks ago? The only relevant thing I could find in /var/log/dpkg.log around the time I started noticing the problem was an upgrade to version 180-1ubuntu-0.6.10 of version libpam-ldap. -- calling getpwuid twice from a cgi script fails in ldap-nss.c https://launchpad.net/bugs/92015 -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
