Jump to content

Energo Qmail LDAP Recovery Steps

From TetraWiki
Revision as of 07:39, 7 November 2017 by Biswajit (talk | contribs) (Created page with "category:Tetra Clients category:Energo Group Some time due to server failure or hard reboot of Qmail-LDAP server the LDAP services fails and LDAP database gets corrup...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Some time due to server failure or hard reboot of Qmail-LDAP server the LDAP services fails and LDAP database gets corrupted

Restarting the Ldap services will show failure .

service ldap restart 
Stopping slapd:                                            [  FAILED  ]
Checking configuration files for slapd:  config file testing succeeded
                                                          [  WARNING  ]
Starting slapd:                                            [  Failed  ]

In this case we have to recover the LDAP database

cp -pvr /var/lib/ldap /var/lib/ldap.backup.<date>
slapd_db_recover -h /var/lib/ldap
service ldap restart 
Stopping slapd:                                            [  FAILED  ]
Checking configuration files for slapd:  config file testing succeeded
                                                          [  OK  ]
Starting slapd:                                            [  OK ]

Check by ldapsearch command and should get following / Similar outputs. Now the LDAP is working Fine .

[root@node1 ~]# ldapsearch -x
# extended LDIF
#
# LDAPv3
# base <> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# energoindia.com
dn: dc=energoindia,dc=com
objectClass: dcObject
objectClass: organization
o: energoindia
dc: energoindia
# energoindia.com, energoindia.com
dn: ou=energoindia.com,dc=energoindia,dc=com
objectClass: top
...............................