[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: [Openldap 2.4.16] Unable to use DB_CONFIG
- To: Lepoutre Lionel <leplio@gmail.com>, <openldap-software@openldap.org>
- Subject: RE: [Openldap 2.4.16] Unable to use DB_CONFIG
- From: Brett Maxfield <brett.maxfield@gmail.com>
- Date: Mon, 20 Jul 2009 09:31:05 +1000
- Content-class:
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:mime-version :content-class:from:subject:date:importance:x-priority:to :content-type; bh=LD37/K7vdEgSkmJ47TrpHbprV8991MHEu0jy9c5UbO8=; b=Rbfc+gn1dxPo23XxeUFn00pfCoPKlUD8lA0JlThAw5bd5C2TylhEmFk+g33IXWmZ1e 3Nd47IKeCg1NGGpgvU1mmcILD0EsNas9Q7mpl91Rs1DMO88TF/jdZ3nkK/c4DAqUBfQ7 FSKguxOZ3KV+uyas9dTzB8GU4Fycuvn9nuWVU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:mime-version:content-class:from:subject:date:importance :x-priority:to:content-type; b=QSYR0AtyejCWRBqTW02rNfjNYyaEh5HX3oafnJYO0yzswJRkkZnfFaPv2mgupTvw4M 61JwHknOnriK/yTDPBTb2XNhpDkCZ5Sa/VNSbnJMwfcAdK0q39OCW2oggNYiseg4B0mA qi43AOozf9TjJgiqEKF9ZJ7mta9fevh2fUqWs=
- Importance: normal
I think you should read the manual again. That is not a DB_CONFIG. That looks like a slapd config file, in ldif format.
From: Lepoutre Lionel <leplio@gmail.com>
Sent: Friday, 17 July 2009 10:19 PM
To: openldap-software@openldap.org
Subject: [Openldap 2.4.16] Unable to use DB_CONFIG
Hello,
I am trying to use the DB_CONFIG file as it seems to be the good way to configure my hdb database.
My LDAP start without any DB_CONFIG, but when I put a DB_CONFIG file I have an error:
"unrecognized name-value pair: dn:"
Here is an extract of my files (I have changed my personal information by MY...)
- slapd.conf:
------------------------------------
database hdb
suffix "MY_LDAP_SUFFIX"
rootdn "MY_ROOT_DN"
rootpw MY_ROOT_PASS
directory /opt/local/openldap/var/openldap-data
- DB_CONFIG:
-----------------------------------
# global configuration settings
dn: cn=config
objectClass: olcGlobal
cn: config
# schema definitions
dn: cn=schema,cn=config
objectClass: olcSchemaConfig
cn: schema
dn: cn=core,cn=schema,cn=config
objectClass: olcSchemaConfig
cn: core
#backend definitions
dn: olcBackend=hdb,cn=config
objectClass: olcBackendConfig
olcBackend: hdb
# database definitions
dn: olcDatabase=hdb,cn=config
objectClass: olcDatabaseConfig
olcDatabase: hdb
olcSuffix: MY_LDAP_SUFFIX
....
It seems to be because of the first line of my DB_CONFIG file but I have copied it from the documentation (http://www.openldap.org/doc/admin24/slapdconf2.html). Did I miss something? Is it not the good file for such configuration?
Any help is welcome and sorry if it is a stupid question.
Lionel