2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Same return value as non-existent sudoers if LDAP was unable to connect.

This commit is contained in:
Todd C. Miller
2008-01-01 22:03:54 +00:00
parent ab14071ec9
commit aa562c8f69

2
ldap.c
View File

@@ -1322,7 +1322,7 @@ sudo_ldap_lookup(nss, pwflag)
struct passwd *pw = list_pw ? list_pw : sudo_user.pw;
if (ld == NULL)
return(0); /* XXX - if only LDAP and we return 0, it will misbehasve */
return(VALIDATE_NOT_OK | FLAG_NO_HOST | FLAG_NO_USER);
if (pwflag) {
int doauth = UNSPEC;