]> granicus.if.org Git - sudo/commitdiff
Fix a typo/thinko in one of the calls to sudo_ldap_check_user_netgroup().
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 18 Jan 2008 21:47:05 +0000 (21:47 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 18 Jan 2008 21:47:05 +0000 (21:47 +0000)
From Marco van Wieringen.

ldap.c

diff --git a/ldap.c b/ldap.c
index bea40aa681be135a9c521ad4f4f8494511797d80..7856cd0484294c0ff92361f8ec3dabdceaeeea37 100644 (file)
--- a/ldap.c
+++ b/ldap.c
@@ -1164,7 +1164,7 @@ sudo_ldap_display_privs(nss, pw)
        /* print each matching entry */
        LDAP_FOREACH(entry, ld, result) {
            if ((!do_netgr ||
-               sudo_ldap_check_user_netgroup(ld, entry, pw->pw_passwd)) &&
+               sudo_ldap_check_user_netgroup(ld, entry, pw->pw_name)) &&
                sudo_ldap_check_host(ld, entry)) {
 
                /* extract the dn, only show the first rdn */