You can slapcat the old server ldap and delete everything except the user/alias records then slapadd those to the new server. The encrypted password will be in there as well and it will come over just fine.
Pros: gets everything but the actual data, including account preferences etc
Cons: there are a few things to watch for:
- if the new server has a different name you'll need to edit that in several places in each record
- if the version difference is large then there may be some records that are different. Might be a good idea to compare the ldap record for a fully provisioned test user from the new server and adjust the old records accordingly before importing them.
But no worries if you screw up, just delete them and try again.
