From aa562c8f6962b1c82f0dd49cf1d00ec140c4a490 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" <Todd.Miller@courtesan.com> Date: Tue, 1 Jan 2008 22:03:54 +0000 Subject: [PATCH] Same return value as non-existent sudoers if LDAP was unable to connect. --- ldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0