Created
December 3, 2014 17:55
-
-
Save pmbuko/3a49026cf4b3beecae28 to your computer and use it in GitHub Desktop.
This snippet will retrieve the fully-qualified Kerberos authentication account used for retrieving tickets on OS X. Useful if you need to renew tickets programmatically.
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
dscl /Search read /Users/$USER AuthenticationAuthority | egrep -o "[A-Z0-9._%+-]+@[A-Z0-9.-]+\.(?:[A-Z]{2}|com|org|net|edu|gov|mil|biz|info|mobi|name|aero|asia|jobs|museum)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment