Jump to: navigation, search
Alt text
About this image


Troubleshooting Icon.png
Troubleshooting
Product ConnectXf
Version All
Applies to Administrators
Level Advanced



LDAP is not restored properly during datarestore

  • Verify that ldap is not restored properly :
a. /mithi/mcs/bin/generatelogreport.sh /var/log/mithi/mcs/datarestore.sh.log >/tmp/lr
Check at the end of the log report(/tmp/lr) that the number of ldap records is matching with the number of ldap records on the original server. Also check that there are no errors in the log report.

If the number of ldap records is differing by a large number, then ldap is not restored properly.

  • Steps to correct :
a. Manually add the ldap records from existing ldif file.
a.1. Check that number of records in ldif are matching with the number of records on original server. On the new server,
cat /mithi/temp/allrecords.ldif | grep "o=cd" | wc -l
cat /mithi/temp/allrecords.ldif | grep "o=ms" | wc -l
cat /mithi/temp/allrecords.ldif | grep "o=pab" | wc -l
cat /mithi/temp/allrecords.ldif | grep "o=gab" | wc -l
/mithi/temp/allrecords.ldif file is automatically present after datarestore.

If the number of records in ldif file are different from the original server :

Regenerate the ldif file from the original server using ldapsearch command :
ldapsearch -x -LLL -s sub -D "cn=manager,dc=connectserver" -w "`cat /var/qmail/control/ldappassword`" -b "dc=connectserver" >/root/mithiwork/allrecords.ldif

Copy the /root/mithiwork/allrecords.ldif from original server to the /mithi/temp/ on new server.


If the number of records in ldif file are same as that of original server, then no need to generate ldif, just add the records using following steps.


Run the following command using runonce on new server :

/mithi/mcs/bin/runonce.sh "ldapadd -cvx -D "$LDAP_ROOT_DN" -w "$LDAP_ROOT_PASSWD" -f /mithi/temp/allrecords.ldif -S /root/mithiwork/ldapadd.log"

After ldapadd has finished, run generatelogreport.sh again to verify that the number of ldap records on the 2 servers match.