OK. Here goes ... We really need help on this one. I'm looking for anyone who uses Active Directory and Local mobile accounts in their environment and how you make it work.
We are experiencing three related, but different issues with our Macs in our environment and have been troubleshooting with JAMF for two weeks now with not much narrowing of what the actual root problem(s) is/are. The issues are as follows:
- Slow logins, primarily on Mid-2012 Macbook Pros with 5400RPM drives.
- "User is unable to login at this time" error
- Local mobile accounts not being created properly
I will explain the relation and details of these issues in a moment ...
We use Active Directory and have mobile accounts created locally on machines our users login to, however we do not enable home sync. All we want to do is to make it easy for our users to login to machines they've used previously and also auto mount their network folder. We were achieving the automounting previously via the Directory Services "Mount home as sharepoint" setting. We used DeployStudio last year with 10.9.5 Mavericks and did not experience any of the above issues in our environment. Our configuration then as it was until recently when we started down this road to resolve these issues was the following:
Advanced Options - User Experience
Create mobile account at login = Enabled
Require confirmation = Disabled
Force home to startup disk = Enabled
Mount home as sharepoint = Enabled
Use Windows UNC path for home = Enabled
Network protocol to be used = smb
Default user Shell = /bin/bash
Advanced Options - Mappings
Mapping UID to attribute = not set
Mapping user GID to attribute = not set
Mapping group GID to attribute = not set
Generate Kerberos authority = Enabled
Advanced Options - Administrative
Preferred Domain controller = not set
Allowed admin groups = MASTERSdomain admins,MASTERSHelpDesk_Restrict
Authentication from any domain = Disabled
Packet signing = allow
Packet encryption = allow
Password change interval = 0
Restrict Dynamic DNS updates = not set
Namespace mode = domain
We recently disabled the mount home as sharepoint setting due to this thread's (https://jamfnation.jamfsoftware.com/discussion.html?id=11004) recommendation to disable the UNC path setting and create an Applescript application to mount users network folders. But this did not resolve our issues.
Issue #1: Slow logins
What initially started us down this troubleshooting path. It was taking new AND returning users roughly 2 minutes to login to Mid-2012 Macbook Pros in our laptop carts.
After much testing, we were able to determine that Sophos Anti-Virus, which we only added to our image this past year, noticeably added to the overall login time of machines. However, the longest login times were when a user was logging in to a machine for the first time after the computer had been restarted. This leads into issue #2 ...
Issue #2: "User is unable to login at this time"
Since we started using Yosemite, we've been getting this error when users attempt to login to a machine for the first time. Initially we only saw this periodically, but once the school year started we saw this on all our Macs regardless of user.
We're able to get around this error by restarting the computer once and having the user login again. However, as previously mentioned it takes several minutes for this user to login. Once the user has been logged in and their local mobile account is created the user does not see this error again. But even when the user is logging into a machine they've already logged into it still takes at least a minute - minute and half to fully login and actually use the computer to any extent.
In our testing, we do not get this error on any of our imaged machines immediately after it's been imaged. But when we come back to the machine the following morning we start seeing this error. No policies are run or settings changed in the interim. We confirmed we get this error on a computer with just 10.10.4 Yosemite and bound to Active Directory manually as well as one imaged via our JSS, so it doesn't appear to be JSS issue.
Various threads point to this error as having to do with the Use UNC path setting used to derive the network location, but disabling this breaks the creation of the local mobile account. So in trying to fix one thing, we break another ...
Issue #3: Local Mobile Account Issues:
So disabling the UNC path setting does not create a local mobile account for the logged in user. But now with the UNC setting re-enabled in our testing we're seeing something else that we are not seeing in our production environment where the user is able to login, but does not create a local user account. It acts like it logs in, but instead actually mounts their network folder and puts the Mac home folder in their network folder.
At this point I really just don't know what to try or do differently to resolve these issues and improve our users experience. Thanks in advance for your help.