ssh: restore key-based login via LDAP sshPublicKey, fleet-wide #122
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "sssd-ssh"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
localAccountdefaulted tofalse(PR #120) - that dropped the last staticauthorizedKeys.keysentry forlament, and nothing replaced it for clients that can't do Kerberos ticket auth (Termux)openldap.nix: adds theopenssh-lpkschema (sshPublicKey/ldapPublicKey) - hand-authored OLC ldif, not extracted likekerberosSchema, since nixpkgs carries no vendored copy of this one. OIDs match sssd's own multihost test fixturessssd.nix: enables thesshservice andsshAuthorizedKeysIntegration, so sshd resolvesAuthorizedKeysCommandthroughsss_ssh_authorizedkeysagainst the new LDAP attributelament'suid=lament,ou=peopleentry got theldapPublicKeyobjectClass +sshPublicKeyvalue added by hand vialdapmodify(DIT content, not Nix-managed - same as everything else underou=people)verdandifirst, then the rest one at a time):sss_ssh_authorizedkeys lamentresolves the key post-deployleft for later: a host that already had
lament's entry cached from before the attribute was added needssss_cache -u lamentto pick it up - not needed for the fleet this pass since all five deploys happened after the LDAP write, but worth remembering for the next LDAP-attribute change.