From 7688808d1f1574f1f77fae90d95cee60ca0badf2 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Wed, 5 Dec 2018 17:55:58 +0100 Subject: [PATCH] Add index on idnsName The data structures for the internal DNS server use the attribute idnsName instead of cn in the DN. It's also used to search for entries when entries are added, modified, or removed. The new index speeds up dnsrecord and dnszone related commands as well as commands like host-add and host-del --updatedns. Fixes: https://pagure.io/freeipa/issue/7803 Signed-off-by: Christian Heimes Reviewed-By: Florence Blanc-Renaud --- install/share/indices.ldif | 8 ++++++++ install/updates/20-indices.update | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/install/share/indices.ldif b/install/share/indices.ldif index 4ef0aa606..81fba332c 100644 --- a/install/share/indices.ldif +++ b/install/share/indices.ldif @@ -393,3 +393,11 @@ objectClass:top objectClass:nsIndex nsSystemIndex: false nsIndexType: eq + +dn: cn=idnsName,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config +changetype: add +cn: idnsName +objectClass: top +objectClass: nsIndex +nsSystemIndex: false +nsIndexType: eq diff --git a/install/updates/20-indices.update b/install/updates/20-indices.update index f8691f24c..578b15363 100644 --- a/install/updates/20-indices.update +++ b/install/updates/20-indices.update @@ -359,3 +359,10 @@ default: objectClass:top default: objectClass:nsIndex default: nsSystemIndex: false default: nsIndexType: eq + +dn: cn=idnsName,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config +default: cn: idnsName +default: objectClass: top +default: objectClass: nsIndex +default: nsSystemIndex: false +default: nsIndexType: eq