Skip to content

Instantly share code, notes, and snippets.

@pmbuko
Created December 3, 2014 17:55
Show Gist options
  • Save pmbuko/3a49026cf4b3beecae28 to your computer and use it in GitHub Desktop.
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.
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