Skip to content

Instantly share code, notes, and snippets.

@fapestniegd
Created August 5, 2009 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fapestniegd/162948 to your computer and use it in GitHub Desktop.
Save fapestniegd/162948 to your computer and use it in GitHub Desktop.
ldapsearch -xH ldaps://odin.websages.com:636 -b "ou=People,dc=websages,dc=com" -D "${LDAP_BINDDN}" -w "${LDAP_PASSWD}" "(uid=whitejs)" | tr '\n' '%'| sed -e 's/% //g'| tr '%' '\n' | grep "^sshPublicKey::"| awk '{print $2}'| perl -MMIME::Base64 -le 'print decode_base64(<STDIN>);'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment