invoking user. If we are listing another user's privs we will
do a separate lookup using list_pw later.
--HG--
branch : 1.7
LDAP *ld;
LDAPMessage *entry;
int i, rc, setenv_implied, matched = UNSPEC;
- struct passwd *pw = list_pw ? list_pw : sudo_user.pw;
struct ldap_result *lres = NULL;
if (handle == NULL || handle->ld == NULL)
ld = handle->ld;
/* Fetch list of sudoRole entries that match user and host. */
- lres = sudo_ldap_result_get(nss, pw);
+ lres = sudo_ldap_result_get(nss, sudo_user.pw);
/*
* The following queries are only determine whether or not a