Project

General

Profile

Actions

Bug #6105

closed

Bug #5965: LDAP configuration is not optimized for Rudder use case

Migration script to remove unused indexes and reindex

Added by François ARMAND almost 10 years ago. Updated almost 10 years ago.

Status:
Released
Priority:
1 (highest)
Assignee:
Matthieu CERDA
Category:
System integration
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

In #5965, we remove all OpenLDAP indexes from slapd.conf.

So, we need to also remove them from the filesystem and reindexes OpenLDAP to be sur to not have corrupted states in OpenLDAP.

The know indexes (for differente version of Rudder) are:

/var/rudder/ldap/openldap-data/activeTechniqueId.bdb
/var/rudder/ldap/openldap-data/cn.bdb
/var/rudder/ldap/openldap-data/container.bdb
/var/rudder/ldap/openldap-data/directiveId.bdb
/var/rudder/ldap/openldap-data/isDynamic.bdb
/var/rudder/ldap/openldap-data/isEnabled.bdb
/var/rudder/ldap/openldap-data/isModified.bdb
/var/rudder/ldap/openldap-data/isSystem.bdb
/var/rudder/ldap/openldap-data/machineId.bdb
/var/rudder/ldap/openldap-data/nodeGroupId.bdb
/var/rudder/ldap/openldap-data/nodeId.bdb
/var/rudder/ldap/openldap-data/ruleId.bdb
/var/rudder/ldap/openldap-data/software.bdb
/var/rudder/ldap/openldap-data/softwareId.bdb
/var/rudder/ldap/openldap-data/softwareVersion.bdb
/var/rudder/ldap/openldap-data/techniqueCategoryId.bdb
/var/rudder/ldap/openldap-data/techniqueId.bdb
/var/rudder/ldap/openldap-data/uuid.bdb

It is normal to have (and we must keep):

/var/rudder/ldap/openldap-data/dn2id.bdb
/var/rudder/ldap/openldap-data/id2entry.bdb
/var/rudder/ldap/openldap-data/objectClass.bdb

A reindex must be done, to.


Subtasks 1 (0 open1 closed)

Bug #6120: rudder-inventory-ldap is missing a "then" statementRejectedBenoît PECCATTE2015-01-13Actions
Actions

Also available in: Atom PDF