• Mac OS X,  Mac OS X Server

    Mac OS X: Changing to a Custom Search Path with dscl

    The Search Path in Mac OS X client can be used to define where your system can search for directory services information, whether local or shared.  To set the search path manually you will first need to switch from LSPSearchPath to CSPSearchPath for your Search Policy.  To do so use the following command: sudo dscl /Search -change / SearchPolicy dsAttrTypeStandard:LSPSearchPath dsAttrTypeStandard:CSPSearchPath If you were to want to switch back to a local policy you would just run the following command: sudo dscl /Search -change / SearchPolicy dsAttrTypeStandard:CSPSearchPath dsAttrTypeStandard:LSPSearchPath

  • Mac OS X Server,  Mac Security,  Mass Deployment

    Open Directory and MAC Addresses

    There are a number of items that get logged into Mac OS X Server with only the unique identifier of the MAC address. Sometimes it helps to find the name based on the MAC address. If you are in an environment using trusted binding you can use Open Directory to do so. To determine the name of a computer based on the MAC address from Open Directory, you can run the following from dscl: dscl /LDAPv3/127.0.0.1 -readall /Computers RecordName macAddress | grep -A 1 $MAC