There are a few steps you can take to recover from a corrupt LDAP database. These have been scattered around the forums a bit – but can be summarised below
Backup your existing LDAP database:-
(do this routinely!, it is done as part of the ClearCenter Remote Server Backup configuration, so recommend using this service if you don’t, unfortunately it’s no longer free)
Code: |
tar -cvzf ldapbackup-`date +%F`.tar.gz /var/lib/ldap/* |
For mild corruption:-
Code: |
service ldap stop |
For more severe corruption:-
Code: |
service ldap stop |
For extreme problems, wipe it and start again – NOTE WILL WIPE ALL USERS, GROUPS, ACCOUNTS etc!
Code: |
service ldap stop |
Alternatively instead of reimporting your ldiff backup files, you can go to the webconfig and recreate all your users