`createmobileaccount` Problem or Server Settings Issue?

The following steps were recommended on setting up an existing account on a client machine to mobile homes over on the afp548.com forum:
1. Join client machine to OD.
2. Remove the local user record for the user. Best to do this using dscl as the accounts pref pane will want to delete the home folder.
3. Change the ownership of the existing home folder to the new user from LDAP.
4. Use the /System/Library/CoreServices/ManagedClient.app/Contents/Resources/createmobilea ccount tool to cache the new account.
5. Login as the LDAP user.

I thought that I had everything set properly, the "Sync Home Now" menu items appears in the menubar and it steps through all apparent folders that are set in the Workgroup Manager preferences for the user, but no sync actually occurs (tested by making some changes on the server side user account when logged in and the changes do not propagate back over to the remote client).

I tried to delete the user a few times and reset this back up (the command I used: `createmobileaccount -vsn username -h /Users/username`), however the same results each time. I even went so far as to allow Mac OS X to create the account and try the sync from a new managed account while moving the older user files to another folder under /Users with similar results.

The output of the createmobileaccount command as called above are:
--BEGIN COMMAND OUTPUT--
createmobileaccount built Oct 2 2007 22:44:49
verbose output on.
user name = "username"
home path = "/Users/username"
user password = "(null)"
prompt for password = FALSE
encrypt new home = FALSE
create as external account = TRUE
home sync new account = TRUE
sync URL = "(null)"

/usr/bin/dscl -raw . -read /Users/username RealName RecordName GeneratedUID UniqueID PrimaryGroupID NFSHomeDirectory HomeDirectory dsAttrTypeStandard:OriginalHomeDirectory dsAttrTypeStandard:OriginalNFSHomeDirectory
dsAttrTypeStandard:GeneratedUID: 1B367422-7683-473F-816A-BE82C69C1DB3
dsAttrTypeStandard:NFSHomeDirectory: /Users/username
dsAttrTypeStandard:OriginalNFSHomeDirectory: /Users/username
dsAttrTypeStandard: PrimaryGroupID: 20
dsAttrTypeStandard:RealName:
Some User
dsAttrTypeStandard:RecordName:
username
Some User
dsAttrTypeStandard:UniqueID: 1025
No such key: dsAttrTypeStandard:OriginalHomeDirectory
No such key: HomeDirectory
--END COMMAND OUTPUT--

Please do advise as this seems to be a serious impasse at the moment.

I would also like to set up the account so that the user synchronization occurs differently for each machine that will be used (ie, there is 1 desktop and 1 laptop aside from the server on which these accounts reside for this one particular user). Thus I'd like to exclude certain folders (such as /Pictures and iPhoto for the laptop mobile account and so forth, while grabbing all on the desktop) and it appears that the ability to change these synchronization settings are grayed out for the times this appeared to work, yet did not. I also only had set for the user preferences on Workgroup Manager to manage the Account Creation -> Always for this particular user. Perhaps Machine/Computer Names need to be set up instead for things to work right? I would not be surprised that I'm missing something on the server side that may be preventing things to sync properly.

Mac OS X (10.5)

Posted on Nov 11, 2007 8:37 PM

Reply
7 replies

Nov 12, 2007 12:33 PM in response to Bruce Gaya

So you're saying in Workgroup Manager -> Accounts -> Username -> Home tab -> needs to have the afp://server/root usersfolder selected? Previously I thought that you just used the /Users setting and that would map the afp share for you, but apparently not? Do you also need to set the share up in Server Admin as well with automount prior to this?

I've reviewed the instructions quite a bit in the manual, but it seems as though some dots may not be connected (perhaps due to things being split apart some). Could you provide a quick bullet point list of what you would normally do in terms of having all of the steps together? Just want to be certain that I'm not missing something.

Thanks very much.

Nov 13, 2007 2:46 PM in response to Bruce Gaya

Okay, very good. Let me be sure that I'm following you correctly.

I've gone into Server Admin -> File Sharing and set up the appropriate /User/username folders as shared and set them to "Enable Automount", Use For: User home folders.

Now, I've gone into Workgroup Manager and set the following for a user: Accounts -> Home tab -> for the Where selection: "afp://server.fqd/username" instead of /Users (thus it is an item with the globe-like icon to the left). Now will that simply populate things properly and "work" as it should have before or will I still need to utilize the -u option one createmobileaccount with "-u afp://server.blah.com/username"?

Thanks again!

Nov 18, 2007 2:19 PM in response to Bruce Gaya

Curious. I'm trying to follow the same process. I've got an account "leedale" logged in using a network home directory. I try to create the Mobile account using the GUI with an error each time, so I tried the Terminal command and received this:

/System/Library/CoreServices/ManagedClient.app/Contents/Resources/createmobileac count -vsn leedale -h /Users/leedale
createmobileaccount built Oct 2 2007 22:44:49
verbose output on.
user name = "leedale"
home path = "/Users/leedale"
user password = "(null)"
prompt for password = FALSE
encrypt new home = FALSE
create as external account = TRUE
home sync new account = TRUE
sync URL = "(null)"
MCXCCacheMCXRecordAndGraph(): [[existingMCXRecord record] setValues:forAttribute:dsAttrTypeNative:cached authpolicy] == -14120 (Unable to set value(s) for dsAttrTypeNative:cached authpolicy in record leedale.)
MCXCCreateMobileAccount failed to create account. Error = -14120 (MCXCCacheMCXRecordAndGraph failed). Cleaning up mobile account record.
2007-11-18 17:15:19.831 createmobileaccount[551:10b] ### Error:-14120 File:/SourceCache/Admin/Admin-423/DSRecord.m Line:484
* mobile account could not be created: -14120 (Unable to set value(s) for dsAttrTypeNative:cached authpolicy in record leedale.)

Any suggestions?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

`createmobileaccount` Problem or Server Settings Issue?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.