[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Starting OpenLDAP: slapd - failed: Unrecognized database type (bdb)..Help required!
- To: openldap-technical <openldap-technical@openldap.org>
- Subject: Starting OpenLDAP: slapd - failed: Unrecognized database type (bdb)..Help required!
- From: Shamika Joshi <shamika.joshi@gmail.com>
- Date: Mon, 29 Mar 2010 19:51:38 +0530
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:content-type; bh=Im+N02HBRXy8zFTHQdFDxKsThIKO7gI0VwwM90oi9vM=; b=OXwCBULhBzw6klHMS930Ju3ftbHHWRy44tFEMvb8H379U93NrDo1Z620v+F2kAoBk7 GdJ5hhFmQFxt+DLryrjQJHk8Rokdly0tG62iH1dvfOwbpZoZdR238fg4TrvKC7P0NwnA 7uHFQcXAVWYw3MboB8oeu4vfdHnGiK5c5jmIo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=IEzwLc70zFyAkIM01fESFoCfO8T2buhnljIui7MMQ3T+nkK+I53GaybC79hxm/1QM6 wlKmYfmYPZ/mS/REaYrNIBuv0FzAvbJ0i+Fr0xCihDGMDS8Qr7JM0zbJiub2/ENbZ2uS ksihzKigHmJLqKaDkK5t0REQ8Y/fjeAdHOmbA=
I'm a beginner with Openldap & trying to bring up LDAP server on UbuntuServer with Berkleys db-4.8.26 installed gives following error on starting the slapd service. Previously I have done sucessful configuration on RHEL & Fedora but for some reason it is not working for me on Ubuntu server.
Could someone throw some light on this? Am I missing something?
shamika@ns1:/etc/ldap$ sudo /etc/init.d/slapd start
Starting OpenLDAP: slapd - failed:
Unrecognized database type (bdb)
shamika@ns1:~$ uname -msrnv
Linux ns1.cmsqalab.com 2.6.31-14-server #48-Ubuntu SMP Fri Oct 16 15:07:34 UTC 2009 x86_64
Snapshot from /var/log/syslog
Mar 29 19:41:47 x6u slapd[17730]: @(#) $OpenLDAP: slapd 2.4.18 (Sep 8 2009 17:47:22) $#012#011buildd@crested:/build/buildd/openldap-2.4.18/debian/build/servers/slapd
Mar 29 19:41:49 x6u slapd[17730]: /etc/ldap/slapd.conf: line 88: <database> failed init (bdb)
Mar 29 19:41:49 x6u slapd[17730]: slapd stopped.
Mar 29 19:41:49 x6u slapd[17730]: connections_destroy: nothing to destroy.
Here is my slapd.conf
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /etc/ldap/schema/core.schema
include /etc/ldap/schema/cosine.schema
include /etc/ldap/schema/inetorgperson.schema
include /etc/ldap/schema/nis.schema
#include /etc/ldap/schema/dnszone.schema
# Allow LDAPv2 client connections. This is NOT the default.
allow bind_v2
# 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/lib/openldap
# modules available in openldap-servers-overlays RPM package:
# moduleload accesslog.la
# moduleload auditlog.la
# moduleload denyop.la
# moduleload dyngroup.la
# moduleload dynlist.la
# moduleload lastmod.la
# moduleload pcache.la
# moduleload ppolicy.la
# moduleload refint.la
# moduleload retcode.la
# moduleload rwm.la
# moduleload smbk5pwd.la
# moduleload syncprov.la
# moduleload translucent.la
# moduleload unique.la
# moduleload valsort.la
access to * by * write
# access to *
# by self write
# by users read
## by anonymous auth
#
# if no access controls are present, the default policy
# allows anyone and everyone to read anything but restricts
# updates to rootdn. (e.g., "access to * by * read")
#
# rootdn can always read and write EVERYTHING!
#######################################################################
# ldbm and/or bdb database definitions
#######################################################################
database bdb
suffix dc=cmsqalab,dc=com
rootdn cn=Manager,dc=cmsqalab,dc=com
# Cleartext passwords, especially for the rootdn, should
# be avoided. See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
# rootpw secret
# rootpw {crypt}ijFYNcSNctBYg
rootpw {SSHA}+1DFJ0tLWAd1u3zDUw04rDtnwPKbEFy9
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory /var/lib/ldap/cmsqalab.com
# Indices to maintain for this database
index objectClass eq,pres
index ou,cn,mail,surname,givenname eq,pres,sub
index uidNumber,gidNumber,loginShell eq,pres
index uid,memberUid eq,pres,sub
index nisMapName,nisMapEntry eq,pres,sub
69,1 91%