Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Binding script #377687
    clutch
    Participant

    I’ve got most things working with this script but having an issue trying to escape space in the name of the AD container I’m trying to add computers to.
    Unfortunately, the AD server was setup long before I had any say in the way things were going to be structured and we have far too many computers to add them manually.

    The error I’m getting back from the AD server is “The container you specified for the computer does not exist. Please verify the container information and try again.”

    The container I’m trying to add to looks like this: ou=”CN=mac,CN=All The Computers,DC=example,DC=com” (names changed to protect the innocent).

    I can successfully add computers to the normal “CN=Computers” container, but that’s not where we need them…

    I’ve tried many combinations of single vs double quotes, escaping the spaces with backslashes, using “%20”, using “\20” and am reaching the limits of my escapability.

    Does anyone have any other ideas which may be worth trying?

    Any help greatly appreciated.

    Chris.

    in reply to: Use shortname as default in dialog boxes? #375959
    clutch
    Participant

    Forget it – found it elsewhere.

    FYI the commands are these:

    10.4
    defaults write -g com.apple.AppleShareClientCore -dict-add afp_use_default_name -bool NO
    defaults write -g com.apple.AppleShareClientCore -dict-add afp_use_short_name -bool YES

    10.5
    defaults write /Library/Preferences/com.apple.NetworkAuthorization UseDefaultName -bool NO
    defaults write /Library/Preferences/com.apple.NetworkAuthorization UseShortName -bool YES

    C.

Viewing 2 posts - 1 through 2 (of 2 total)