Finally got a chance to revisit this after post #29 above.  For that
servers config I still had a local /etc/passwd entry for the affected
account and so was not triggering the described su and sudo symptoms.

On Karmic with:
libnss-ldap 261-2.1ubuntu4 
sudo 1.7.0-1ubuntu2.1
login 1:4.1.4.1-1ubuntu2

Without an /etc/passwd entry and an otherwise working libnss-ldap setup
sudo returns

sudo: setreuid(ROOT_UID, user_uid): Operation not permitted

and su fails with

su: Authentication failure

Tests:
With libnss-ldap, su and sudo fail.
With nscd and libnss-ldap, su and sudo work.
With libnss-ldapd,  with or without nscd, su and sudo work.
As root, getent returns passwd entries correctly for all the above cases.

-- 
NSS using LDAP on Karmic breaks 'su' and 'sudo'
https://bugs.launchpad.net/bugs/423252
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to