Author: rmeggins
Update of /cvs/dirsec/ldapserver/ldap/servers/slapd/back-ldbm
In directory
cvs-int.fedora.redhat.com:/tmp/cvs-serv4391/ldapserver/ldap/servers/slapd/back-ldbm
Modified Files:
ldbm_instance_config.c
Log Message:
Resolves: bug 249470
Bug Description: cn equality index missing by default
Reviewed by: nhosoi (Thanks!)
Fix Description: When creating the database instance during dse.ldif processing, we do not
create the user defined indexes from the defaults for this backend. This used to work in
the old setup code because that code would always add the configuration for the indexes
for the new instance. The way it is supposed to work is that a new instance should just
copy the default indexes for that backend. This works fine when adding an instance via
LDAP but not during startup. I just added a call to have this done during startup. I
also removed some obsolete indexes from the default indexes.
Platforms tested: RHEL4
Flag Day: no
Doc impact: no
Index: ldbm_instance_config.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/back-ldbm/ldbm_instance_config.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ldbm_instance_config.c 4 Dec 2006 18:36:57 -0000 1.7
+++ ldbm_instance_config.c 25 Jul 2007 15:20:01 -0000 1.8
@@ -837,6 +837,10 @@
if (pb == NULL) {
/* called during startup -- do the rest now */
rc = ldbm_instance_generate(li, instance_name, NULL);
+ if (!rc) {
+ inst = ldbm_instance_find_by_name(li, instance_name);
+ rc = ldbm_instance_create_default_user_indexes(inst);
+ }
}
/* if called during a normal ADD operation, the postadd callback
* will do the rest.
Show replies by date