Last active
February 26, 2021 20:34
-
-
Save matsimon/8539850 to your computer and use it in GitHub Desktop.
Script used by 'AuthorizedKeysCommand' to retrieve SSH keys in an Active Directory (OpenSSH >= 6.2)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First of all, relies on having the (Debian) box joined to AD with Samba3 (not the sssd way) and the using pam_winbind. It does work with multiple keys stored in AD and also quite large ones.
Here are some thoughts on the why and how it works:
AD users. Thus before the LDAP search, we have to cut the domain prefix. Ugly, admitting.