s3:winbindd: Improve logging for failover scenarios in winbindd_pam.c
authorPavel Filipenský <pfilipensky@samba.org>
Wed, 18 Oct 2023 09:32:57 +0000 (11:32 +0200)
committerJule Anger <janger@samba.org>
Mon, 23 Oct 2023 08:37:14 +0000 (08:37 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15499

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 6063f3ee733348855d6b144091bbdbbe6862494c)

source3/winbindd/winbindd_pam.c

index 66d5b4a5a7b29f2ba32984d2ebac11fa3ee0995e..2eeba24222aba07321a133a2d4b5f7ac603c1057 100644 (file)
@@ -1661,6 +1661,10 @@ static NTSTATUS winbind_samlogon_retry_loop(struct winbindd_domain *domain,
 
                retry = false;
 
+               D_DEBUG("Creating a DCERPC netlogon connection for SAM logon. "
+                       "netlogon attempt: %d, samlogon attempt: %d.\n",
+                       netr_attempts,
+                       attempts);
                result = cm_connect_netlogon_secure(domain, &netlogon_pipe,
                                                    &netlogon_creds_ctx);