This article is one part in a multi-part series about how to have centralized logins and home directories with Mac OS 10.6 using an Ubuntu 9.10 server, LDAP & Automounter. You can find the parent article here.
Important Note: Unless stated otherwise, all the commands in this procedure should be run as root. To become root from a typical admin user, just type sudo su and enter your password. You can also just stay the regular user and put the word sudo in front of every command. I’m using to a root prompt and that drives me crazy, so I just su to root.
This part of the procedure was adapted & updated for Snow Leopard from this one. (Their procedure has a lot of extra stuff that’s really not necessary.) Their procedure does have a lot of pretty pictures of this, though. However, it’s with a Leopard client, not a Snow Leopard one, so things look a little different now.
- Go to System Preferences > Accounts > Unlock (if locked) > Login Options > Network Account Server > Join > Open Directory Utility
- Unlock (if locked). You will be prompted for your admin password.
- Select/highlight LDAPv3
- Click the small “Pencil” icon in the lower left hand corner just above the lock
- Click “New”
- Enter the IP address of the LDAP server
- Leave “Encrypt using SSL” unchecked (I chose not to use SSL as it’s just my home network. If you choose to use SSL, there will be additional steps that I did not do.)
- Click Continue
- You will be asked for your admin passwd. Enter it.
- If you did everything above correct, the dialogue box should now expand, and you should see “dc=home,dc=com” in the “Search Base” box.
- Under “Pick a Template,” select RFC 2307 (Unix)
- Click Continue. It will say “Adding Server to Configuration” then “Configuration of New Server Complete.”
- Click OK
- You will see your server listed there with a name of “Untitled 1.” Give it your own name and click OK
- Select the entry again and Click Edit
- On the connection screen change these values:
- Open/close times out in 10
- Query times out in 10
- Re-bind attempted in 10
- Uncheck Ignore server referrals
- On the Security screen, uncheck “Disable clear-text passwords.”
- Click OK
- Click OK again
- Now look at the top of the box for the second tab called “Search Policy” and select it.
- Click the + sign and you should see the new server you just added. Select it and click Add.
- Click the Lock to Save and Lock these settings.
- Reboot the Mac
The “Disable Clear Text Passwords” button is a weird one. The box really only applies if your LDAP server doesn’t allow anonymous queries. (Yours does because that’s how we configured it.) That’s why you don’t have to check the “Server requires authentication” box and put a username and password. But – if you leave this checked, it doesn’t work. So there.
Now that the Mac is talking to LDAP, the next step is to configure NFS on the server.
----- Signature and Disclaimer -----
Written by W. Curtis Preston (@wcpreston). For those of you unfamiliar with my work, I've specialized in backup & recovery since 1993. I've written the O'Reilly books on backup and have worked with a number of native and commercial tools. I am now Chief Technical Architect at Druva, the leading provider of cloud-based data protection and data management tools for endpoints, infrastructure, and cloud applications. These posts reflect my own opinion and are not necessarily the opinion of my employer.