]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:netlogon: IPA DC is the PDC as well - allow ROLE_IPA_DC in _netr_DsRGetForestTrust...
authorPavel Filipenský <pfilipensky@samba.org>
Mon, 4 Aug 2025 21:26:02 +0000 (23:26 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 5 Aug 2025 13:51:37 +0000 (13:51 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15891

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/rpc_server/netlogon/srv_netlog_nt.c

index 39bf2b3084124a566ea862eab7dc74be7fa7c64b..eb60aa7c7d7ac0b3d3388fa1768a79f87ac96970 100644 (file)
@@ -2907,7 +2907,10 @@ WERROR _netr_DsRGetForestTrustInformation(struct pipes_struct *p,
                return WERR_INVALID_FLAGS;
        }
 
-       if ((r->in.flags & DS_GFTI_UPDATE_TDO) && (lp_server_role() != ROLE_DOMAIN_PDC)) {
+       if ((r->in.flags & DS_GFTI_UPDATE_TDO) &&
+           (lp_server_role() != ROLE_DOMAIN_PDC) &&
+           (lp_server_role() != ROLE_IPA_DC))
+       {
                p->fault_state = DCERPC_FAULT_OP_RNG_ERROR;
                return WERR_NERR_NOTPRIMARY;
        }