[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Fwd: Problems starting slapd
- To: OpenLDAP-software@OpenLDAP.org
- Subject: Fwd: Problems starting slapd
- From: Toni Menendez Lopez <tonimenen@gmail.com>
- Date: Fri, 17 Feb 2006 10:28:54 +0100
- Cc: antonio.menendez_lopez@alcatel.es
- Content-disposition: inline
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Mco1YvNo5/dx1+OOJyPOENuXcyjhiwj27jECDwXpfBSTUTpdUOfb3cFQaDLNK5r39x64yV5dN8kiFo4iKjz0hN9+SaXQ3iSJMIKlgJiim4CoU9fRRo8GXmRDZ5BJpRjRHPSQ1WuuiCEnZNrtn/R0IRHhBla48fDj96pFL9o2tVc=
- In-reply-to: <32120bfa0602150924p5404dc1cn@mail.gmail.com>
- References: <32120bfa0602150924p5404dc1cn@mail.gmail.com>
---------- Forwarded message ----------
From: Toni Menendez Lopez <tonimenen@gmail.com>
Date: Wed, 15 Feb 2006 18:24:42 +0100
Subject: Problems starting slapd
To: OpenLDAP-software@openldap.org
I have installed the following packages in my host
openldap-clients-servers-2.1.30-20050311.7.3 and
BerkeleyDB-4.1.25-20050311.7.3, and after configuring the DB_CONFIG and the
slapd.conf I have the following problem :
[root@sebas104 openldap]# /usr/libexec/slapd -h ldap://159.23.98.104:389 -f
/etc/openldap/slapd.conf -d4
daemon_init: ldap://159.23.98.104:389
bdb_initialize: Sleepycat Software: Berkeley DB 4.1.25: (December 19, 2002)
bdb_db_init: Initializing BDB database
bdb_db_open: dc=somedomain,dc=com
bdb(dc=somedomain,dc=com): write: 0xbfffd9b0, 8192: Invalid argument
bdb_db_open: dbenv_open failed: Invalid argument (22)
backend_startup: bi_db_open(0) failed! (22)
bdb(dc=somedomain,dc=com): txn_checkpoint interface requires an environment
configured for the transaction subsystem
bdb_db_destroy: txn_checkpoint failed: Invalid argument (22)
slapd stopped.
connections_destroy: nothing to destroy.
Any Idea what to do ?
[root@sebas104 openldap]# cat DB_CONFIG
#
# Set the database in memory cache size.
#
set_cachesize 0 52428800 0
#
# Set database flags.
#
set_flags DB_TXN_NOSYNC
#
# Set log values.
#
set_lg_regionmax 1048576
set_lg_max 10485760
set_lg_bsize 2097152
set_lg_dir /etc/openldap
#
# Set temporary file creation directory.
#
set_tmp_dir /etc/openldap
[root@sebas104 openldap]# cat slapd.conf
# $Id: slapd.conf.tmpl,v 1.3 2004/11/30 14:53:01 dtl Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
ucdata-path /usr/share/openldap/ucdata
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/qmail.schema
include /etc/openldap/schema/messaging_core.schema
include /etc/openldap/schema/pma-multimail.schema
include /etc/openldap/schema/addressBook.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/slapd.pid
argsfile /var/run/slapd.args
allow bind_v2
sizelimit 5000
timelimit 3600
loglevel 2
# Load dynamic backend modules:
modulepath /usr/libexec/openldap
moduleload back_bdb.la
moduleload back_monitor.la
#moduleload back_ldap.la
# moduleload back_ldbm.la
# moduleload back_passwd.la
# moduleload back_shell.la
# Sample security restrictions
#
# Disallow clear text exchange of passwords
# disallow bind_simple_unprotected
#
# Require integrity protection (prevent hijacking)
# Require 112-bit (3DES or better) encryption for updates
# Require 63-bit encryption for simple bind
# security ssf=1 update_ssf=112 simple_bind=64
# Sample access control policy:
# Allow read access of root DSE
# Allow self write access
# Allow authenticated users read access
# Allow anonymous users to authenticate
# Directives needed to implement policy:
#access to dn.base="" by * read
#
# if no access controls are present, the default policy is:
# Allow read by all
#
# rootdn can always write!
#######################################################################
# bdb1 database definitions
#######################################################################
#
# Base Database Type and Domain
#
database bdb
suffix "dc=somedomain,dc=com"
#
# Distinguished Name allowed complete
# access to database backend.
#
# This section should be removed after
# the initial databases have been
# created and loaded.
#
rootdn "cn=Manager,dc=somedomain,dc=com"
rootpw {CRYPT}<some crypt password>
#
# Database Directory
#
directory /etc/openldap
#
# Set the entry cache size to 5000.
#
cachesize 5000
#
# Set transactional checkpoint.
#
checkpoint 512 720
[root@sebas104 openldap]#