I found that I couldn't use the .gz files but if I extracted them ldif file inside and use that it works.<br><br><div><span class="gmail_quote">On 18/10/06, <b class="gmail_sendername">John Lucas</b> <<a href="mailto:mrjohnlucas@gmail.com">
mrjohnlucas@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;">The error message (No DB_CONFIG file ...) may result from an ownership problem
<br>with /var/lib/ldap and/or the files within it. The directory or certain key<br>files may belong to "root" when they should belong to "ldap". What happens is<br>that slapd can't write the index files or update the db files. Try:
<br><br>        chown -R ldap.ldap /var/lib/ldap<br><br>Then restart slapd.<br><br>Are you certain that the LDIF files are corrupt? Have you manually inspected<br>them? What form does the corruption take?<br><br>On Wednesday 18 October 2006 01:38, you wrote:
<br>> It seems that all my automatically created ldif backup files are corrupted.<br>> I have never been able to back up from them. I have only ever been able to<br>> back up from the ldif file I manually created when I backed up my old
<br>> server before transfering to the current one. Why would that be?<br>><br>> On 18/10/06, Krsnendu Dasa <<a href="mailto:krsnendu108@gmail.com">krsnendu108@gmail.com</a>> wrote:<br>> > I tried to reinstall smbldap and slapadd my backup but I got this error
<br>> > message and I can't start ldap now.<br>> ><br>> > [root@k12ltsp ldap]# slapadd -l /var/smbldap-backups/smbldap.ldif.4.gz<br>> > bdb_db_open: Warning - No DB_CONFIG file found in directory<br>
> > /var/lib/ldap: (2)<br>> > Expect poor performance for suffix dc=harekrishna,dc=school,dc=nz.<br>> > str2entry: entry -1 has no dn<br>> > slapadd: could not parse entry (line=34)<br>> ><br>
> > On 18/10/06, Krsnendu Dasa <<a href="mailto:krsnendu108@gmail.com">krsnendu108@gmail.com</a>> wrote:<br>> > > My ldif file got corrupted again. I reinstalled it using rm / slapadd /<br>> > > chown ldap etc.
<br>> > > That seemed to go okay but now smb doesn't work with the above message.<br>> > >  My windows users can't access important files.<br>> > > The smb.conf file I had before was overwritten by a generic one so I
<br>> > > copied my original file back in its place.<br>> > > I can stop and restart smb but it always reads "smbd dead but pid file<br>> > > exists"<br>> > ><br>> > > What should I do?
<br><br>--<br>        "History doesn't repeat itself; at best it rhymes."<br>                        - Mark Twain<br><br>| John Lucas                          <a href="mailto:MrJohnLucas@gmail.com">MrJohnLucas@gmail.com
</a>               |<br>| St. Thomas, VI 00802                <a href="http://mrjohnlucas.googlepages.com/">http://mrjohnlucas.googlepages.com/</a> |<br>| 18.3°N, 65°W                        AST (UTC-4)                         |
<br></blockquote></div><br>