Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • #364683
    gilburns
    Participant

    You can also use the ARD2 command line tools to set the computer name, instead of the Bombich SetHostName.

    sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/systemsetup -setcomputername 'computername'
    
    

    both systemsetup and networksetup are in that directory and both are nice to know about. Both need to be run with sudo.

    After you cd into that directory, you can type:

    ./systemsetup -help
    or
    ./networksetup -help

    for details about the usage.

    #364686
    gilburns
    Participant

    I just tried it using dscl as you indicated, but AD plugin in Directory Setup did not enable, and the Search Path did not switch to “Custom path”.

    By writing to the /L/P/DS files directly, I am able to set the search path, and enable the AD DS plugin.

    I’m I missing something, or does your drive image have those attributes configured by default?

    [QUOTE BY= macshome] Hmm… that seems like a lot of work. We’ve got a naming/binding AppleScript too.

    	do shell script "sudo dscl /Search -append / CSPSearchPath \"/Active Directory/All Domains\"" with administrator privileges
    	do shell script "sudo dscl /Search -append / CSPSearchPath /LDAPv3/macxmv2.0998.DOMAIN.com" with administrator privileges
    	do shell script "sudo dscl /Search/Contacts -append / CSPSearchPath \"/Active Directory/All Domains\"" with administrator privileges
    
    

    Except for clearing out the kerb files, it just uses dscl for searchpath setup.

    This isn’t to say there is anything wrong with how you are doing it! I’ve pushed /L/P/DS around with ARD plenty of times to just copy the files to other workstations.[/QUOTE]

    #364928
    mccune
    Participant

    Just thought I’d mention that I cooked up a HOWTO based on the information presented here. Thanks for making this information available, I’m now able to manage client side LDAP configuration via cfengine rather than preconfiguring everything in my master asr image.

    HOWTO is at:
    https://www.math.ohio-state.edu/wiki/administration/macosx/ds_ldapv3

    #364929
    mccune
    Participant

    Dooh, wanted to make that a hyperlink. Sorry for the double post…
    DS LDAPv3 command line configuration

Viewing 4 posts - 16 through 19 (of 19 total)
  • You must be logged in to reply to this topic.

Comments are closed