I had this issue after trying to reset the admin password – ZeroShell web interface locked up and after a reboot got stuck at “Recovering LDAP DB”.
In case anyone still having this issue, I fixed mine as follows:
Boot to any Live CD.
Mount the partition with the affected configuration.
sudo mkdir bak
sudo mv __.db.00* ./bak/
ZeroShell reboots okay but not sure what part of LDAP configuration is affected.