What is the impact of destroying and re-creating from scratch the Open Directory Master?

In order to try and solve some nasty issues hat I have since upgrading to OS X Server 3,0 I am considering completely destroying my OD Master and re-creating the users and groups from scratch. Before doing so (of course I will have multiple backups) I would like to understand:


1. When re-creating the users and groups is it sufficient to use the same ‘Unix’ groupid and userid numbers or do I also need to use the original GeneratedUIDs (is that even possible)? Are there any other aspects of the users/groups that I need to be sure to preserve?


2. Will there be any impact to services and their data from doing this? Specifically, I have users with data in Mail, Calendar, Contacts and the WiKi. Will they still be able to access their data after the OD destroy/re-create or is that data somehow tied to more than just the username (e.g. does it use the user/group UUID or indeed any other UUID from OD)?


3. Will there be any impact to OS X clients bound to the OD? Should I unbind them before destroying and re-bind them afterwards? Will there be any negative impact on the network users who log in via these systems (they all have ‘mobile’ accounts which do *not* sync to the server - all their data is local to the client)?


Thanks in advance for any advice especially from anyone who has gone through this process.


Chris

Posted on Jan 15, 2014 12:58 AM

Reply
11 replies

Jan 15, 2014 1:56 AM in response to ChrisJenkins

Hi Chris


I had to destroy and recreate my 10.9.1 open directory 3 times! i would suggest unbinding everyone first, use different passwords for your newly created users, the calendar data appeared to remain intact, although to be safe i would export the calendar data from your clients first. Im not an experienced user, far from it, i did try to get some help on here but i had 0 replies to any of my posts concerning the server so i had to bite the bullet, proper information other than "switch it on or off" seems to be very rare for mavericks server, its working ok for me now, although there are still some issues that i will post on here in the vain attempt to get a solution.


Best of luck


Rob

Jan 15, 2014 3:07 AM in response to robfoster34

Thanks for replying Rob. I agree that detailed knowledge on OS X Server (especially the Mavericks version) seems thin on the ground :-(


I have 20 users defined in OD but only 4 of them correspodn to real physical users with data etc. to be preserved.


When you re-created the users did you try and preserve their UUIDs or just the unix userid/groupid values?


Did you users have any data in any other servcies other than calendar? If so did it survive the destroy/re-create?


I'd be interested to hear about your other issues - my setup is working okay apart from being unable to create new OD users or reset the password of existing OD users and I think this is due to some OD internal problem; OD in Server 2.2 seemed okay but the new version seems more pernickety about something and seems to have caused this problem. I've seen many referencs to DNS issues but my DNS is all setup correctly; frankly I am at a loss as to what to do to try to fix my issue other than a full tear-down and re-create :-(


Sadly it seems there is no real way to get support for this product which is a shame as it is basically very good and with a bit of in depth support could be much better still.

Jan 15, 2014 3:33 AM in response to ChrisJenkins

I didnt even think to preserve the uuids, i just trashed and recreated the OD, the reason i did that was because i had 3 users that i couldnt bind to the server, or login for services, when i went to change the password for the user, , it was unsuccesful, ie enter the new password press ok it just stayed in the password window, didnt go back to the users window, the second attempt started ok, but i was using the same passwords as i had been for the first attempt, when i got to the final user i had the same problem, on my third attempt i used different passwords and it seems ok, i have a few issues in that when i go to bind a user, some users give the option of authenticated binding, some dont, i know i can put a command in terminal to force authenticated binding, but as its set now on the default it should ask each user if they want to put there passwords in.


So i guess that these issues could be something to do with uuids, i think the more fresh the numbers are the better.


The day after i recreated the OD for the third time, there was a server app update to 3.0.2 that stated there was improvements to clients logging in, so i dont know if that has cured my problems or not, are you 10.9 or 10.8?

Jan 15, 2014 3:40 AM in response to robfoster34

I'm on OS X 10.9.1 (server and clients) and Server 3.0.2 but this was upgraded from 10.8 / Server 2.2.2 -> OS X 10.9.0 / Server 3.0 => OS X 10.9.1 / Server 3.0.2...


The problem that I have is the exact one you mention where I cannot change the passwords for existing OD users plus I cannot create new users as it will not set their passwords (the user gets created but the password is not set).


I'm not familiar with 'binding users', what exactly do you mean? I normally bind client machines to the OD server and then the network users log in there (being authenticated via OD). Is that the process you are talking about? I have never seen any prompt relating to authenticated binding versus anything else; can you elaborate?


It's good to know that the password issue seems to have been resolved by the destroy / re-create. Are you also able to create new users okay?

Jan 15, 2014 4:02 AM in response to ChrisJenkins

Mine was a clean install from scratch, i didnt fancy upgrading from 10.6.


When i say binding user, i mean go to system preferences on the client machine > users and groups > click the padlock to login > enter admin password > Click login options > click join > then the name of your server should come up in the drop down box , select it then you should be prompted to trust it, then you should have an area to put in the usermame and password, or to bind to the server anonymously, i dont get that option on all users when i should, basically authenticated binding allows you as the server admin to control the prteferences on the client machines should you wish, even to the extent of what appears on the dock or what software they are allowed to use. That would have to be done in WGM though.


Having said that all my services (calendar, messages and contacts all work without binding, so make of that what you will!)


Im able to create new users without a problem now, all i can say is that it fixed it for me, i really dont know the ins and outs of a ML upgrade though, so i cant guarantee anything.


I did try to archive the od first then re promote it to the master, that might be worth trying first, i read somewhere that doing that rekerberizes it, it didnt fix it for me though.

Jan 27, 2014 1:27 AM in response to robfoster34

Hi Chris

How did you get on?, believe it or not my open directory has gone again, it happened when i had to reboot the server, it went into a grey screen for about 15 mins, i did a force shut down, on restarting OD wouldnt stay on, i had to put a command into terminal to trash the ldap, i googled it, i didnt want to do this but had no choice as nothing od related worked, this cleared od and i put all the users in again, using the same password this time, and its up and running again, but, i cant login to WGM as diradmin, and i get ssl messages and errors when trying to bind clients, so im wondering if there is a need to flush out the uuids, do you know how to do this?


Cheers


Rob

Jan 27, 2014 1:48 AM in response to robfoster34

Hi Rob,


I have solevd my issue and I did not need to destroy / re-create the Open Directory. See my post here https://discussions.apple.com/thread/5785838 for all the gory details. The long and the short of it was that my problems all came from a point in the past when I changed the hostname of my server after I had created the Open Directory master. Seems like that is a very bad idea! Based on what I found it seems liek any small flaw in DNS forward and reverse name resolution can also cause similar issues. I don't knwo if either of thsoe may apply to your situation?


As part of troubleshooting my issue I actually created a 'replica' of my server setup on another machine includingthe OD and associated users and groups. What I found was that many services (certainly mail, calendar and contacts) depend completely on the OD users and groups UUIDS. So if you wish to preserve user's data across an OD destroy and re-create it is vital that you carefully note for each group its Unix GID and its OD UUID and for each user their Unix uid, primary group id and UUID. When you are re-creating your OD master, as you create each group, use Directory editor to change its UUID to the original value. Similarly for Users. If you don't then users will no longer have access to any existign Mail, Contacts or Calendar data afterwards!


HTH,


Chris

Jan 28, 2014 4:07 AM in response to ChrisJenkins

Hi Chris


Thanks for the reply, im glad yours is working now.




Ive done a sudo changeip -checkhostname in terminal, and that is all successful, so im guessing my dns settings are correct, so i have again retrashed the open directory and recreated from scratch (only took me 2.5 hours last night), all seems to be working for now, im sure that there is some kind of data left over somewhere from my various attempts to make this work, all i have left to try if it goes again is reset sever app and then a complete fresh install, neither of which i want to do, i am gradually moving away from apple services btw, im running kerio, which takes care of mail and contacts for me, (very well i might add) it also can do messaging and calendars, so who knows i may even migrate over to that if the problem shows itself again, and do away with open directory altogether, which will leave my server just doing DNS and DHCP and file sharing, maybe it can cope with that, just as a side note, im using kerio mail, which allows you to share mailboxes across the network, this works fantastically well in every mail client apart from apple mail! which takes forever to show the boxes and build the messages, thunderbird is instant, just goes to show mavericks is a long way off being finished, roll on 10.9.2


Cheers for now


Rob

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

What is the impact of destroying and re-creating from scratch the Open Directory Master?

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