[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Trying to switch from bdb to mdb



Am Sun, 2 Nov 2014 08:07:32 -0500
schrieb Jerry <jerry@seibercom.net>:

> On Sun, 2 Nov 2014 13:40:56 +0100
> Dieter Klünter <dieter@dkluenter.de> wrote:
> 
> > Am Sun, 2 Nov 2014 05:46:07 -0500
> > schrieb Jerry <jerry@seibercom.net>:
> > 
> > > On Sat, 1 Nov 2014 22:08:38 +0100
> > > Dieter Klünter <dieter@dkluenter.de> wrote:
> > > 
> > > > Am Sat, 1 Nov 2014 14:29:10 -0400
> > > > schrieb Jerry <jerry@seibercom.net>:
> > > > 
> > > > > I am running OpenLDAP on a FreeBSD-10 amd 64 machine. It is
> > > > > installed via the FreeBSD ports system and I compile it on my
> > > > > machine.
> > > > > 
> > > > > I recently wanted to switch from BDB since versions greater
> > > > > than 6 are not acceptable to OpenLDAP. I wanted to use "mdb",
> > > > > but I just cannot seem to get it configured correctly.
> > > > > 
> > > > > I changed the "database bdb" to "database mdb" but when I try
> > > > > to start openLDAP, I get this error:
> > > > > 
> > > > > Starting slapd
> > > > > Unrecognized database type (mdb)
> > > > > Warning: failed to start slapd
> > > > > 
> > > > > I removed the existing database, so it should be starting up
> > > > > with a clean environment, but the problem continues.
> > > > > 
> > > > > This is probably a problem specific to FreeBSD. If any user of
> > > > > FreeBSD has this working, I would love to see how they
> > > > > configured it. Feel free to contact me off list if it is more
> > > > > convenient.
> > > > 
> > > > Probably OpenLDAP has not been built with static back-mdb but
> > > > with back-mdb module. You may check with ./slapd -VVV, this
> > > > will show all built-in modules.
> > > 
> > > This is the output:
> > > 
> > > @(#) $OpenLDAP: slapd 2.4.40 (Oct 28 2014 06:27:00) $
> > >         gerard@scorpio.seibercom.net:/usr/ports/net/openldap24-server/work/openldap-2.4.40/servers/slapd
> > > 
> > > Included static overlays:
> > >     syncprov
> > > Included static backends:
> > >     config
> > >     ldif
> > >     relay
> > > 
> > > Remembering that this is a FreeBSD-10 system, what should I do?
> > > This is the configuration of the port:
> > > 
> > > /usr/ports/net/openldap24-server $ make showconfig 
> > > ===> The following configuration options are available for
> > > openldap-server-2.4.40: ACCESSLOG=off: With In-Directory Access
> > > Logging overlay ACI=off: Per-object ACI (experimental)
> > >      AUDITLOG=off: With Audit Logging overlay
> > >      BDB=on: With BerkeleyDB backend (DEPRECATED)
> > >      COLLECT=off: With Collect overy Services overlay
> > >      CONSTRAINT=off: With Attribute Constraint overlay
> > >      DDS=off: With Dynamic Directory Services overlay
> > >      DEREF=off: With Dereference overlay
> > >      DNSSRV=off: With Dnssrv backend
> > >      DYNACL=off: Run-time loadable ACL (experimental)
> > >      DYNAMIC_BACKENDS=on: Build dynamic backends
> > >      DYNGROUP=off: With Dynamic Group overlay
> > >      DYNLIST=off: With Dynamic List overlay
> > >      FETCH=off: Enable fetch(3) support
> > >      GSSAPI=off: With GSSAPI support (implies SASL support)
> > >      MDB=on: With Memory-Mapped DB backend
> >        ^^^^^^^^^
> > 
> > This is the important part, back-mdb has been built as module.
> > Include back-mdb into the module load part of your slapd
> > configuraton.
> 
> Okay, this is what my slapd.conf file looks like now. It is the one
> installed by FreeBSD when openldap is installed via its port's
> system. I removed personal information.
> 
> # See slapd.conf(5) for details on configuration options.
> # This file should NOT be world readable.
> #
> include         /usr/local/etc/openldap/schema/core.schema
> include         /usr/local/etc/openldap/schema/cosine.schema
> include         /usr/local/etc/openldap/schema/inetorgperson.schema
> include         /usr/local/etc/openldap/schema/nis.schema
> 
> 
> 
> # Define global ACLs to disable default read access.
> 
> # Do not enable referrals until AFTER you have a working directory
> # service AND an understanding of referrals.
> #referral       ldap://root.openldap.org
> 
> pidfile         /var/run/openldap/slapd.pid
> argsfile        /var/run/openldap/slapd.args
> 
> # Load dynamic backend modules:
> modulepath      /usr/local/libexec/openldap
> moduleload      back_bdb
> # moduleload    back_hdb
> # moduleload    back_ldap
    moduleload    back_mdb.la


> What change should I make? I apologize, but I am new at this and
> could really use some help.

-Dieter


-- 
Dieter Klünter | Systemberatung
http://sys4.de
GPG Key ID: E9ED159B
53°37'09,95"N
10°08'02,42"E