When using Server Admin to migrate from NetInfo to LDAP, the migration process may stall at the data import phase.
Symptom
The progress bar in Server Admin fills about two thirds of the way, then stops. The text "Data Import" appears below the progress bar.
Products affected
Solution
First, execute these commands in Terminal:
$ sudo killall slapconfig $ sudo killall slapadd $ sudo slapconfig -destroyldapserver $ sudo rm /var/db/openldap/migration/*.ldif
Next, follow these steps in Directory Access to go back to the original NetInfo configuration:
Back in Terminal, execute this command:
$ nicl .. read /
Look at the value of the master property. It will be <host>/network. Now execute this command:
$ hostname
If the value returned from "hostname" does not match the <host> part of the master property, do this in Terminal:
$ sudo hostname <host>
This will temporarily sync the host names.
Now you should migrate again and restart the server.