Finally I was able to make an entry in LDAP DB. :)
1. For -F option I used "/usr/local/etc/openldap"
face some issues in making first entry with LDIF file file, but later came to know the error because of Space(" ") character after dc=com in DN name.
On Mon, Jun 6, 2016 at 8:48 PM, Parveen Verma parveen.subs@gmail.com wrote:
I tried following and is able to install it in my Home directory. ./configure --prefix=/my/home/directory/parveen/OpenLDAP_LMDB --exec-prefix=/my/home/directory/parveen/OpenLDAP_LMDB --enable-bdb=no --enable-hdb=no make depend make make test make install
make test -->Shows some error, but not finally. Will do it again and capture the logs and check what was errors.
However I am a bit confused about following steps in guide. 2. A Quick-Start Guide *9. Import the configuration database * You are now ready to import your configration database for use by slapd(8), by running the command: su root -c /usr/local/sbin/slapadd -F /usr/local/etc/cn=config -l /usr/local/etc/openldap/slapd.ldif
*10. Start SLAPD. * You are now ready to start the Standalone LDAP Daemon, slapd(8), by running the command: su root -c /usr/local/libexec/slapd -F /usr/local/etc/cn=config
What is "/usr/local/etc/cn=config"? And when I am making an Organization Unit entry I get error. 575529e7 mdb_dn2entry("ou=Comp1,dc=Domain,dc=com") 575529e7 => mdb_dn2id("ou=Comp1,dc=Domain,dc=com") 575529e7 <= mdb_dn2id: get failed: MDB_NOTFOUND: No matching key/data pair found (-30798) 575529e7 mdb_add: parent does not exist 575529e7 send_ldap_result: conn=1000 op=3 p=3 575529e7 send_ldap_result: err=10 matched="" text="" 575529e7 send_ldap_response: msgid=4 tag=105 err=32
Probably some small mistake in configuration or addition of entry, but not able to find now. Can you provide some pointers?
On Mon, Jun 6, 2016 at 2:45 PM, Parveen Verma parveen.subs@gmail.com wrote:
Or it is like that we have completely done away with Berkley DB and now we should use LMDB preferably.
If so, can you provide the link for deploying the same, like How to Compile and install.
On Mon, Jun 6, 2016 at 11:22 AM, Parveen Verma parveen.subs@gmail.com wrote:
Hello All,
We are using OpenLDAP 2.4.44 in our project, but facing a dilemma over the Berkley DB version. Which version we should use or it is not required at all now as we have LMDB. Moreover Oracle has removed some links for downloading the older Berkley DB version.
OS : RHEL cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.5 (Santiago)
I referred the Online guide, but was not able to conclude. 4.2.4. Database Software
OpenLDAP's *slapd*(8) MDB primary database backend uses the LMDB software included with the OpenLDAP source. There is no need to download any additional software to have *MDB* support.
OpenLDAP's *slapd*(8) BDB and HDB deprecated database backends require Oracle Corporation http://www.oracle.com/'s Berkeley DB. If not available at configure time, you will not be able to build *slapd*(8) with these deprecated database backends.
Your operating system may provide a supported version of Berkeley DB in the base system or as an optional software component. If not, you'll have to obtain and install it yourself. Berkeley DB is available from Oracle Corporation http://www.oracle.com/'s Berkeley DB download page if required.
There are several versions available from Oracle Corporation http://www.oracle.com/. Berkeley DB version 6.0.20 and later uses a software license that is incompatible with LDAP technology and should not be used with OpenLDAP.
*Note: *Please see Recommended OpenLDAP Software Dependency Versions http://www.openldap.org/doc/admin24/guide.html#Recommended%20OpenLDAP%20Software%20Dependency%20Versions for more information.