Portable Home Directory Syncing 10.6.3 Active Directory Error

Originator:wgmeyer
Number:rdar://8042475 Date Originated:28-May-2010 11:26 PM
Status:Open Resolved:
Product:Mac OS X Product Version:10.6.3
Classification:Serious Bug Reproducible:Always
 
28-May-2010 11:26 PM Walter Meyer:
Summary:

When computer is bound to Active Directory and Open Directory, with the Active Directory plugin set to use UNC path from Active Directory to derive network home location and to create a Mobile Account on login, and portable home directory sync preferences set in Open Directory (MCX set to sync default items and preferences) upon user login an error message appears when an AD user logs in saying: "Home Directory cannot be synced at this time "Cancel" or "Continue". If "Continue" is pressed user logs in. Even when trying to manually sync the home directory it is unsuccessful. Nothing is synced. The home directory is able to be mounted and written to manually.

Steps to Reproduce:
Bind Mac to Active Directory and Open Directory, with the Active Directory plugin set to use UNC path from Active Directory to derive network home location and to create a Mobile Account on login. Set portable home directory sync preferences in Open Directory. MCX set to sync default items and preferences.

Expected Results:
Home Directory should mount and PHD sync settings should be followed and users home directory should be synced.

Actual Results:
Error message appears saying: "Home Directory cannot be synced at this time "Cancel" or "Continue".

Regression:

Notes:

01-Jun-2010 03:37 PM Walter Meyer:
I have my client bound to OD and AD (Golden Triangle). I have the AD plugin on the client set to 'Use UNC path from AD to derive network home location' and to create a mobile account on login. I have Mobility Home and Preference sync turned on in OD for the client and the defaults set. When I try to login with an AD user the Home Directory sync fails completely with errors in the log.

My ~/Library/FileSyncAgent-verbose.log as some errors in it, this error in particular seems to be causing the problem.

1:: [10/06/01 15:19:45.779] Peer "network" is unable to sync. (EnsureSSHKeysConfigured (sshkeygen.m:309): "'(([fm removeItemOnlyIfItExistsAtPath:remoteHomeFileSyncKeyDir error:&err]))' error Error Domain=NSCocoaErrorDomain Code=512 UserInfo=0x1030a4b60 "“FileSyncAgent_key_dir” couldn’t be removed."")

Now if I browse to my Network home directory the /Library/FileSync/FileSyncAgent_key_dir exists but it isn't visible even if I do an 'ls -a' on it in terminal. I know it is there because if I try to manually create a folder called FileSyncAgent_key_dir Finder says it exists. So based on the error I thought perhaps the client can't perform the actions it needs to on that directory (why? permissions are fine I think as I can create files in the directory manually fine), so I copied the FileSyncAgent_key_dir from the home directory on the client and put it on the Network Home. Now when I try to sync the sync works. But when I try to sync a second time it fails again with the same error. So for some reason the permissions are getting set incorrectly on this directory, perhaps by FileSync Agent on the client.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!