Migrating mobile user accounts from one domain to another

Discussion in 'macOS' started by onserve, May 7, 2010.

  1. onserve macrumors newbie

    Joined:
    May 7, 2010
    #1
    I'm looking after some Macs that are migrating over to a new domain.

    The users are out of the office a lot, so they use mobile accounts on Macbook Pros using the most recent version of Snow Leopard.

    A lot of their configuration is specific to their mobile user accounts and I obviously can't log into the new domain using a mobile account from the old domain (I tested).

    So I found this:
    http://www.prometheon.net/2008/08/2...-from-one-active-directory-domain-to-another/

    It outlines what I need to do in order to delete the local cached account without deleting the home directory. It also outlines how to give the same user account on the new domain access to the same home directory on the Macbook that they were using before.

    These are the steps I have taken:

    - Unbound from old domain
    - Bound to new domain
    - Logged on as root and opened terminal and ran the below commands:
    dscl . list /users (to find the user account)
    dscl . -delete /users/USERNAME (this deleted the locally cached account)
    chown -R USERNAME:NewDomainName.local\OUThatUserIsIn /users/USERNAME

    When I run the last command, I get the following
    chown: NewDomainName.localOUThatUserIsIn: Invalid argument (it doesn't display the \ after local)

    I verified that I was using the correct OU.
    I added NewDomainName.local to the DNS tab in Network settings under the domains to search in.


    Anyone able to offer any advice?
     
  2. calderone macrumors 68040

    calderone

    Joined:
    Aug 28, 2009
    Location:
    Seattle
    #2
    You need to escape the slash.

    Code:
    chown -R USERNAME:NewDomainName.local\\OUThatUserIsIn /users/USERNAME
    
    Put an echo before both commands to see the difference, and you will see how shell is interpreting it.

    For AD, granted this was with ADmitMac, I have used shortname@domain.com to change ownership on the home directory.
     
  3. onserve thread starter macrumors newbie

    Joined:
    May 7, 2010
    #3
    Thanks

    You, sir, are a genioid.

    I never thought of using shortname@domain.com. That worked perfectly.

    Thanks!
     
  4. calderone macrumors 68040

    calderone

    Joined:
    Aug 28, 2009
    Location:
    Seattle

Share This Page