Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Open Directory fails to migrate with Lion Server upgrade

I had a completly up-to-date version of Snow Leopard with a master Open Directory instance.

Somewhere through the Lion Server installion I was told that some services had failed to be configured (yellow warning triangle).


Once the system was rebooted, I found that I only had an local user directory with an Administrator account. Apparently it had remembered by password for this account as I could log in. I attempted to create a new Open Directory master with various tools, but each time this fails. The included Server tool tells me that the machine is already configured for Open Directory and won't let me start over. That would be fair enough if I could get to whatever it thinks in the existing configuration.


I downloaded the remote server tools and tried those. The Open Directory service is shown as not running, and the only thing you can do is attempt to change the configuration to "master" or one of the other two. Trying to recreate a master here causes an error that the networking isn't configured properly (failed to resolve a hostname). As far as I can tell the basic networking is set up just fine (though this machine's DNS service isn't running, but that's OK).


So, I don't know how to go forward to recover my old Snow Leopard Open Directory database, and I can't start over with a new database. Instead, for now, I have created new local accounts and had this reconnect with the local home directories on the machine. This worked fine (though I had to chown the contents of a few home directories to resync with user IDs).


Hopefully my Lion installation is OK besides this issue with OD. My wikis and other things seem to be working fine. Still, it's not great for one's confidence when (AFAIK) an ordinary non-hacked or customised Snow Leopard server doesn't migrate properly to the new version.


Maybe someone has some clues that might yet help me to get my old OD database back, and indeed allow the new Lion OD service to run again?

PowerMac, Mac OS X (10.7)

Posted on Jul 20, 2011 3:10 PM

Reply
29 replies

Jul 26, 2011 8:30 AM in response to jeke

Since experiencing that OD problem, I restored my server to 10.6.8 from a Time Machine backup. Then, I shut down all client Macs, hooked up a screen, keyboard and mouse to my server and tried the upgrade again. This time OD upgraded without hickups and 10.7 is working just fine.


Apple is indeed on the case. Bryan contacted me as well asking for a log from the failed installation. I'm very impressed with Apple that they do read these forums and work on diagnosing these problems.

Jul 27, 2011 8:40 PM in response to jeke

Just upgraded today, unfortunately time machine never worked on 10.6 server for me so I am stuck with the OD migration fault until the engineers at apple come up with a fix, hopefully soon. I guess my log is intact if anyone wants to contact me for the upgrade failure log for OD. Other than that the upgrade seems to have gone ok.

Jul 29, 2011 9:30 PM in response to Flashwalker

I was taking the tack of installing a clean copy Lion Server on an external drive on my MacBook Pro, while leaving Snow Leopard Server on my Xserve alone. I was then going to copy the settings of all services on the Xserve over to the MacBook Pro. Then I was going to clone the external drive to the OS drive on the Xserve.


I just successfully migrated the DNS settings using the Server Admin 10.7 utility. I had it connect to both the Xserve and the MacBook Pro running Lion Server. I exported the Xserve DNS settings (Server->Export-Service Settings...) to a file on the local desktop and then imported the resulting PList file in the same manner.


This approach has never worked with an Open Directory database. Instead, when I have had to do this sort of thing before, I created an Open Directory Replica on the target server and then promoted it to an Open Directory Master. This preserved all user information in the Open Directory Database.


In the case of my attempted Snow Leopard Server to Lion Server this failed. The Open Directory Setup Assistant running on Lion Server rejects the credentials of the Directory Administrator on the Xserve running Snow Leopard Server.


I subsequently tried archiving the Open Directory database on the Xserve and restoring it from the resulting archive on the Lion Server. This procedure concludes without transferring any users into the Lion Server Open Directory database.

Aug 14, 2011 3:39 PM in response to the_case

Same here. We have worked all weekend and still no luck. We found that we cannot Log into the "Worgroup Manager" It is refusing to accept our password. Checking it in the Keychain Access List - all is there and the password is correct. Deleted the Keychain and recreated another one - still no luck. Anybody has got any idea. Apple could not help so far...

Aug 15, 2011 4:26 PM in response to thepod7

Fix migration? Not really. Maybe wait for v10.7.1?



Workaround? Sorta.


I had to use the old Server Admin interface and restore the orignal OD stuff from a backup. Now, all the information is in there, and accessible from the old Workgroup Manager tool, but don't expect the users or groups show up in the new Server application on the server (except for a split second when you first open it).

Aug 23, 2011 4:31 AM in response to the_case

I tried your workaround, all my info appears to be there in the open directory however it is not perfect. Shortnames do not work, I must use the full name for any connection. This is not a very viable solution for me, as I have several accounts that are used in cron jobs, and this would require me to edit all my scripts.

Aug 27, 2011 1:46 PM in response to applemjackson

To those that have been contacted by apple about this Open Directory issue, did they offer any incite to a work around or eta for a fix?


Today, I decided to give a fresh install of 10.7.1 with migration and an upgrade from 10.6.8 to 10.7.1, however both failed in similar fashion. Even worse using the upgrade process this time completely killed my DNS and wouldn't even let me try and set up an Open Directory Master.

May 15, 2012 7:47 PM in response to Kimbakat

User uploaded fileIt's already May 2012...and the directory issue still is happening. I'm having Profile Management configuration issues. When I click Configure..it stalls while Reading the settings...wheel just spins while "Reading settings" It won't accept a self signed certificate AND when I try to create a replica directory...the spinning wheel spins and never finishes in the "verifying" state. Wheel just keeps splinning.

Jul 3, 2012 4:56 AM in response to Flashwalker

Hi!

Just wanted to chip in on this subject, thougt don't get your hopes up, cause I don't have a solution.


We're now on 10.7.4 and still the same issue! I've heard that this actually has worked for some 🙂. But I'm stuck too. some input:


When restoring an OD backup using the GUI, no errors are shown. you end up with a diradmin account you can't log in to even though you know the password is correct, since you have used it on your old server for years. exporting from old server and restoring to new server, this password is no more.... No OD users show up in Server.app or just momentarily then open ing the app. Same thing with groups.


In WGM, all users are visible and manageable too, provided you BEFORE exporting the OD db assigned another account FULL rights on the Directory. Then this user can be used to manage users and groups in WGM, because the password remain the same?!?!



Still no users in Server.app though 😟. haven't tried Profile Manager or if accounts and groups show up there...


When restoring the OD db using slapconfig -restoredb <path-to-db> you see more what's happening. Every time the same event happens:

2012-07-03 11:44:18 +0000 Configuring Kerberos server, realm is DIRECTORY.DOMAIN.COM

2012-07-03 11:44:18 +0000 command: /usr/sbin/kdcsetup -f /LDAPv3/ldapi://%2Fvar%2Frun%2Fldapi -w -a directory.pool.se$ -p **** -v 1 DIRECTORY.DOMAIN.COM

2012-07-03 11:44:19 +0000 Contacting the Directory Server

Authenticating to the Directory Server

Creating Kerberos directory

Creating KDC Config File

Creating Kerberos Database

Creating new random master key

createInitialPrincipal: Changing password failed: 10001CreateKDCDatabase: error creating initial princ for krbtgt: 10001

Could not create KDC Database: 78Failed to configure error = 78

_createKerberosMaster: kdcsetup failed with code 78

2012-07-03 11:44:19 +0000 Error creating KDC


I think this is the reason for it all, the botched credentials that seemingly cannot be changed anywhere, which Server.app uses to see the directory users and groups. Remember, when creating the OD master, you put in credentials for diradmin, and it get overwritten on restore, but with what a heck what, and how do we change it?


As I said before, I managed to administer directory users through WGM and another user with full privs on the directory, but still I cannot change the diradmin user's password giving an error about permissions. Deleting the account, recreating it wiht the same user id, 1000, and old password doesn't change a thing unfortunately.....I suspect the GUID of the account is different.


Anyhow, maybe this sum up of my findings might point some of you in the right direction to solve this issue for us?


Hope I made some sense in my ramblings since I'm not a native English speaker....


Looking forward to your take on this!


/Hasse

Open Directory fails to migrate with Lion Server upgrade

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.