URL: https://github.com/freeipa/freeipa/pull/2724
Author: tiran
 Title: #2724: [Backport][ipa-4-6] Add index on idnsName
Action: opened

PR body:
This PR was opened automatically because PR #2670 was pushed to master and 
backport to ipa-4-6 is required.

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/2724/head:pr2724
git checkout pr2724
From 9af086900dd72b5c43269c4933fb5946a5b3c344 Mon Sep 17 00:00:00 2001
From: Christian Heimes <chei...@redhat.com>
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 <chei...@redhat.com>
 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 4ef0aa606a..81fba332c5 100644
--- a/install/share/indices.ldif
+++ b/install/share/indices.ldif
@@ -393,3 +393,11 @@ objectClass:top
 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 f8691f24c3..578b15363b 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
FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org
To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 

Reply via email to