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.

Open Directory Configuration Issue

Hi

Network Topology - 2 Mac connected to a switch. 1 will act as a server an other as a client.Both has Static ip as below.

Please refer the attachment on the Open Directory Configuration Error.

Any prerequisite to be configured ?

When configuring Open Directory do i need to be online? Please Advice me on this issue.


Client side Configuration.

.....................................................

IP address - 192.168.1.2 /24

Default Gateway - 192.168.1.1

DNS IP - 192.168.1.1


Server side Configuration.

.................................................


IP address 192.168.1.1 /24

Default Gateway - 192.168.1.1

DNS IP - 192.168.1.1



User uploaded file

Posted on Nov 22, 2015 5:24 AM

Reply
5 replies

Nov 22, 2015 8:31 AM in response to COMINTO

Since it looks like you are building this in isolation, I noticed that you do not have DNS enabled. DNS is a foundation requirement for many services in OS X Server. Open Directory is one of those. Define your DNS name space first. Set all machines to use that DNS server. Then go to your server (first icon in Server.app's sidebar) and select the Overview tab. Confirm that the host name is the fully qualified host name of your server. If it is not, press the Edit Host Name... button and run through the assistant to fix DNS through all services.


Also, you can watch the system.log and opendirectoryd.log during the creation of the OD Master.


Hope this helps.


Reid

Apple Consultants Network

Author "El Capitan Server – Foundation Services" :: Exclusively available in Apple's iBooks Store

Author "El Capitan Server – Control & Collaboration" :: Exclusively available in Apple's iBooks Store

Author of Yosemite Server and Mavericks Server books

Nov 22, 2015 11:44 AM in response to COMINTO

Many Open Directory problems can be resolved by taking the following steps. Please test after each one that you haven't already taken, 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. If you have accounts with network home directories, make sure the URL's are correct in the user settings. A return status of 45 from the authorizationhost daemon in the log may mean that the URL for mounting the home directory was not updated after a change in the hostname or in the file-sharing protocol (from AFP to SMB or vice versa.) If the server and clients are all running OS X 10.10 or later, directories should be shared with SMB rather than AFP.

5. Follow these instructions to rebuild the Kerberos configuration on the server.

6. 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.

In the case of a self-signed certificate, create a trust profile in Profile Manager and deploy it on the clients. On the server, you may need to create the folder

/etc/openldap/certs

and put a copy of the server's certificate in it; for example:

/etc/openldap/certs/server-name

Also add a directive to the file

/etc/openldap/ldap.conf

of the form

TLS_CACERT /etc/openldap/certs/server-name

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

8. Reboot the master and the clients.

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

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

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

12. 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.

13. If there are slapd errors in the log, try the following steps.

Turn off Open Directory in the Server app.

Enter in a shell:

cd /var/db/openldap

sudo -s

db_recover -c -h authdata

db_recover -c -h openldap-data

Turn Open Directory back on.

14. Reset the password policy database:

sudo pwpolicy -clearaccountpolicies

15. As a last resort, export all OD users. In the Open Directory pane of Server, delete the OD server. In some cases, you may have to use the shell to delete the server. Then recreate it and import the users. Ensure that the UID's are in the 1001+ range.

Nov 22, 2015 11:26 PM in response to Strontium90

Hi

Thanks for the kind reply. I have enabled the DNS service on the server-app. & i have created a new Open Directory and its configured normally.

Now the issue is, im unable to see the client machine that is connected to the local network. I have added the Client Subnet on the OD.

Do i need to be online for the configuration ? plz guide me to import the clients that are connected to the local Network.

Nov 24, 2015 9:01 AM in response to COMINTO

I am not sure what you mean by "unable to see the client machine that is connected to the local network."


Based on your post, you are building this in isolation with no internet access. To restate, you have a server setup at address 192.168.1.1. You have a client at address 192.168.1.2. These units both have a mask of 255.255.255.0 and use the server's address as the router (as you are not really routing anywhere). Now, for DNS. On the server and client you should be defining the server's IP address as the primary (and since this is in isolation, the only) DNS server in the network stack. Then the search path domain should be your domain.


For example, you created your DNS and defined your server as server.lin.com. You need at least a single A record defined, pointing server.lin.com to 192.168.1.1. From your client, your should be able to perform an nslookup of the name and number and get a reply from your DNS service on the server.


If you have the DNS side down, then the next step is to bind the client to the server. Now, if you want to manage anything, you should use Profile Manager but it will not be able to deliver policy without an Internet connection. To overcome this you can download the config profiles and manually install.


Reid

Apple Consultants Network

Author "El Capitan Server – Foundation Services" :: Exclusively available in Apple's iBooks Store

Author "El Capitan Server – Control & Collaboration" :: Exclusively available in Apple's iBooks Store

Author of Yosemite Server and Mavericks Server books

Open Directory Configuration Issue

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