We already have an index on fqdn in the master branch. Add this to the 2.2 branch as well. We do a search on host when installing a replica and an unindexed search might fail.

rob
>From 9b57300613b5747697122cac2857506b223688d0 Mon Sep 17 00:00:00 2001
From: Rob Crittenden <rcrit...@redhat.com>
Date: Mon, 21 May 2012 16:37:58 -0400
Subject: [PATCH] Index the fqdn attribute.

We do a search on this when installing a replica.

https://fedorahosted.org/freeipa/ticket/2735
---
 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 05c276554820dab6fe580e0cc6fe1cade96de420..1b1ba7df9ab215effd4cbbf9fb74f2ef751cb87c 100644
--- a/install/share/indices.ldif
+++ b/install/share/indices.ldif
@@ -91,3 +91,12 @@ dn: cn=ntUserDomainId,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
 changetype: modify
 replace: nsIndexType
 nsIndexType: eq,pres
+
+dn: cn=fqdn,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
+changetype: add
+ObjectClass: top
+ObjectClass: nsIndex
+cn: fqdn
+nsSystemIndex: false
+nsIndexType: eq
+nsIndexType: pres
diff --git a/install/updates/20-indices.update b/install/updates/20-indices.update
index b0e2f36b84f39e6ec2ec2be44a201d117f945df6..9592a7a9688f012c06a4a9f873a4b31036c64e38 100644
--- a/install/updates/20-indices.update
+++ b/install/updates/20-indices.update
@@ -32,3 +32,11 @@ default:ObjectClass: top
 default:ObjectClass: nsIndex
 default:nsSystemIndex: false
 default:nsIndexType: eq
+
+dn: cn=fqdn,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
+default:cn: fqdn
+default:ObjectClass: top
+default:ObjectClass: nsIndex
+default:nsSystemIndex: false
+default:nsIndexType: eq
+default:nsIndexType: pres
-- 
1.7.10.1

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to