[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: export directory in LDIF format
- To: OpenLDAP Technical Discussion list <openldap-technical@openldap.org>
- Subject: Re: export directory in LDIF format
- From: Jerry <jerry@seibercom.net>
- Date: Tue, 11 Nov 2014 07:46:19 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seibercom.net; s=google; h=date:from:to:subject:message-id:in-reply-to:references:reply-to :organization:mime-version:content-type:content-transfer-encoding; bh=dNWfB600DC8kHavnYopDTNM63o2DrBW6RrMfkQYLFMQ=; b=UuDOqkkx06r/6bObrL+eEb7oeJImqZc09ZdkFrB6RtWdIJJexdThCu7dCNw62Wirmw e+X64CkjiMHlql6Lo38CgGiEPzeP+PfXgUdyVWymV6Fj59XZa+OVeJz8V8Fa9S3v6vQh KOm3T5b3zRMsgKAausfrLpeXodBwjFkg328nA=
- In-reply-to: <381034F1854D9E8E3716F2ED@quanah-mac.local>
- Organization: seibercom NET
- References: <20141110070058.0a8ad9ff@scorpio> <381034F1854D9E8E3716F2ED@quanah-mac.local>
On Mon, 10 Nov 2014 07:42:44 -0800
Quanah Gibson-Mount <quanah@zimbra.com> wrote:
> --On November 10, 2014 at 7:00:58 AM -0500 Jerry <jerry@seibercom.net>
> wrote:
>
> > I have a strange problem exporting my directory into LDIF format. I am
> > using the "mdb" format with openldap.
> >
> > /usr/local/sbin/slapcat -l MyDomain.net.ldif -b "dc=MyDomain,dc=net"
>
> slapcat does not require slapd to be running to export a DB. I would note
> your slapcat command is missing a -F option, which I would generally advise
> you provide. You also do not state if cron is running as the same user as
> slapd, which would also be advised.
>
> Thousands of systems slapcat DB's each and every night out of cron, w/o
> issue, including my own.
>
> --Quanah
That is why I cannot figure out why I am have this problem, even if it is only
sporadic.
CRON sent me this message this morning: (I sanitized the actual name)
5461944c mdb_db_open: database "dc=MyDomain,dc=net" cannot be opened: No such file or directory (2). Restore from backup!
5461944c backend_startup_one (type=mdb, suffix="dc=MyDomain,dc=net"): bi_db_open failed! (2)
slap_startup failed
This is the actual code I am using in CRON:
nice /usr/local/sbin/slapcat -f /usr/local/etc/openldap/slapd.conf -b "dc=MyDomain,dc=net" -l usr/home/gerard/LDAP_Backup/MyDomain.net.ldif
Originally, I had created a Bash script and had CRON call that script; however, when things were not working as planned, I thought that might be the problem. However, it does not appear to be so.
Any ideas what I could be doing wrong? Remember, this only happens when there has been several hours of inactivity; otherwise it works fine.
--
Jerry