Created
August 29, 2012 16:41
-
-
Save rockpapergoat/3515418 to your computer and use it in GitHub Desktop.
AD off-network login delay fix?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ha! i just saw your comment a year later. i have no idea what the current state is, as i no longer manage macs.