From: Stefan Metzmacher Date: Sat, 8 Dec 2018 21:53:21 +0000 (+0100) Subject: s3:auth_winbind: return NT_STATUS_NO_LOGON_SERVERS if winbindd is not available X-Git-Tag: samba-4.8.9~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2181925b13c481b2923dec1035fdea03598ab855;p=thirdparty%2Fsamba.git s3:auth_winbind: return NT_STATUS_NO_LOGON_SERVERS if winbindd is not available BUG: https://bugzilla.samba.org/show_bug.cgi?id=13722 BUG: https://bugzilla.samba.org/show_bug.cgi?id=13723 Signed-off-by: Stefan Metzmacher Reviewed-by: Alexander Bokovoy (cherry picked from commit ec3adc1e5b3cc953576efa795dfb25af08a8ab79) --- diff --git a/source3/auth/auth_winbind.c b/source3/auth/auth_winbind.c index 10e6c53c108..0f5d684ff18 100644 --- a/source3/auth/auth_winbind.c +++ b/source3/auth/auth_winbind.c @@ -110,7 +110,7 @@ static NTSTATUS check_winbind_security(const struct auth_context *auth_context, } if (wbc_status == WBC_ERR_WINBIND_NOT_AVAILABLE) { - return NT_STATUS_LOGON_FAILURE; + return NT_STATUS_NO_LOGON_SERVERS; } if (wbc_status == WBC_ERR_AUTH_ERROR) {