Active Directory Joined Mobile User Login Very Slow Off AD Network

I'm brand new to MacOS, but I've been an IT Admin for 20 years. I've searched for days now trying to find a solution to my new MacBook Pro having slow login issues with my mobile user account when off my Active Directory network. Everything works fine, but it takes a couple of minutes to login. When on net, it's just as fast as any Windows machine we have at work. Off net, it's been annoying.


Is there a config file I can edit to speed up the timeout of searching for the domain controllers? I've also noticed it does give an error that an SMB sever share I've connect to can't connect, so maybe that could be part of it too.


Is there a way to speed up the timeouts of the domain controller search and also reduce the timeout MacOS tries to connect to the SMB shares?


Thanks appreciate any advise,

Ryan

MacBook Pro (M2 Pro, 2023)

Posted on Mar 10, 2023 4:56 PM

Reply

Similar questions

2 replies

Mar 11, 2023 4:34 AM in response to snappr

It sounds like the issue is the automount of the share(s). Before going too deep, try removing the automount from login items and see if your login process is sped up. If I recall, each mount will try to connect for 120 seconds before timing out. If you have multiple automounts that cannot be reached, then you will have a significant pause when logging in. Assuming these are added to login items, remove them, then log out and log in when off the network. If you are defining the automounts via your MDM, then exclude the test machine from the profile.


If the mounts prove to be the cause of the delay, then consider crafting a script/app with conditional logic to detect your corporate LAN. Only on detection will the mount process be attempted. This can allow off-LAN logins to bypass the mount attempt. With an MDM, you might be able to use network state change trigger. But this may not work if your units are FileVault encrypted as the speed of power on > decrypt > boot > to desktop may not allow the MDM to be contacted in time. Likely better to create a local script/app that contains the conditional logic. Add that to login items. Now when the user logs in, there is logic behind the mount attempt. "Am I on the LAN? Yes > attempt share mount. No > do nothing."


Hope this is helpful,


Reid

Mar 11, 2023 4:59 AM in response to Strontium90

Just to clarify, what you are describing is not automounting. That’s just adding network volumes to login items.


There is an actual automount mechanism that uses autofs. I don’t know if it still works anymore. Apple pulled the documentation years ago, but you can still find it on the internet where copyright doesn’t matter. Due to changing security expectations, it only worked in properly AD-bound computers.


Otherwise, I don’t know anything about this issue. It is probably related to some kind of network lookup problem. Either there is a inaccessible network lookup that is failing, or the mechanism to modify the local DNS isn’t working.

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.

Active Directory Joined Mobile User Login Very Slow Off AD Network

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