From 0e432d33fc4123d70c320c66f00cd7a0082de163 Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Tue, 25 Sep 2012 17:16:20 +0200 Subject: Index ipakrbprincipalalias and ipaautomountkey attributes An unindexed search for ipakrbprincipalalias is fired for every ipa command (and other authentication events) which would degrade IPA server performance if not indexed. ipaautomountkey unindexed searches are hit when new key entries are being added. Add both indexes to new and updated IPA installs. https://fedorahosted.org/freeipa/ticket/3020 https://fedorahosted.org/freeipa/ticket/3025 --- install/share/indices.ldif | 16 ++++++++++++++++ install/updates/20-indices.update | 14 ++++++++++++++ 2 files changed, 30 insertions(+) (limited to 'install') diff --git a/install/share/indices.ldif b/install/share/indices.ldif index 59936585c..1e1a5e9c7 100644 --- a/install/share/indices.ldif +++ b/install/share/indices.ldif @@ -192,3 +192,19 @@ ObjectClass: nsIndex nsSystemIndex: false nsIndexType: eq nsIndexType: pres + +dn: cn=automountkey,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config +changetype: add +cn: automountkey +ObjectClass: top +ObjectClass: nsIndex +nsSystemIndex: false +nsIndexType: eq + +dn: cn=ipakrbprincipalalias,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config +changetype: add +cn: ipakrbprincipalalias +ObjectClass: top +ObjectClass: nsIndex +nsSystemIndex: false +nsIndexType: eq diff --git a/install/updates/20-indices.update b/install/updates/20-indices.update index 80ac66c8a..323fb9cc8 100644 --- a/install/updates/20-indices.update +++ b/install/updates/20-indices.update @@ -116,3 +116,17 @@ default:ObjectClass: nsIndex default:nsSystemIndex: false default:nsIndexType: eq default:nsIndexType: pres + +dn: cn=automountkey,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config +default:cn: automountkey +default:ObjectClass: top +default:ObjectClass: nsIndex +default:nsSystemIndex: false +default:nsIndexType: eq + +dn: cn=ipakrbprincipalalias,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config +default:cn: ipakrbprincipalalias +default:ObjectClass: top +default:ObjectClass: nsIndex +default:nsSystemIndex: false +default:nsIndexType: eq -- cgit