]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbindd: call reset_cm_connection_on_error() in wb_cache_query_user_list()
authorStefan Metzmacher <metze@samba.org>
Tue, 4 Jul 2023 10:32:34 +0000 (12:32 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 5 Jul 2023 12:17:37 +0000 (12:17 +0000)
This is mostly for consistency, every remote call should call
reset_cm_connection_on_error(). Note this is more than
a simple invalidate_cm_connection() as it may set
domain->conn.netlogon_force_reauth = true.

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>
source3/winbindd/winbindd_cache.c

index 7cb3e60943bd41f6535f0aa88704049baabc5ac1..d23b3415825a53d3db56265fef6b130a16796bad 100644 (file)
@@ -1508,6 +1508,7 @@ do_query:
                        DBG_NOTICE("query_user_list: returned 0x%08x, "
                                  "retrying\n", NT_STATUS_V(status));
                }
+               reset_cm_connection_on_error(domain, NULL, status);
                if (NT_STATUS_EQUAL(status, NT_STATUS_UNSUCCESSFUL)) {
                        DBG_NOTICE("query_user_list: flushing "
                                  "connection cache\n");