Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

onserve

macrumors newbie
Original poster
May 7, 2010
6
0
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?
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.