Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

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

Effect of deleting & recreating Open Directory on Users

Server 4.0.3 Mac OX 10.10.1


I'm having trouble creating a Local Network User (I can't). My Open Directory says its running "available", users are able to login, connect to files, get email and so on. It also states it "unable to load replica list". I've searched all about this and can't find a definitive answer (I haven't created a replica in any case) so I think the easiest thing would be to destroy the directory and recreate my Users. I only have a few so this won't be too bad.


If I delete a User what effect does this have on their email? My users have IMAP email on the server. If I delete them and then recreate them will they still be able to connect and see messages on the server? Or will their mailboxes be destroyed along with the users?


Thanks!

Posted on Jan 30, 2015 5:32 AM

Reply
3 replies

Jan 30, 2015 3:14 PM in response to David Gordon

Many Open Directory problems can be resolved by taking the following steps. Test after each one, and back up all data before making any changes.

1. The OD master must have a static IP address on the local network, not a dynamic address. It must not be connected to the same network with more than one interface; e.g., Ethernet and Wi-Fi.

2. You must have a working DNS service, and the server's hostname must match its fully-qualified domain name. To confirm, select the server by name in the sidebar of the Server application window, then select the Overview tab. Click the Edit button on the Host Name line. On the Accessing your Server sheet, Domain Name should be selected. Change the Host Name, if necessary. The server must have at least a three-level name (e.g. "server.yourdomain.com"), and the name must not be in the ".local" top-level domain, which is reserved for Bonjour.

3. The primary DNS server used by the server must be itself, unless you're using another server for internal DNS. The only DNS server set on the clients should be the internal one, which they should get from DHCP if applicable.

4. Only if you're still running Mavericks server, follow these instructions to rebuild the Kerberos configuration on the server.

5. If you use authenticated binding, check the validity of the master's certificate. The common name must match the hostname and domain name. Deselecting and then reselecting the certificate in Server.app has been reported to have an effect in some cases. Otherwise delete all certificates and create new ones.

6. Unbind and then rebind the clients in the Users & Groups preference pane. Use the fully-qualified domain name of the master.

7. Reboot the master and the clients.

8. Don't log in to the server with a network user's account.

9. Disable any internal firewalls in use, including third-party "security" software.

10. If you've created any replica servers, delete them.

11. If OD has only recently stopped working when it was working before, you may be able to restore it from the automatic backup in /var/db/backups, or from a Time Machine snapshot of that backup.

12. As a last resort, export all OD users. In the Open Directory pane of Server, delete the OD server. Then recreate it and import the users. Ensure that the UID's are in the 1001+ range.

If you get this far without solving the problem, then you'll need to examine the logs in the Open Directory section of the log list in the Server app, and also the system log on the clients.

Jan 31, 2015 7:40 AM in response to David Gordon

Only the OD service data will be affected, nothing else. If you reimport the users from exports, they should have access to their data in other services. If you recreate them from scratch, maybe not.


Obviously you're going to back up the server before doing anything, and I suggest that you also export all calendars, contacts, and mailboxes on the clients in case something goes wrong.

Effect of deleting & recreating Open Directory on Users

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