PURGE LDAP & REIMPORT
1) Export existing ldap
[root@lin02 ldap]# ldapsearch -x -b dc=domain,dc=com > /tmp/ldap_backup_20120621.ldif
…
2) Edit your export to look as you wish.
3) Remove existing db
[root@lin02 ldap]# service slapd stop
Stopping slapd: [ OK ]
[root@lin02 ldap]# rm -fr /var/lib/ldap/*
4) Import file
[root@lin02 ldap]# service ldap start
[root@lin02 ldap]# ldapadd -x -W -D cn=root,dc=domain,dc=com -f /tmp/ldap_new_20120621.ldif
Enter LDAP Password:
adding new entry "dc=domain,dc=com"