I'm attempting to setup OpenLDAP 2.4.39 on Ubuntu 14.04 LTS and am getting lost on how to switch from the default hdb/bdb backend to mdb.
On http://www.openldap.org/doc/admin24/backends.html#Overview in the 11.4. LMDB section it states: 11.4.2. back-mdb Configuration
Unlike the HDB/BDB backends, the mdb backend can be instantiated with very few configuration lines: include ./schema/core.schema
database mdb directory ./mdb suffix "dc=example,dc=com" rootdn "cn=mdb,dc=example,dc=com" rootpw mdb maxsize 1073741824 However it doesn't state where to make these entries.
After installing OpenLDAP through dpkg or apt-get, I have an /etc/ldap/slapd.d/cn=config directory, which contains a file named olcDatabase={1}hdb.ldif. A grep of the directory returns other files containing various entries referencing hdb.
Can anyone advise or provide a link on how to remove the hdb/bdb database configurations and how to use mdb?
I've been googling the better part of this morning and while I have found a few howto's and guide's, they all just have bits of "do this" with no specification of where to do it or in what file. Or am I just missing something in general?
Also, even if i try to reconfigure through #dpkg-reconfigure slapd doesn't ask while in the database selection ? It's having option to select bdb or hdb only.In our organization we are using 389 DS already and once we saw this LMDB feature in openldap, we are planning to migrate slapd.But while starting itself, we are struck.Please help us on the same.If possible include the clear configurarion steps in the official doc.
Regards, Varad
Varadharajan S wrote:
I'm attempting to setup OpenLDAP 2.4.39 on Ubuntu 14.04 LTS and am getting lost on how to switch from the default hdb/bdb backend to mdb.
On http://www.openldap.org/doc/admin24/backends.html#Overview in the 11.4. LMDB section it states: 11.4.2. back-mdb Configuration
First read all of chapter 5 and 6 of the Admin Guide.
Hi Howard,
Thanks for pointing to the same.Chapter 5 -Configuring slapd and 6-The slapd configuration file - These chapters doen't give answer for my question.Have you red my question clearly ?
Regards, Varad
On Thu, May 29, 2014 at 5:24 PM, Howard Chu hyc@symas.com wrote:
Varadharajan S wrote:
I'm attempting to setup OpenLDAP 2.4.39 on Ubuntu 14.04 LTS and am getting lost on how to switch from the default hdb/bdb backend to mdb.
On http://www.openldap.org/doc/admin24/backends.html#Overview in the 11.4. LMDB section it states: 11.4.2. back-mdb Configuration
First read all of chapter 5 and 6 of the Admin Guide.
-- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/
Hi,
On Thu, 29 May 2014, Varadharajan S wrote:
Hi Howard,
Thanks for pointing to the same.Chapter 5 -Configuring slapd and 6-The slapd configuration file - These chapters doen't give answer for my question.Have you red my question clearly ?
Howards point is that before proceeding you need to understand the difference between configuring slapd using the slapd.conf configuration file and using the cn=config backend.
You have already started poking around the files under slapd.d which is bound to get you in trouble with the cn=config backend.
Greetings Christian
Christian Kratzer wrote:
Hi,
On Thu, 29 May 2014, Varadharajan S wrote:
Hi Howard,
Thanks for pointing to the same.Chapter 5 -Configuring slapd and 6-The slapd configuration file - These chapters doen't give answer for my question.Have you red my question clearly ?
Howards point is that before proceeding you need to understand the difference between configuring slapd using the slapd.conf configuration file and using the cn=config backend.
You have already started poking around the files under slapd.d which is bound to get you in trouble with the cn=config backend.
Yes. But also - if you actually read both of those chapters, and learn how the LDIF format corresponds to the old slapd.conf format, then just a few seconds of thought should give you the answer to your original question.
Hi Varadharajan,
On Thu, May 29, 2014 at 4:31 AM, Varadharajan S rajanvaradhu@gmail.com wrote:
Also, even if i try to reconfigure through #dpkg-reconfigure slapd doesn't ask while in the database selection ? It's having option to select bdb or hdb only.
The Debian package (upon which Ubuntu's is based) hasn't had mdb added to the configuration system yet, but the module is installed and can be used.
However, If you simply installed Ubuntu 14.04 and ran "apt-get install slapd", you probably don't have 2.4.39, but actually 2.4.31 plus some patches. Confirm that using "dpkg-query --list slapd" or "apt-cache policy slapd". That version lacks fixes for some known mdb bugs (e.g. Debian bug #722090), so if you want to use mdb you should upgrade to a later version, either building from source yourself, or using the deb packages provided by ltb-project.org or by Symas.
Hi Ryan,
Thanks for the reply and I have installed 2.4.39 with dpkg packages. But no luck for the same.Sorry if i am too disturbing ? There is no user friendly docs ?
Regards, Varad
On Thu, May 29, 2014 at 9:33 PM, Ryan Tandy ryan@nardis.ca wrote:
Hi Varadharajan,
On Thu, May 29, 2014 at 4:31 AM, Varadharajan S rajanvaradhu@gmail.com wrote:
Also, even if i try to reconfigure through #dpkg-reconfigure slapd
doesn't
ask while in the database selection ? It's having option to select bdb or hdb only.
The Debian package (upon which Ubuntu's is based) hasn't had mdb added to the configuration system yet, but the module is installed and can be used.
However, If you simply installed Ubuntu 14.04 and ran "apt-get install slapd", you probably don't have 2.4.39, but actually 2.4.31 plus some patches. Confirm that using "dpkg-query --list slapd" or "apt-cache policy slapd". That version lacks fixes for some known mdb bugs (e.g. Debian bug #722090), so if you want to use mdb you should upgrade to a later version, either building from source yourself, or using the deb packages provided by ltb-project.org or by Symas.
openldap-technical@openldap.org