New Xserve setup - rjacobw

From mathit

Jump to: navigation, search

[edit] Migrating the LDAP directory from one Xserve to another

Migration of most items stored in the LDAP directory can be done explicitly through Workgroup Manager by simply exporting one directory to an ldif file and importing that file on the new server, although this is not recommended due to certain limitations of Workgroup Manager. Instead, it is much more efficient to export the entire LDAP tree via the command line. To do this, follow these intructions:
  • First login into the old server and run the following command:
ldapsearch -LLL -h ldap.math.lsa.umich.edu -x -b 'dc=math,dc=lsa,dc=umich,dc=edu' -s base >> out.ldif
NOTE that ldapadd does not modify previous entries, so the best method is to start with a clean Open Directory tree. This can be done using Server Admin, and selecting the new server to be a LDAP Directory Master.
  • Next, move out.ldif to the new server (perhaps using scp).
  • Login in to the new server, and run kinit as the directory administator in order to authenticate against the local kerberos system (NOT UM kerberos).
  • In order to import the full open directory tree into the new LDAP directory server, run the following command:
ldapadd -acv -h localhost -f out.ldif
  • Next use Workgroup Manager (or an appropriate LDAP tool) to check that all of the information was properly imported, including mac addresses and users belonging to each group.
That is all that there is to migrating mac addresses to a new LDAP directory server hosted by an Xserve.
Personal tools