On Mon, Apr 23, 2012 at 04:40:11PM +0200, Jan Cholasta wrote:
> On 16.4.2012 22:32, Nalin Dahyabhai wrote:
> >When we implement ticket #2259, indexing fqdn and macAddress should help
> >the Schema Compatibility and NIS Server plugins locate relevant computer
> >entries more easily.
> 
> Please add the indices to install/share/indices.ldif as well.

It's a bit of guesswork, but this should match the rest of the contents
of that file.

Nalin
>From 3cdb82a3746931a0f566503c84c474909446de12 Mon Sep 17 00:00:00 2001
From: Nalin Dahyabhai <na...@dahyabhai.net>
Date: Mon, 16 Apr 2012 15:26:50 -0400
Subject: [PATCH 1/3] - index the fqdn and macAddress attributes for the sake
 of the compat plugin

---
 install/share/indices.ldif        |   19 +++++++++++++++++++
 install/updates/20-indices.update |   16 ++++++++++++++++
 2 files changed, 35 insertions(+)

diff --git a/install/share/indices.ldif b/install/share/indices.ldif
index 05c2765..6233d71 100644
--- a/install/share/indices.ldif
+++ b/install/share/indices.ldif
@@ -91,3 +91,22 @@ 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
+
+dn: cn=macAddress,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
+changetype: add
+ObjectClass: top
+ObjectClass: nsIndex
+cn: macAddress
+nsSystemIndex: false
+nsIndexType: eq
+nsIndexType: pres
+
diff --git a/install/updates/20-indices.update 
b/install/updates/20-indices.update
index b0e2f36..ecca027 100644
--- a/install/updates/20-indices.update
+++ b/install/updates/20-indices.update
@@ -32,3 +32,19 @@ 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
+
+dn: cn=macAddress,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
+default:cn: macAddress
+default:ObjectClass: top
+default:ObjectClass: nsIndex
+default:nsSystemIndex: false
+default:nsIndexType: eq
+default:nsIndexType: pres
-- 
1.7.10

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

Reply via email to