Home › Forums › OS X Server and Client Discussion › Active Directory › 10.4 AD Bind
- This topic has 18 replies, 8 voices, and was last updated 20 years, 9 months ago by
mccune.
-
AuthorPosts
-
January 7, 2006 at 5:29 pm #364683
gilburns
ParticipantYou 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 -helpfor details about the usage.
January 7, 2006 at 10:48 pm #364686gilburns
ParticipantI 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?
macshome wrote:
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.
January 24, 2006 at 11:37 pm #364928mccune
ParticipantJust 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_ldapv3January 24, 2006 at 11:39 pm #364929mccune
ParticipantDooh, wanted to make that a hyperlink. Sorry for the double post…
DS LDAPv3 command line configuration -
AuthorPosts
- You must be logged in to reply to this topic.