<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Verdana size=2>HI,</FONT></DIV>
<DIV><FONT face=Verdana size=2>Same here, I run into this problems a couple of 
times, I followed the solution that David Knight has shared and was able to 
login in again</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>ALex</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=krsnendu108@gmail.com href="mailto:krsnendu108@gmail.com">David 
  Knight</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=k12osn@redhat.com 
  href="mailto:k12osn@redhat.com">Support list for open source software in 
  schools.</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, November 14, 2006 10:18 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [K12OSN] Lost electricity / 
  Lost SMBLDAP</DIV>
  <DIV><BR></DIV>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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
    <DIV>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></DIV>
    <DIV><SPAN class=sg><FONT face=Verdana 
  size=2></FONT> </DIV></SPAN></BLOCKQUOTE></DIV></BLOCKQUOTE></BODY></HTML>