Directory Utility question...how to make a domain a default domain?
I'm trying to make a specific domain the default or make it the preferred domain (first in the order)
thank you for your help.
Directory Utility question...how to make a domain a default domain?
I'm trying to make a specific domain the default or make it the preferred domain (first in the order)
thank you for your help.
Best answer by m_entholzner
you should not grab that plist... grabbing a plist should always be used with care, because plists may be different from machine to machine. directly modifying the needed things is a better idea :)
The script you need:
#!/bin/bash
# Removing "All Domains" from the search path
dscl /Search -delete / CSPSearchPath "/Active Directory/YOURDOMAIN/All Domains"
# Adding Domains to the search path
dscl /Search -append / CSPSearchPath "/Active Directory/YOURDOMAIN/subdomain.domain.com"
# Removing "All Domains" from the contacts search path
dscl /Search/Contacts -delete / CSPSearchPath "/Active Directory/YOURDOMAIN/All Domains"
# Adding Domains to the contacts search path
dscl /Search/Contacts -append / CSPSearchPath "/Active Directory/YOURDOMAIN/subdomain.domain.com"
Just put this one in a script you run after domain binding and you should be fine.
The /Local/Default path cannot be modified or removed. It is needed for authenticating any local accounts, including system accounts.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.