mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 22:35:10 +00:00
Same return value as non-existent sudoers if LDAP was unable to connect.
This commit is contained in:
2
ldap.c
2
ldap.c
@@ -1322,7 +1322,7 @@ sudo_ldap_lookup(nss, pwflag)
|
|||||||
struct passwd *pw = list_pw ? list_pw : sudo_user.pw;
|
struct passwd *pw = list_pw ? list_pw : sudo_user.pw;
|
||||||
|
|
||||||
if (ld == NULL)
|
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) {
|
if (pwflag) {
|
||||||
int doauth = UNSPEC;
|
int doauth = UNSPEC;
|
||||||
|
Reference in New Issue
Block a user