]> 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)
committerJule Anger <janger@samba.org>
Wed, 6 Aug 2025 11:46:17 +0000 (11:46 +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>
(cherry picked from commit 1dbafcc4e4ff8f39af5ca737b30e9821413dd1f2)

source3/rpc_server/netlogon/srv_netlog_nt.c

index e5abcbdbd84c0e38fb16e65ad2705e91373f8048..53ace9e2a46a1af321a1b087c606c5dac1c81425 100644 (file)
@@ -2655,7 +2655,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;
        }