mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-25 16:31:08 -06:00
c0630950a1
Many attributes in IPA (e.g. manager, memberuser, managedby, ...) are used to store DNs of linked objects in IPA (users, hosts, sudo commands, etc.). However, when the linked objects is deleted or renamed, the attribute pointing to it stays with the objects and thus may create a dangling link causing issues in client software reading the data. Directory Server has a plugin to enforce referential integrity (RI) by checking DEL and MODRDN operations and updating affected links. It was already used for manager and secretary attributes and should be expanded for the missing attributes to avoid dangling links. As a prerequisite, all attributes checked for RI must have pres and eq indexes to avoid performance issues. Thus, the following indexes are added: * manager (pres index only) * secretary (pres index only) * memberHost * memberUser * sourcehost * memberservice * managedby * memberallowcmd * memberdenycmd * ipasudorunas * ipasudorunasgroup Referential Integrity plugin is updated to enforce RI for all these attributes. Unit tests covering RI checks for all these attributes were added as well. Note: this update will only fix RI on one master as RI plugin does not check replicated operations. https://fedorahosted.org/freeipa/ticket/2866
14 lines
564 B
Plaintext
14 lines
564 B
Plaintext
# Expand attributes checked by Referential Integrity plugin
|
|
# pres and eq indexes defined in 20-indices.update must be set for all these
|
|
# attributes
|
|
dn: cn=referential integrity postoperation,cn=plugins,cn=config
|
|
add: nsslapd-pluginArg9: memberuser
|
|
add: nsslapd-pluginArg10: memberhost
|
|
add: nsslapd-pluginArg11: sourcehost
|
|
add: nsslapd-pluginArg12: memberservice
|
|
add: nsslapd-pluginArg13: managedby
|
|
add: nsslapd-pluginArg14: memberallowcmd
|
|
add: nsslapd-pluginArg15: memberdenycmd
|
|
add: nsslapd-pluginArg16: ipasudorunas
|
|
add: nsslapd-pluginArg17: ipasudorunasgroup
|