Binding Macs to Active Directory - Description Information

Discussion in 'OS X Mavericks (10.9)' started by pcgolfer85, Mar 17, 2014.

  1. pcgolfer85 macrumors member

    pcgolfer85

    Joined:
    May 19, 2008
    #1
    I am looking for a way to have a Mac that is bound to Active Directory report it's serial number and have it populate the description field in AD. Has anyone successfully made this work? Thanks
     
  2. satcomer macrumors 603

    satcomer

    Joined:
    Feb 19, 2008
    Location:
    The Finger Lakes Region
    #3
  3. SlCKB0Y, Mar 20, 2014
    Last edited: Mar 21, 2014

    SlCKB0Y macrumors 68040

    SlCKB0Y

    Joined:
    Feb 25, 2012
    Location:
    Sydney, Australia
    #4
    A bash script could be written to get the serial number, join the machine to the domain, and then update the required attribute.

    Hints:

    1. Get the serial#
    2. Join to the domain
    https://developer.apple.com/library...win/Reference/ManPages/man8/dsconfigad.8.html

    3. Update attribute
    https://developer.apple.com/library...win/Reference/Manpages/man1/ldapmodify.1.html

    Obviously if the hosts are already joined to the domain skip step (2).
     

Share This Page