From: Todd C. Miller Date: Tue, 1 Jan 2008 22:03:54 +0000 (+0000) Subject: Same return value as non-existent sudoers if LDAP was unable to connect. X-Git-Tag: SUDO_1_7_0~271 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa562c8f6962b1c82f0dd49cf1d00ec140c4a490;p=sudo Same return value as non-existent sudoers if LDAP was unable to connect. --- diff --git a/ldap.c b/ldap.c index f36bd7850..bf3caa3a6 100644 --- a/ldap.c +++ b/ldap.c @@ -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;