Dear,
How could we upgrade our bdb to mdb using slapadd..? ----
*Thanks & Kind Regards,* Saurabh LAHOTI.
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
done...
On Jun 2, 2018, at 17:22, Saurabh Lahoti saurabh.astronomy@gmail.com wrote:
Dear,
How could we upgrade our bdb to mdb using slapadd..?
Thanks & Kind Regards, Saurabh LAHOTI.
Hey saurabh,
More exact steps
_https://www.openldap.org/lists/openldap-technical/201411/msg00035.html_ //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 dc=example,dc=com # 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
Thanks
Amit
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
done...
On Jun 2, 2018, at 17:22, Saurabh Lahoti saurabh.astronomy@gmail.com wrote:
Dear,
How could we upgrade our bdb to mdb using slapadd..?
Thanks & Kind Regards, Saurabh LAHOTI.
Saurabh, hello.
On 4 Jun 2018, at 19:56, 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
As a parenthesis to Frank's advice, I'll mention that this is good advice not just for the sort of significant configuration change you're talking about. The way I manage all such configuration changes, major and minor, is by keeping the server's config in a version-controlled slapd.ldif, and making almost no configuration changes to the running system.
Thus the way I make config changes is:
* stop slapd (leaving the mirrors running) * slapcat >dump.ldif (all the non-configuration data) * nuke-and-reinitialise.sh (deletes slapd.d; copies into place slapd.ldif, certificates, and some schema mods; then calls slapadd to load slapd.ldif into slapd.d) * slapadd dump.ldif * start slapd
That way, I know exactly what configuration is running _and_ I can test _exactly_ the modified configuration in a VM, beforehand.
Best wishes,
Norman
openldap-technical@openldap.org