Skip to content

Instantly share code, notes, and snippets.

@rockpapergoat
Created August 29, 2012 16:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rockpapergoat/3515418 to your computer and use it in GitHub Desktop.
Save rockpapergoat/3515418 to your computer and use it in GitHub Desktop.
AD off-network login delay fix?
#!/bin/bash
# 8/23/12, nate
# attempt to reduce AD mobile account login delays while off network
# change DOMAIN to your AD domain/config file name
if [[ -e /Library/Preferences/OpenDirectory/Configurations/Active\ Directory/DOMAIN.plist ]]; then
/usr/libexec/PlistBuddy -c "Set options:query\ timeout 2" /Library/Preferences/OpenDirectory/Configurations/Active\ Directory/DOMAIN.plist
/usr/libexec/PlistBuddy -c "Set options:connection\ idle\ disconnect 5" /Library/Preferences/OpenDirectory/Configurations/Active\ Directory/DOMAIN.plist
/usr/libexec/PlistBuddy -c "Set options:connection\ setup\ timeout 5" /Library/Preferences/OpenDirectory/Configurations/Active\ Directory/DOMAIN.plist
fi
@loceee
Copy link

loceee commented Apr 1, 2015

Hey! Just stumbled upon this. Did these options go anyway to fixing the AD login pause?

@rockpapergoat
Copy link
Author

ha! i just saw your comment a year later. i have no idea what the current state is, as i no longer manage macs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment