Related to http://www.freeipa.org/page/V4/User_Certificates and https://fedorahosted.org/freeipa/ticket/4238

--
Martin^3 Babinsky
From 2c5a37557d0d5e19bfe3119f71e3010e4b4454dc Mon Sep 17 00:00:00 2001
From: Martin Babinsky <mbabi...@redhat.com>
Date: Tue, 16 Jun 2015 13:20:15 +0200
Subject: [PATCH] add DS index for userCertificate attribute

'eq' and 'pres' indices for userCertificate attribute allow for more efficient
lookup and matching of binary certificates assigned to users, hosts, and
services.

Part of http://www.freeipa.org/page/V4/User_Certificates
---
 install/share/indices.ldif        | 9 +++++++++
 install/updates/20-indices.update | 8 ++++++++
 2 files changed, 17 insertions(+)

diff --git a/install/share/indices.ldif b/install/share/indices.ldif
index 70a587d7a2c3d29955f4f95f6b475c4f90fb73a7..448875dead0486c3fd12b144df96b5d27ee55dfe 100644
--- a/install/share/indices.ldif
+++ b/install/share/indices.ldif
@@ -247,3 +247,12 @@ nsSystemIndex: false
 nsIndexType: eq
 nsIndexType: pres
 nsIndexType: sub
+
+dn: cn=userCertificate,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
+changetype: add
+cn: userCertificate
+ObjectClass: top
+ObjectClass: nsIndex
+nsSystemIndex: false
+nsIndexType: eq
+nsIndexType: pres
diff --git a/install/updates/20-indices.update b/install/updates/20-indices.update
index ed855b295ee2f9a02effc72bc2ffe52b4c5730df..d65905e184587e375ab22757b984524650ba3c21 100644
--- a/install/updates/20-indices.update
+++ b/install/updates/20-indices.update
@@ -209,3 +209,11 @@ default:nsSystemIndex: false
 only:nsIndexType: eq
 only:nsIndexType: pres
 only:nsIndexType: sub
+
+dn: cn=userCertificate,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
+default:cn: userCertificate
+default:ObjectClass: top
+default:ObjectClass: nsIndex
+only:nsSystemIndex: false
+only:nsIndexType: eq
+only:nsIndexType: pres
-- 
2.1.0

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to