Hey saurabh,

More exact steps

//Check slapd is running and you can add/search entry. 
# service slapd status;
# ldapadd -x -W -D "cn=Manager,dc=example,dc=com" -f /root/user4.ldif
# ldapsearch -x cn=user4 -b
# slapcat -l /root/test.ldif            // Slapcat is used to generate an LDAP Directory Interchange Format (LDIF) output based upon the contents of a slapd(8) database

//If above steps are working.
# vim /etc/openldap/slapd.conf
    # database bdb
    database mdb
# service slapd stop
# service slapd restart
# slapadd -l /root/test.ldif
ldapsearch -x cn=user4 -b dc=example,dc=com                       //Lets test searching exiting user
# ldapadd -x -W -D "cn=Manager,dc=example,dc=com" -f /root/user5.ldif            //Lets add a new us



On 06/05/2018 12:26 AM, Frank Swasey wrote:
you would shutdown your ldap server.
slapcat the bdb database out
change your slapd.conf file to use MDB instead of BDB
slapadd your database into mdb


On Jun 2, 2018, at 17:22, Saurabh Lahoti <saurabh.astronomy@gmail.com> wrote:


How could we upgrade our bdb to mdb using slapadd..?
Thanks & Kind Regards,
Saurabh LAHOTI.

Amit Kumar
!!If you stumble, get back up. 
What happened yesterday, no longer matters.
Today is another day to move closer to your GOAL!!