[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
using back-sql with cn=config
- To: openldap-technical@openldap.org, openldap-bugs@openldap.org
- Subject: using back-sql with cn=config
- From: Benin Technologies <benintechnologies@yahoo.fr>
- Date: Wed, 23 Jan 2013 21:01:34 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024; t=1358971301; bh=ayUgOyLx6AyEogRB6wCaP+PIvg17rq+2Ate4IjdfTqA=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=B1mJPzH+4qNTdw13hf5dqcR554SnrJhGi92QL3B7BVd1eHCiCBwgvXHdcBFvPDqlW75uuC8RvXdQd4vNv8kZYibb3KzspefgUKGCgnm6tGo7M4DevG1A2vKl0MMdAZiv41bXPH2ol/ztEg82Dk2cTSfk2nmngrk4lpq9JGRqwus=
- User-agent: Mozilla/5.0 (Windows NT 6.1; rv:11.0) Gecko/20120327 Thunderbird/11.0.1
Hi,
Has anyone out there managed to successfully convert slapd.conf into cn=config with back-sql enabled ?
I'm on Debian 6 / OpenLDAP 2.4.33 with back-sql support (./configure --enable-sql)
According tohttp://www.openldap.org/software/release/changes.html, back-sql supports dynamic config as of version 2.4.27.
So I converted slapd.conf to slapd.d, conversion went well.
However, when I start slapd, I get the following message :
# /usr/local/libexec/slapd -u openldap -g openldap -d -1
.......
50ff3f0a<<< dnPrettyNormal:<cn=root,dc=example,dc=com>,<cn=root,dc=example,dc=com>
50ff3f0a olcSqlInsEntryStmt: value #0:<olcSqlInsEntryStmt> extra cruft after<SQL expression>.
50ff3f0a config error processing olcDatabase={1}sql,cn=config:
<olcSqlInsEntryStmt> extra cruft after<SQL expression>
50ff3f0a send_ldap_result: conn=-1 op=0 p=0
50ff3f0a send_ldap_result: err=19 matched="" text=""
50ff3f0a slapd destroy: freeing system resources.
50ff3f0a slapd stopped.
50ff3f0a connections_destroy: nothing to destroy.
The error message seems to be "extra cruft after<SQL expression>"
If I edit slapd.d/cn=config/olcDatabase={1}sql.ldif and I comment the line starting with olcSqlInsEntryStmt, then slapd starts fine.
So what's the right syntax for olcSqlInsEntryStmt ???
Thanks
Ben