pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone

Blame SOURCES/0032-Create-indexes-for-krbCanonicalName-attribute.patch

403b09
From 1eed28c173336da828ac60b64b09a8b01d79fab4 Mon Sep 17 00:00:00 2001
403b09
From: Martin Babinsky <mbabinsk@redhat.com>
403b09
Date: Fri, 22 Jul 2016 13:02:38 +0200
403b09
Subject: [PATCH] Create indexes for krbCanonicalName attribute
403b09
403b09
krbCanonicalName is for a long time among the attributes guarded by uniqueness
403b09
plugins, but there was never an index for it. Now that the attribute is really
403b09
used to store canonical principal names we need to add index for it to avoid
403b09
performance regressions.
403b09
403b09
https://fedorahosted.org/freeipa/ticket/6100
403b09
403b09
Reviewed-By: Thierry Bordaz <tbordaz@redhat.com>
403b09
---
403b09
 install/share/indices.ldif        | 9 +++++++++
403b09
 install/updates/20-indices.update | 8 ++++++++
403b09
 2 files changed, 17 insertions(+)
403b09
403b09
diff --git a/install/share/indices.ldif b/install/share/indices.ldif
403b09
index 642c2f7aee78b684b3e451c2595e4f18950e449e..d853266025ae350dd7de83e11e463c6bb1ab9429 100644
403b09
--- a/install/share/indices.ldif
403b09
+++ b/install/share/indices.ldif
403b09
@@ -269,3 +269,12 @@ ObjectClass: nsIndex
403b09
 nsSystemIndex: false
403b09
 nsIndexType: eq
403b09
 nsIndexType: pres
403b09
+
403b09
+dn: cn=krbCanonicalName,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
403b09
+changetype: add
403b09
+cn: krbCanonicalName
403b09
+objectClass: top
403b09
+objectClass: nsIndex
403b09
+nsSystemIndex: false
403b09
+nsIndexType: eq
403b09
+nsIndexType: sub
403b09
diff --git a/install/updates/20-indices.update b/install/updates/20-indices.update
403b09
index 445eda5ab6939f21654335ea4dd50d7b2cab008f..74961d77875515d680f34af739c984a6533eb252 100644
403b09
--- a/install/updates/20-indices.update
403b09
+++ b/install/updates/20-indices.update
403b09
@@ -251,3 +251,11 @@ only: nsMatchingRule: caseIgnoreIA5Match
403b09
 only: nsMatchingRule: caseExactIA5Match
403b09
 only:nsIndexType: eq
403b09
 only:nsIndexType: sub
403b09
+
403b09
+dn: cn=krbCanonicalName,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
403b09
+default: cn: krbCanonicalName
403b09
+default: objectClass: top
403b09
+default: objectClass: nsIndex
403b09
+only: nsSystemIndex: false
403b09
+only: nsIndexType: eq
403b09
+only: nsIndexType: sub
403b09
-- 
403b09
2.7.4
403b09