Problem with cn=ibmpolicies subtree
A problem might occur with replicating or modifying the cn=ibmpolicies subtree,
where this subtree becomes read-only or might not get replicated properly.
Follow the steps to resolve this problem.
In IBM® Verify Directory, Version 6.0 and later, a partial replication configuration
entry is automatically added to the cn=ibmpolicies subtree.
The design of a directory server in version 6.0 and later versions
have the ibm-replicationcontext, ibm-replicagroup,
and ibm-replicasubentry setup automatically for
the cn=ibmpolicies subtree the first time the LDAP
server is started. Also, the partial entries are created with the
default ibm-slapdServerId value (randomly generated
when the instance is first created). As users often modify the ibm-slapdServerId value
in the ibmslapd.conf file after the initial configuration,
this subtree often become read-only or might not get replicated properly.
To resolve this problem, you must consider removing these partial
replication entries from all systems in the topology:
To remove the entries, complete the following steps:
- Search the directory servers to get the entries. Issue the following command:
idsldapsearch -D cn=root -w secret -L -b cn=ibmpolicies objectclass=\ ibm-replica* dn: CN=IBMPOLICIES cn: IBMpolicies objectclass: container objectclass: top objectclass: ibm-replicationcontext dn: ibm-replicagroup=default,cn=ibmpolicies objectclass: top objectclass: ibm-replicagroup ibm-replicaGroup: default dn: ibm-replicaserverid=ac1156c0-a214-1029-934c-cd9424fd6984,\ ibm-replicagroup= default,cn=ibmpolicies objectclass: top objectclass: ibm-replicasubentry ibm-replicationserverismaster: TRUE cn: V11.0.1 Migration ibm-replicaServerId: ac1156c0-a214-1029-934c-cd9424fd6984Note: The value,ac1156c0-a214-1029-934c-cd9424fd6984, foribm-replicaserveridin the example output is a randomly generated serverID. For your system, the value must be different. - Delete the
ibm-replicasubentry. Issue the following command:idsldapdelete -D cn=root -w secret -k ibm-replicaserverid=\ ac1156c0-a214-1029-934c-cd9424fd6984,ibm-replicagroup=default,\ cn=ibmpolicies - Delete the
ibm-replicagroup. Issue the following command:idsldapdelete -D cn=root -w secret -k ibm-replicagroup=default,\ cn=ibmpolicies - Modify the
cn=ibmpoliciesentry to remove the entryobjectclass: ibm-replicationContext. Issue the following command:
In the example, the -k option in the ldapmodify and ldapdelete command, which allows the admin user to modify objects in a read-only subtree. It might be necessary to also pass the -R option to not chase referrals.ldapmodify -D cn=root -w secret -k dn: cn=ibmpolicies changetype: modify delete: objectclass objectclass: ibm-replicationContext
After you remove these entries, you can set up replication on the cn=ibmpolicies subtree
just as you would on any other subtree.