Skip to content

Instantly share code, notes, and snippets.

@kcrawford
Last active June 15, 2018 19:03
Show Gist options
  • Select an option

  • Save kcrawford/5725057 to your computer and use it in GitHub Desktop.

Select an option

Save kcrawford/5725057 to your computer and use it in GitHub Desktop.

Revisions

  1. kcrawford revised this gist Jun 6, 2013. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1 +1,3 @@
    account=`dsconfigad -show | awk '/Computer *Account/ { print $4 }'` && printf "Account: ${account}\nPassword: `sudo security find-generic-password -a ${account} -w /Library/Keychains/System.keychain`\n"
    account=`dsconfigad -show | awk '/Computer *Account/ { print $4 }'` \
    && printf "Account: ${account}\nPassword: \
    `sudo security find-generic-password -a ${account} -w /Library/Keychains/System.keychain`\n"
  2. kcrawford created this gist Jun 6, 2013.
    1 change: 1 addition & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    account=`dsconfigad -show | awk '/Computer *Account/ { print $4 }'` && printf "Account: ${account}\nPassword: `sudo security find-generic-password -a ${account} -w /Library/Keychains/System.keychain`\n"