s3:auth_winbind: return NT_STATUS_NO_LOGON_SERVERS if winbindd is not available
authorStefan Metzmacher <metze@samba.org>
Sat, 8 Dec 2018 21:53:21 +0000 (22:53 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 9 Jan 2019 09:13:15 +0000 (10:13 +0100)
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 <metze@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
(cherry picked from commit ec3adc1e5b3cc953576efa795dfb25af08a8ab79)

source3/auth/auth_winbind.c

index 10e6c53c108510da2e5ca38053d19eaf139b23ec..0f5d684ff18ada0cf6db4c9b7ba1e5721a1e0e5f 100644 (file)
@@ -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) {