Mac OS X LDAP Client Setup
- Enable root account
- Add LDAPv3 source to Directory Access
- go to Applications -> Utilities, open Directory Utility
- Unlock it with root password
- Click "Show Advanced Settings"
- Click "Services"
- Select LDAPv3, click Configure
- click the edit pen icon at bottom left
- Check off "Use DHCP-supplied LDAP server"
- Select Options then click New
- Enter a configuration name ie: Master LDAP
- Server Name: your Master LDAP server name ie. ldap.example.org
- Click on LDAP Mappings and select RFC 2307 (Unix)
- A window will pop up that will ask you for a search base. Put ie. dc=example,dc=org
- Click OK then OK again.
- Now you'll be back at the Directory Access Window
- Click on Authentication at the top of the window
- Under Search Pull Down choose "Custom Path" then Click Add. Select ldap/ldap.example.org source
- Click OK and OK again until Directory Access closes.
- Restart the machine
- After the restart you should be able to log in as any valid LDAP user
Troubleshooting
- If after configuring your LDAP you still can't authenticate and your /var/log/system.log contains messages like these /System/Library/LoginPlugins/MCX.loginPlugin/Contents/MacOS/MCXCacher: DSOpenNode(): dsOpenDirNode("/LDAPv3/ldap.example.org") == -14002
- The problem comes from the Format utility of the Directory Access which apparently keeps misconfiguration even if it is corrected.
- To correct
- Remove all contents of the directory /Library/Preferences/DirectoryService ie. double click on your Mac HDD
- Open /Applications/Utilities/Netinfo Manager and within it remove all contents of /config/mcx-mask
- Then restart the machine and reconfigure.
- After an update to Mac OS X Server 10.5.3 some clients do not find the LDAP server with messages:
- DirectoryService[48]: DSLDAPv3PlugIn: [machine] LDAP server config not updated with server mappings due to server mappings error.
- DirectoryService[48]: LDAPv3: SafeOpen Can't retrieve server mappings from search base of <cn=config,dc=lip6,dc=fr>.
- DirectoryService[48]: LDAPv3: SafeOpen Cannot retrieve server mappings at this time.
- The problem came from utility Utility directory (Directory Utility) that keeps obviously a bad configuration. Pour corriger cela il faut : To correct this requires:
- Delete the contents of the directory / Library / Preferences / DirectoryService.
- Then, (restart), and repeat the configuration format Directory without error:)
- I just spent a very long time on a client does not find the LDAP server with messages: /System/Library/LoginPlugins/MCX.loginPlugin/Contents/MacOS/MCXCacher: DSOpenNode(): dsOpenDirNode("/LDAPv3/mon.server.fr") == -14002
- The problem came from utility format Directory (Directory Access) that keeps obviously a bad configuration even if it is correct.
- To correct this requires:
- Delete the contents of the directory / Library / Preferences / DirectoryService.
- Delete the entire contents of / config / pcs-cache in the NetInfo Manager (NetInfo Manager).
- Then, (restart), and repeat the configuration format Directory without error:)
- sudo dscl . -delete /Config/mcx_cache; sudo reboot
References
- Configuring Mac OS X LDAP Authorization for Leopard (Mac OS X 10.5.x)
- Configuring Mac OS X LDAP Authorization for Tiger (Mac OS X 10.4.x)
- Mac OS X authentication against OpenLDAP
- Setting up Mac OS X Server
- Mac OS X: How to Connect to an LDAPv3 Server Using a Self-Signed Certificate
- Integrating Apple OS X Clients with an OpenLDAP Directory(10.4 Tiger)
- Integrating OSX Clients with an OpenLDAP Directory
- Mac OS X: dscl
- Mac OS X ldap client
- Integrating Mac OS X And Novell eDirectory
- Integrating OS X into Active Directory
- dsconfigldap command
- MAC OS/X authentication against OpenLDAP 2.3 (Resolved)
No comments:
Post a Comment