mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add replication related acis to all replicas
Fixes: https://fedorahosted.org/freeipa/ticket/617
This commit is contained in:
@@ -17,6 +17,7 @@ app_DATA = \
|
||||
default-keytypes.ldif \
|
||||
default-pwpolicy.ldif \
|
||||
delegation.ldif \
|
||||
replica-acis.ldif \
|
||||
ds-nfiles.ldif \
|
||||
dns.ldif \
|
||||
kerberos.ldif \
|
||||
|
||||
@@ -592,18 +592,6 @@ changetype: modify
|
||||
add: aci
|
||||
aci: (targetattr = "enrolledby || objectclass")(target = "ldap:///fqdn=*,cn=computers,cn=accounts,$SUFFIX")(version 3.0;acl "Enroll a host";allow (write) groupdn = "ldap:///cn=enroll_host,cn=permissions,cn=accounts,$SUFFIX";)
|
||||
|
||||
# Replica administration
|
||||
|
||||
dn: cn="$SUFFIX",cn=mapping tree,cn=config
|
||||
changetype: modify
|
||||
add: aci
|
||||
aci: (targetattr=*)(targetfilter="(|(objectclass=nsds5Replica)(objectclass=nsds5replicationagreement)(objectclass=nsDSWindowsReplicationAgreement))")(version 3.0; acl "Manage Replication Agreements"; allow (read, write, search) groupdn = "ldap:///cn=managereplica,cn=permissions,cn=accounts,$SUFFIX";)
|
||||
|
||||
dn: cn="$SUFFIX",cn=mapping tree,cn=config
|
||||
changetype: modify
|
||||
add: aci
|
||||
aci: (targetattr=*)(targetfilter="(|(objectclass=nsds5replicationagreement)(objectclass=nsDSWindowsReplicationAgreement))")(version 3.0;acl "Delete Replication Agreements";allow (delete) groupdn = "ldap:///cn=deletereplica,cn=permissions,cn=accounts,$SUFFIX";)
|
||||
|
||||
# Entitlement administration
|
||||
|
||||
dn: $SUFFIX
|
||||
|
||||
11
install/share/replica-acis.ldif
Normal file
11
install/share/replica-acis.ldif
Normal file
@@ -0,0 +1,11 @@
|
||||
# Replica administration
|
||||
|
||||
dn: cn="$SUFFIX",cn=mapping tree,cn=config
|
||||
changetype: modify
|
||||
add: aci
|
||||
aci: (targetattr=*)(targetfilter="(|(objectclass=nsds5Replica)(objectclass=nsds5replicationagreement)(objectclass=nsDSWindowsReplicationAgreement))")(version 3.0; acl "Manage Replication Agreements"; allow (read, write, search) groupdn = "ldap:///cn=managereplica,cn=permissions,cn=accounts,$SUFFIX";)
|
||||
|
||||
dn: cn="$SUFFIX",cn=mapping tree,cn=config
|
||||
changetype: modify
|
||||
add: aci
|
||||
aci: (targetattr=*)(targetfilter="(|(objectclass=nsds5replicationagreement)(objectclass=nsDSWindowsReplicationAgreement))")(version 3.0;acl "Delete Replication Agreements";allow (delete) groupdn = "ldap:///cn=deletereplica,cn=permissions,cn=accounts,$SUFFIX";)
|
||||
@@ -245,6 +245,7 @@ class DsInstance(service.Service):
|
||||
|
||||
self.step("adding default layout", self.__add_default_layout)
|
||||
self.step("adding delegation layout", self.__add_delegation_layout)
|
||||
self.step("adding replication acis", self.__add_replication_acis)
|
||||
if hbac_allow:
|
||||
self.step("creating default HBAC rule allow_all", self.add_hbac)
|
||||
|
||||
@@ -278,6 +279,7 @@ class DsInstance(service.Service):
|
||||
self.__common_setup()
|
||||
|
||||
self.step("Setting up initial replication", self.__setup_replica)
|
||||
self.step("adding replication acis", self.__add_replication_acis)
|
||||
|
||||
self.__common_post_setup()
|
||||
|
||||
@@ -534,6 +536,9 @@ class DsInstance(service.Service):
|
||||
def __add_delegation_layout(self):
|
||||
self._ldap_mod("delegation.ldif", self.sub_dict)
|
||||
|
||||
def __add_replication_acis(self):
|
||||
self._ldap_mod("replica-acis.ldif", self.sub_dict)
|
||||
|
||||
def __create_indices(self):
|
||||
self._ldap_mod("indices.ldif")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user