]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libads: check for DCs in paused state in ads_try_connect()
authorRalph Boehme <slow@samba.org>
Fri, 25 Jul 2025 14:51:31 +0000 (16:51 +0200)
committerJule Anger <janger@samba.org>
Wed, 6 Aug 2025 08:08:10 +0000 (08:08 +0000)
Similar to d3000d7df09de724694aa0682b9750b8c7767514 in master, 4.21 doesn't have
netlogon_pings().

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

Signed-off-by: Ralph Boehme <slow@samba.org>
source3/libads/ldap.c

index da2f4d4acc265aa6f860d5bcf3d5deb2fba72f95..b9de711b63d33953250b4fb39d069f637542f502 100644 (file)
@@ -280,6 +280,15 @@ static bool ads_fill_cldap_reply(ADS_STRUCT *ads,
                goto out;
        }
 
+       if (cldap_reply->command == LOGON_SAM_LOGON_PAUSE_RESPONSE ||
+           cldap_reply->command == LOGON_SAM_LOGON_PAUSE_RESPONSE_EX)
+       {
+               DBG_NOTICE("DC %s in paused state\n", addr);
+               ret = false;
+               goto out;
+       }
+
+
        /* Fill in the ads->config values */
 
        ADS_TALLOC_CONST_FREE(ads->config.workgroup);