[CentOS] OpenLDAP migration from Centos 5 to 6

Tue May 1 23:05:51 UTC 2012
Timothy Murphy <gayleard at eircom.net>

Giles Coochey wrote:

>> So I have copied /etc/openldap/slapd.conf from the old server to the new
>> and also copied the old DB_CONFIG to /var/lib/ldap
>> (these files are not used under CentOS-6, as far as I can see),
>> and run
>>
> Under Centos 6.2 openldap uses the new cn=config configuration
> mechanism, and will ignore your slapd.conf configuration if that
> mechnism already exists.

Thanks for your response.
I know the default config is as you say, but I gave the command
-----------------------------------
[root at grover ldap]# slapadd -f /tmp/slapd.conf -l /tmp/ldif
bdb_monitor_db_open: monitoring disabled; configure monitor database to 
enable
-#################### 100.00% eta   none elapsed             26s spd   4.8 
k/s
Closing DB...
-----------------------------------
I'm pretty sure the file slapd.conf was read by the program,
as the outcome was different.

> Try backing up and removing that folder, then your slapd.conf
> configuration will actually be read.

I'll try that,
But have you actually migrated an openLDAP setup from CentOS 5 to 6?

-- 
Timothy Murphy  
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College Dublin