This has happened to me a few times.<br><br>The following email from David Trask helped me a lot.<br>I found that I couldn't restore from ldif.gz files, but if I extracted them first it worked.<br><br>Hope this helps.<br><br>
Krsnendu<br><br>>>David Trask wrote<<<br><br>If you can ssh in, then you can fix ldap.  If you have a relatively recent<br>version of smbldap-installer installed then you can find your backups here<br>at   /var/smbldap-backups    Look for the most recent date
<br><br>To fix the corrupt ldap:<br><br>service ldap stop   (just to be sure)<br><br>cd /var/lib/ldap<br><br>rm -Rf *    (clean that sucker out)<br><br>slapadd -l /var/smbldap-backups/latest-file.ldif<br><br>(wait for a few secs and hold your breath)
<br><br>Once it's done....<br><br>cd /var/lib/ldap<br><br>chown -R ldap:ldap *<br><br>then start 'er up!<br><br>service ldap start<br><br>and if I were you...also restart smb and nscd (if you use it)<br><br>Now beyond that, you may have other issues, but that's the start....keep
<br>us posted<br><br>David N. Trask<br>Technology Teacher/Director<br>Vassalboro Community School<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:dtrask@vcsvikings.org">dtrask@vcsvikings.org</a><br>
(207)923-3100<br><br><div><span class="gmail_quote">On 15/11/06, <b class="gmail_sendername">Kari Matthews</b> <<a href="mailto:karisue@gmail.com">karisue@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br><br>Yesterday, my building lost electricity.  The server was not plugged in to the UPS, so the server and all the workstations lost power. When the electricity went back on, none of the computers would login to the server.
<br><br>I have a Ubuntu server and Edubuntu fat clients that authenticate with the Oquist / Trask SMBLDAP script.  <br><br>Any ideas on where I can start hunting this problem down?<br><br>Thanks,<br><span class="sg">Kari
<br><br><br><br>

</span><br>_______________________________________________<br>K12OSN mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:K12OSN@redhat.com">K12OSN@redhat.com</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://www.redhat.com/mailman/listinfo/k12osn" target="_blank">
https://www.redhat.com/mailman/listinfo/k12osn</a><br>For more info see <<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.k12os.org" target="_blank">http://www.k12os.org</a>><br><br></blockquote>
</div><br>