Skip to main content
Solved

Set Authentication and Contacts Search Domain

  • April 30, 2012
  • 4 replies
  • 38 views

Forum|alt.badge.img+3
  • New Contributor

Hello all!

We're running an MS AD system for user authentication on our Mac clients, and we were having a bit of trouble with group lookups. We finally tracked it down to the fact that the '/all domains' authentication search path wasn't actually picking up all the groups for some reason, and some of our groups were under '/[DOMAIN NAME]' instead. If we set the search path to ONLY /[DOMAIN NAME] other groups were lost (authentication breaks as well), and adjusting our "allow authentication from all domains in the forest" option hasn't helped.

Anyway, besides the point. Once both /all domains and /[DOMAIN NAME] are setup in the search policy and contacts search paths, all the group information is pulled in and authentication works. Now we're looking for a a way to add /[DOMAIN NAME] to the search policy on all our Macs either via a script, or, preferably, a managed preference. I've searched around a bit, but so far haven't been able to find where this would be set.

Any tips?

Extra information:

OS X Lion clients
NOT a .local domain (anymore. This has fixed so many problems.)
Server 2003 with native schema
Casper 8.51 (will be updating to .52 soon)

Best answer by nessts

dscl /Search -append / CSPSearchPath "/Active Directory/YOURDOMAIN"
dscl /Search/Contacts -append / CSPSearchPath "/Active Directory/YOURDOMAIN"

4 replies

Forum|alt.badge.img+18
  • Valued Contributor
  • Answer
  • April 30, 2012

dscl /Search -append / CSPSearchPath "/Active Directory/YOURDOMAIN"
dscl /Search/Contacts -append / CSPSearchPath "/Active Directory/YOURDOMAIN"


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • April 30, 2012

Excellent. Worked perfectly. Many thanks.


Forum|alt.badge.img+18
  • Valued Contributor
  • April 30, 2012

at least i can solve somebodies problems.


Forum|alt.badge.img+4
  • Contributor
  • February 18, 2013

When I try this command in Mountain Lion, nothing is added to the Search Policy when I go look and verify in the Directory Utility.. Any thoughts?