I have the same enviroment. Authenticating using LDAP users works fine
using nss_ldap in nsswitch.conf, but sudo and su does not work.

I've made this small C program as a test case:

#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>

void main(void) {
        setreuid(0, getuid());
        printf("ID: %d\n", getuid());
        execv("/bin/sh", NULL);
}

Compiled is as root, run chmod +s on it and copied to /usr/bin.

Running it with an LDAP user gives me a shell as root. So I believe the
problem really is sudo. I have no idea what nscd does that makes sudo
work.




--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to