Modifying the ACI and entry owner values
Use this information to modify the ACI and entryOwner values.
Procedure
- Create or replace the value for an attribute.
- Modify-replace
- Modify-replace works the same way as all other attributes. If
the attribute value does not exist, create the value. If the attribute
value exists, replace the value. For example:
Given an ACI for an entry: Do the following change: The resulting ACI is as follows: aclEntry: group:cn=Dept ABC,o=sample:normal:grant:rsc aclPropagate: truedn: cn=some entry changetype: modify replace: aclEntry aclEntry: group:cn=Dept XYZ,o=sample:normal:grant:rsc
ACI values foraclEntry: group:cn=Dept XYZ,o=sample:normal:grant:rsc aclPropagate: trueDept ABCare lost through the replace action.ibm-filterAclEntry: group:cn=Dept ABC,o=sample: (cn=Manager ABC):normal :grant:rsc ibm-filterAclInherit: truedn: cn=some entry changetype: modify replace: ibm-filterAclEntry ibm-filterAclEntry: group:cn=Dept XYZ,o=sample: (cn=Manager XYZ):normal :grant:rsc dn: cn=some entry changetype: modify replace: ibm-filterAclInherit ibm-filterAclInherit: false
ACI values foribm-filterAclEntry: group:cn=Dept XYZ,o=sample: (cn=Manager XYZ):normal :grant:rsc ibm-filterAclInherit: falseDept ABCare lost through the replace action.
- Add a value to an ACI or
entryOwner.- Modify-add
- During an idsldapmodify-add, if the ACI or
entryOwner does not exist, the ACI or
entryOwnerwith the specific values is created. If the ACI orentryOwnerexists, then add the specified values to the ACI orentryOwner. For example:Given an ACI for an entry: With a modification: Yields a multi-valued aclEntryof:aclEntry: group:cn=Dept XYZ,o=sample: normal:grant:rscdn: cn=some entry changetype: modify add: aclEntry aclEntry: group:cn=Dept ABC,o=sample: at.attribute1:grant:rscaclEntry: group:cn=Dept XYZ,o=sample: normal:grant:rsc aclEntry: group:cn=Dept ABC,o=sample: at.attribute1:grant:rscIbm-filterAclEntry: group:cn=Dept XYZ,o=sample: (cn=Manager XYZ):normal :grant:rscdn: cn=some entry changetype: modify add: ibm-filterAclEntry ibm-filterAclEntry: group:cn=Dept ABC,o=sample: (cn=Manager ABC) :at.attribute1:grant:rscIbm-filterAclEntry: group:cn=Dept XYZ,o=sample: (cn=Manager XYZ):normal :grant:rsc ibm-filterAclEntry: group:cn=Dept ABC,o=sample: (cn=Manager ABC):at.attribute1 :grant:rscThe permissions under the same attribute or attribute class are considered as the basic building blocks and the actions are considered as the qualifiers. If the same permission value is being added more than one time, only one value is stored. If the same permission value is being added more than one time with different action values, the last action value is used. If the resulting permission field is empty(""), this permission value is set to null and the action value is set to grant. For example:Given an ACI for an entry: With a modification: Yields a multi-valued aclEntryof:aclEntry: group:cn=Dept XYZ,o=sample:normal:grant:rscdn: cn=some entry changetype: modify add: aclEntry aclEntry: group:cn=Dept XYZ,o=IBM: normal:deny:r:critical: deny::sensitive :grant:raclEntry: group:cn=Dept XYZ,o=sample:normal:grant:sc: normal:deny:r:critical :grant::sensitive:grant:rIbm-filterAclEntry: group:cn=Dept XYZ,o=sample: (cn=Manager XYZ):normal :grant:rscdn: cn=some entry changetype: modify add: ibm-filterAclEntry ibm-filterAclEntry: group:cn=Dept XYZ,o=sample: (cn=Manager XYZ):normal :deny:r:critical:deny: :sensitive:grant:ribm-filterAclEntry: group: cn=Dept XYZ,o=sample:(cn=Manager XYZ):normal :grant:sc:normal:deny :r:critical:grant: :sensitive:grant:r
- Delete a particular ACI value.
- Modify-delete
- To delete a particular ACI value, use the regular
idsldapmodify-deletesyntax.Given an ACI for an entry: Yields the remaining ACI on the server of: aclEntry: group:cn=Dept XYZ,o=sample:object:grant:ad aclEntry: group:cn=Dept XYZ,o=sample:normal:grant:rwsc dn: cn = some entry changetype: modify delete: aclEntry aclEntry: group:cn=Dept XYZ,o=sample:object:grant:adaclEntry: group:cn=Dept XYZ,o=sample:normal:grant:rwscibm-filterAclEntry: group:cn=Dept XYZ,o=sample:(cn=Manager XYZ):object :grant:ad ibm-filterAclEntry: group:cn=Dept XYZ,o=sample:(cn=Manager XYZ):normal :grant:rwsc dn: cn = some entry changetype: modify delete: ibm-filterAclEntry ibm-filterAclEntry: group:cn=Dept XYZ,o=sample:(cn=Manager XYZ):object :grant:adibm-filterAclEntry: group:cn=Dept XYZ,o=sample:(cn=Manager XYZ):normal :grant:rwscDeleting an ACI or
entryOwnervalue that does not exist results in an unchanged ACI orentryOwnerand a return code specifies that the attribute value does not exist.