buckster

Q: 10.6.8 to Mavericks Server Upgrade loses Open Directory Users

Hi,

 

I have an OpenDirectory Master running OSX Server 10.6.8. An upgrade to Mavericks 10.9 has just failed.


The server has about 50 OD users and passwords need to be retained across the upgrade. Apart from OD, the only other active service is AFP file sharing.

 

DNS is good forward and back as per this article: OS X Server: Steps to take before upgrading or migrating the Open Directory database

 

I followed these Apple guidelines for server migration: OS X Server: Upgrade and migration from Lion Server or Snow Leopard Server.

 

I cloned the boot drive, booted from the clone, upgraded to Mavericks, then installed the Mavericks Server app.

 

On opening the Mavericks Server app "Configuring services' showed for 5 minutes, but then an error message appeared. I did not record it exactly, but it was something like, "There was an error configuring the server. Certificate not valid!".

 

I was able to continue through the error but on opening Server app there were no OD (local/network) users showing. Authentication was not happening.

 

I had underestimated the time to get the installation done and I had used up the window of downtime I had booked - I did not have much time to troubleshoot. So, I cut back to the original hard drive and the server is back to 10.6.8 again.

 

Can anyone point me in the right direction to find out what may have gone wrong? How can I get my users into 10.9 Server?

 

Many thanks,


b.

Posted on Aug 8, 2014 4:58 PM

Close

Q: 10.6.8 to Mavericks Server Upgrade loses Open Directory Users

  • All replies
  • Helpful answers

Page 1 Next
  • by Linc Davis,

    Linc Davis Linc Davis Aug 9, 2014 1:26 PM in response to buckster
    Level 10 (207,995 points)
    Applications
    Aug 9, 2014 1:26 PM in response to buckster

    As a last resort, export the users. Upgrade. Import. Passwords will not be preserved.

  • by Grant Bennet-Alder,

    Grant Bennet-Alder Grant Bennet-Alder Aug 9, 2014 3:05 PM in response to Linc Davis
    Level 9 (61,073 points)
    Desktops
    Aug 9, 2014 3:05 PM in response to Linc Davis

    Linc Davis advice is spot-on, as usual.

     

    There seem to be dozens of sub-databases in the LDAP database. A problem in any of them seems to derail the entire conversion process. I tried a straight conversion and was also disappointed that there were unresolved issues, and it meant that the conversion failed.

     

    So I did the export route using WorkGroup Manager, and exported four sets:

     

    Users

    Groups

    Computers

    Computer groups

     

    go to the appropriate pane (e.g., Users) and Select All, then choose Export, and give it a name (probably with an embedded date in case you need to do it again later)

     

    Then use 10.9 WorkGroup Manager (available as a separate download) to Import.

     

    When re-imported, everything worked just fine (except the passwords, which cannot be carried forward using this method). I did have to manually enable at least one service, such as File Sharing service in Server [admin], or users showed up as "not allowed" [to log in].

     

    --------

    This entire process of getting Server 3 to work is fraught with peril, and everything converges on ONE diagnostic, "Network users can't log in". Which means you blew it, but provides no additional information about WHERE you blew it.


    There do not appear to be any magic bullets. It is just a tough slog. Users who reported success after failing the first time reported they returned to fundamental principles and did all the steps over, in order, to attain success.

  • by buckster,

    buckster buckster Aug 11, 2014 7:40 AM in response to Linc Davis
    Level 4 (2,814 points)
    Apple Watch
    Aug 11, 2014 7:40 AM in response to Linc Davis

    Hmmm.. Thanks for the advice.

     

    I have a lot of dependent services (desktop phones, database servers, 3rd party firewall, etc) and really need to keep these passwords.

     

    I looked through the migration logs and this looks to be the problem line:

     

    Aug  8 18:48:35 od.mycompany.com serveradmin[3840]: -[AccountsRequestHandler(AccountsOpenDirectoryHelpers) openLocalLDAPNodeIfNeeded]: dsLocalLDAP = (null), error = Error Domain=com.apple.OpenDirectory Code=2100 "Connection failed to node '/LDAPv3/127.0.0.1'" UserInfo=0x7fc319701b80 {NSLocalizedDescription=Connection failed to node '/LDAPv3/127.0.0.1', NSLocalizedFailureReason=Connection failed to the directory server.}

     

    Can anyone give me a pointer as to what to look at to fix this?

     

    Thanks,

     

    b.

  • by buckster,

    buckster buckster Aug 11, 2014 8:10 AM in response to buckster
    Level 4 (2,814 points)
    Apple Watch
    Aug 11, 2014 8:10 AM in response to buckster

    FWIW, Open Directory error code 2100 is kODErrorNodeConnectionFailed.

     

    Could this have been a password thing?

     

    I used the System Admin password when opening Server Admin for the first time, rather than the Directory Admin password. Would using the Directory Admin password make a difference?

     

    b.

  • by Grant Bennet-Alder,

    Grant Bennet-Alder Grant Bennet-Alder Aug 11, 2014 8:40 AM in response to buckster
    Level 9 (61,073 points)
    Desktops
    Aug 11, 2014 8:40 AM in response to buckster

    User experience is going to be very thin on this issue.

     

    Your best bet (when you have an idea like this) is simply to try it and see.

  • by Linc Davis,

    Linc Davis Linc Davis Aug 11, 2014 10:11 AM in response to buckster
    Level 10 (207,995 points)
    Applications
    Aug 11, 2014 10:11 AM in response to buckster
    Connection failed to node '/LDAPv3/127.0.0.1'

    That's invalid. It should be the IP address of the interface the server listens on. I suggest you restore everything and start over. Make sure the OD master is set up correctly before you attempt to migrate. I never used 10.6 Server so I can't give you specific instructions. There's another forum here for that.

  • by buckster,

    buckster buckster Aug 11, 2014 1:26 PM in response to Linc Davis
    Level 4 (2,814 points)
    Apple Watch
    Aug 11, 2014 1:26 PM in response to Linc Davis

    Do you appreciate that this server being upgraded is the OD Master?

     

    It's authenticating clients, plus offering Dierctory Services to at least six 3rd party platforms.

     

    I think it has been setup correctly for years without giving us problmes:


         • Addressing resolves correctly forward & reverse


         • sudo changeip -checkhostname returns "The names match. There is nothing to change."


    Not sure what else to check.


    b


  • by Grant Bennet-Alder,

    Grant Bennet-Alder Grant Bennet-Alder Aug 11, 2014 2:04 PM in response to buckster
    Level 9 (61,073 points)
    Desktops
    Aug 11, 2014 2:04 PM in response to buckster

    On the Server computer, check this:

     

    UsersGroupsLogin Options.png

     

    Do you have exactly ONE Network Account server listed ONLY by fully-qualified Domain Name (not by IP Address) ?

  • by buckster,

    buckster buckster Aug 11, 2014 2:11 PM in response to Grant Bennet-Alder
    Level 4 (2,814 points)
    Apple Watch
    Aug 11, 2014 2:11 PM in response to Grant Bennet-Alder

    No I don't.

     

    Mine shows 'Local Server' as follows:

     

    Untitled.png

     

     

    Thanks,

     

    b.

  • by Grant Bennet-Alder,

    Grant Bennet-Alder Grant Bennet-Alder Aug 11, 2014 2:35 PM in response to buckster
    Level 9 (61,073 points)
    Desktops
    Aug 11, 2014 2:35 PM in response to buckster

    I am pretty sure you need to use Directory Utility and put in the FQDN, and make sure your search path contains:

     

    LDAPv3/your_domain

     

    In any case, it's like chicken soup when you're sick: "It can't hurt!"

  • by buckster,

    buckster buckster Oct 29, 2014 4:35 PM in response to buckster
    Level 4 (2,814 points)
    Apple Watch
    Oct 29, 2014 4:35 PM in response to buckster

    Hi All,

     

    I'm delighted to report this had a happy ending when I used MIgration Assistant in Yosemite.

     

    I was able to upgrade my 10.6.8 Mac Mini to server on 10.10 following the migration instructions here:

     

    OS X Server: Upgrade and migration from Lion Server or Snow Leopard Server

     

    After the migration I did not have an OD entry in the Keychain so I followed these directions:

     

    OS X Server: Steps to take before upgrading or migrating the Open Directory database

     

    After installing Server app from App store I used the OD username and password I created above to proceed with the server setup.

     

    Took less than 5 minutes and my OD users AND PASSWORDS from 10.6.8 are now in 10.10.

     

    Cheers,

     

    b

  • by jkuzniar,

    jkuzniar jkuzniar Mar 12, 2015 10:37 AM in response to buckster
    Level 1 (0 points)
    Mar 12, 2015 10:37 AM in response to buckster

    @buckster - I'm running into the same issue here trying to upgrade my v10.6.8 OD Server to 10.9.5 (heck, I'd consider 10.10.2 at this point.) My users' passwords have not made it over in the migration. I have tried both installing Mavericks, then migrating users, and installing Server.app, and cloning the 10.6.8 HD and running Maverics upgrade and the installing Server.app with the same outcome. I tried adding a keychain entry for the OD service as described above. What were the exact steps / order you did things in to get everything (including passwords) to migrate. (Tying to avoid mutant here, lol.) - Thanks

  • by buckster,

    buckster buckster Mar 12, 2015 11:33 AM in response to jkuzniar
    Level 4 (2,814 points)
    Apple Watch
    Mar 12, 2015 11:33 AM in response to jkuzniar

    Sorry - you're screwed.

     

    See Failed to authenticate & Unable to synchronize login time

     

    You can migrate the passwords but if you have 10.9 or 10.10 clients you will hit a problem because no certificates for clients were created on 10.6 server.

     

    Clients using 10.9 and above requires certificates when authenticating against OD.

     

    After working for several hours with Apple Support I ended up exporting users from 10.6, importing to 10.10 and recreating passwords.

     

    HTH & saves you some time.

     

    b.

  • by jkuzniar,

    jkuzniar jkuzniar Mar 12, 2015 12:27 PM in response to buckster
    Level 1 (0 points)
    Mar 12, 2015 12:27 PM in response to buckster

    Hey, thanks for the quick reply on this. How gross. Only thing I'm wondering is, I opened up the full FreeRADIUS install on the 10.6.8 OD server, so I could auth my Wi-Fi users to different APs (other than Airports.) Used Jedda's how to as a guide.

     

    I'm running running EAP-TTLS, so that process adds a server-generated cert to the client the first time they authenticate to the RADIUS server. Wondering if that is enough to cover my tracks regarding client-side certificates? I'm only looking at maybe 60 users so its not the end of the world, but still very annoying as I'll have to track every user down (you are all too familiar it seems.)

Page 1 Next