Home Forums OS X Server and Client Discussion Open Directory Dollar sign (hostname$) in computer accounts

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #372423
    Radiola
    Participant

    Leopard (10.5.2) client, Tiger (10.4.11) server.

    When binding a Leopard client, the hostname in the directory now seems to get a $ suffixed, a la Active Directory. Is this standard from now on?

    I ask because I have a bind script, the OD portion of which goes like this:

    [code]# be verbose (-v), use SSL (-x), force binding/unbinding (-f)
    dsconfigldap -v -x -f -a $OD_SERVER -u $OD_USERNAME -p “$OD_PASSWORD” \
    -c $hostname -n $OD_SERVER

    # okay, now put us in the computer list
    dscl -u $OD_USERNAME -P “$OD_PASSWORD” “/LDAPv3/$OD_SERVER” \
    -append “/ComputerLists/$thelist” Computers $hostname
    [/code]

    With Leopard clients, the second bit to insert the client into the proper computer list isn’t working because there’s no $ at the end of $hostname in the dscl invocation, so the hostname in the list doesn’t match the hostname in the computer record. Can I depend on this and simply check to see if I’m running on 10.5 and add the $ suffix if I am? Or is it dependent on something else? (I do bind the system to AD as well, but that hasn’t happened yet when this code runs.)

    Thanks much,
    Aaron

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Comments are closed