nss_ldap: problem of running sudo
Lin Jui-Nan Eric
ericlin.jnlin at gmail.com
Wed Oct 11 05:24:13 PDT 2006
Dear,
I have encounter a problem when I run sudo with nss_ldap. The sudo
program tells me that my password is wrong, but I can login with this
password. After all, I found the problem is in ldap-pwd.c:
if (getuid() != 0)
{
/* don't include password for non-root users */
After applied patches of ports system, the code showed above. But sudo does
not change the uid. It changes the euid only.
If I use geteuid() instead, sudo works well.
Any suggestions?
Best Regards,
Jui-Nan
More information about the freebsd-ports
mailing list