s3:winbindd: make use of reset_cm_connection_on_error() for winbindd_lookup_{names...
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:38 +0000 (12:17 +0000)
commit4ad5a35a3f67860aa7a1345efcfc92fe40578e31
treee18f498598ea01212c5e54d4e5ce7b3b09b99e08
parentcb59fd43bbf758e4bad774cfc19ef87b157052c2
s3:winbindd: make use of reset_cm_connection_on_error() for winbindd_lookup_{names,sids}()

Note this is more than a simple invalidate_cm_connection() as it may set
domain->conn.netlogon_force_reauth = true.

This is not strictly needed as the callers call
reset_cm_connection_on_error() via reconnect_need_retry().
But it might avoid one roundtrip.

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_msrpc.c