So I've been digging about for this one for a couple days with ML and wanted to see if anyone else was trying similar. Specifically, I'd like to retain having the UNC path for the SMB home mounted for end users, but due to some access permissions and the way home folders get mounted from DFS we end up with a "?" in our dock. The AD plugin appears to create a managed preference for the dock on first login of a user. I've tried removing the dock portion of /Library/Preferences/OpenDirectory/Configurations/Active Directory/DOMAIN.plist, and while I thought I'd had some initial luck with this, I can't reproduce it working with a first run script:
/usr/libexec/PlistBuddy -c "Delete :module options:ActiveDirectory:managed client template:mcx_application_data:com.apple.dock" /Library/Preferences/OpenDirectory/Configurations/Active Directory/PRODUCTION.plist
It does delete the array, but the managed preference is still written for the user. Incidentally, deleting/modifying com.apple.dock.plist from the /Library/Manages Preferences/username results in the file being re-written the next time the user logs in.
Has anyone else come across this and had more success?