]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:libads: Set NT_STATUS_UNSUCCESSFUL for IP address entry
authorAndreas Schneider <asn@samba.org>
Wed, 14 Jan 2026 14:50:26 +0000 (15:50 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 21 Jan 2026 10:34:33 +0000 (10:34 +0000)
This is what we do in libads/ldap.c too.

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

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
source3/libads/kerberos.c

index ed8d52f78661ea5d1195a9c4c84916dc701838ff..ebad505675155f4df1d79433efb6ce33b4c51ee6 100644 (file)
@@ -1264,7 +1264,10 @@ static char *get_kdc_ip_string(char *mem_ctx,
                                cldap_reply->pdc_dns_name);
                        if (has_entry) {
                                /* propagate blacklisting from name to ip */
-                               add_failed_connection_entry(realm, addr, status);
+                               add_failed_connection_entry(
+                                       realm,
+                                       addr,
+                                       NT_STATUS_UNSUCCESSFUL);
                                continue;
                        }
                }