If an sshPublicKey attribute contains a key with trailing whitespace (in my case, a trailing newline), then sss_ssh_authorizedkeys produces no output. Calling with the --debug option produces:
sshPublicKey
sss_ssh_authorizedkeys
--debug
/usr/bin/sss_ssh_authorizedkeys --debug 2 username (Wed Oct 24 18:13:29:102036 2018) [/usr/bin/sss_ssh_authorizedkeys] [main] (0x0040): sss_ssh_format_pubkey() failed (22): Invalid argument
Notes:
I note issue #2349, closed four years ago: that's presumably the same underlying problem as this one. I see that issue is closed, but something like this appears to be still causing a problem.
I can't tell what version of sss_ssh_authorizedkeys I'm using (no -V or --version).
-V
--version
Metadata Update from @jhrozek: - Issue set to the milestone: SSSD 2.1 - Issue tagged with: easyfix
Metadata Update from @jhrozek: - Issue set to the milestone: SSSD 2.2 (was: SSSD 2.1)
Metadata Update from @jhrozek: - Issue set to the milestone: SSSD 2.3 (was: SSSD 2.2)
https://github.com/SSSD/sssd/pull/901
Commit 111144cd fixes this issue
master
SSSD is moving from Pagure to Github. This means that new issues and pull requests will be accepted only in SSSD's github repository.
This issue has been cloned to Github and is available here: - https://github.com/SSSD/sssd/issues/4854
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.