]> git.ipfire.org Git - thirdparty/samba.git/commit
s3:winbindd: let winbind_samlogon_retry_loop() fallback to NT_STATUS_NO_LOGON_SERVERS
authorStefan Metzmacher <metze@samba.org>
Tue, 4 Jul 2023 12:12:03 +0000 (14:12 +0200)
committerJule Anger <janger@samba.org>
Thu, 6 Jul 2023 13:01:55 +0000 (13:01 +0000)
commit9b25d90175603414a6c5a335d254d117ec76524f
treeccf83cabb658a4b8762ceaa9d591b80851c3d305
parentddd6169918e80a4c7da82e4a64d73396de1e282c
s3:winbindd: let winbind_samlogon_retry_loop() fallback to NT_STATUS_NO_LOGON_SERVERS

When we were not able to get a valid response from any DC we should
report NT_STATUS_NO_LOGON_SERVERS with authoritative = 1.

This matches what windows does. In a chain of transitive
trusts the ACCESS_DENIED/authoritative=0 is not propagated,
instead NT_STATUS_NO_LOGON_SERVERS/authoritative=1 is
passed along the chain if there's no other DC is available.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15413

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit 50e771c12f84f9268c2e9ddeef0965f79f85de3d)

Autobuild-User(v4-18-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-18-test): Thu Jul  6 13:01:55 UTC 2023 on atb-devel-224
source3/winbindd/winbindd_pam.c