-3

I need to upgrade apacheds from 2.0.0-M19 to 2.0.0-M23. Kindly share steps or documents. Thanks!

closed as off-topic by HopelessN00b, Daniel, Sven Jun 2 '17 at 19:08

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

0

Before you do anything you should export the existing LDAP database to an LDIF file!

Export:

ldapsearch -h localhost -p 10389 -D uid=admin,ou=system -w secret -LLL > ldap-export.ldif

Then import on the new server it in a similar fashion:

ldapmodify -h localhost -p 10389 -D uid=admin,ou=system -w secret -a -f ldap-export.ldif

I've always done the "upgrade" by building a clean box, installing the new version of ApacheDS to it and then re-importing the data. The main thing to be sure of is that you get all (if any) schema changes but do not overwrite any conflicting schemas in the new version.

The "-a" switch means ADD to the existing data (instead of replace it) so if there is a conflict it will tell you. Expect to do this a few times until you get it right :)

  • Since the apacheds will be running on a different box. How will the new box will be able to connect to old box and re-import the data? – omar jalloh Jun 2 '17 at 20:20
  • You will need to copy the file to the new server before importing it (and point clients to the new server) – TheFiddlerWins Jun 5 '17 at 17:14
  • [root@ip] # ldapsearch -h localhost -p 10390 -D uid=admin,ou=system -w secret -LLL > ldap-export.ldif -bash: ldapsearch: command not found – omar jalloh Jun 5 '17 at 17:44
  • command 'ldapsearch' did not work for me. Kindly advice – omar jalloh Jun 5 '17 at 17:46
  • install the ldap utilities. You should be googling this question, not asking it here... – TheFiddlerWins Jun 7 '17 at 15:19

Not the answer you're looking for? Browse other questions tagged or ask your own question.