Difference between revisions of "Emergency LDAP Rescue Procedure"
From Nuclear Physics Group Documentation Pages
Jump to navigationJump to search| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
| + | First, turn off mail, otherwise mail won't find the destination users and bounce! | ||
| + | service dovecot stop | ||
| + | |||
| + | Next, turn off LDAP: | ||
| + | service ldap stop | ||
This dumps the LDAP database: | This dumps the LDAP database: | ||
| − | slapcat -l dump. | + | slapcat -l dump.ldif |
| + | |||
| + | Dumps database into dump.ldif <br> | ||
| + | Clean the directory /var/lib/ldap ('''BACK IT UP''') <br> | ||
| + | |||
| + | slapadd -l dump.ldif | ||
| + | |||
| + | Next, set the permissions on /var/lib/ldap to ldap:ldap<br> | ||
| + | Startup ldap: | ||
| + | |||
| + | service ldap start | ||
| + | |||
| + | Pray. | ||
| − | + | If praying worked, start mail: | |
| + | service dovecot start | ||
Latest revision as of 13:57, 16 November 2009
First, turn off mail, otherwise mail won't find the destination users and bounce!
service dovecot stop
Next, turn off LDAP:
service ldap stop
This dumps the LDAP database:
slapcat -l dump.ldif
Dumps database into dump.ldif
Clean the directory /var/lib/ldap (BACK IT UP)
slapadd -l dump.ldif
Next, set the permissions on /var/lib/ldap to ldap:ldap
Startup ldap:
service ldap start
Pray.
If praying worked, start mail:
service dovecot start