I need to export and import users between Two different versions of OpenLDAP, Old openldap version is 2.42 and new one has version 2.44. Both the openldap servers are setup on Ubuntu.

In this answer ldap export and import they have used slapcat/slapadd utilities, Will the same be applicable in my case as well? Because they have exported schema files as well.

I can export users using ldapsearch and add them on new openldap using ldapadd. But when i export users using ldapsearch the userPassword attribute is in base64 encoded format how do i deal this that?

I just need to export users from older version of my openldap server please give suggestions.


You can restrict what you export with slapcat by using the -H flag. You are not required to export everything.

Alternatively export your users with ldapsearch with a similar filter.

LDAP: backup with slapcat vs ldapsearch

  • But when I export users with ldapsearch the userPassword attribute value is in base64 encoded format how to handle that? or it's fine? – Vishal Apr 17 at 8:51
  • That should be fine – HBruijn Apr 17 at 8:54
  • Okay I'll try that..Thanks – Vishal Apr 17 at 8:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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