diff options
author | Jan Cholasta <jcholast@redhat.com> | 2012-02-27 04:43:34 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-02-27 11:52:34 -0500 |
commit | e5359baeac6e2d49769aceddbdbc606833b1ec69 (patch) | |
tree | e7d995a0c6c63f3121d99e45557a9034ce2729a7 /src/responder/ssh | |
parent | 7aaf963f23158789a0f6fe3631608e274dd4238f (diff) | |
download | sssd-e5359baeac6e2d49769aceddbdbc606833b1ec69.tar.gz sssd-e5359baeac6e2d49769aceddbdbc606833b1ec69.tar.bz2 sssd-e5359baeac6e2d49769aceddbdbc606833b1ec69.zip |
SSH: Add more debugging messages
Diffstat (limited to 'src/responder/ssh')
-rw-r--r-- | src/responder/ssh/sshsrv_cmd.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/responder/ssh/sshsrv_cmd.c b/src/responder/ssh/sshsrv_cmd.c index 4768d547..40d9c520 100644 --- a/src/responder/ssh/sshsrv_cmd.c +++ b/src/responder/ssh/sshsrv_cmd.c @@ -492,12 +492,18 @@ ssh_host_pubkeys_update_known_hosts(struct ssh_cmd_ctx *cmd_ctx) ret = sysdb_search_ssh_hosts(tmp_ctx, sysdb, "*", attrs, &hosts, &num_hosts); if (ret != EOK) { + if (ret != ENOENT) { + DEBUG(SSSDBG_OP_FAILURE, + ("Host search failed for domain [%s]\n", dom->name)); + } continue; } for (i = 0; i < num_hosts; i++) { ret = sss_ssh_make_ent(tmp_ctx, hosts[i], &ent); if (ret != EOK) { + DEBUG(SSSDBG_OP_FAILURE, + ("Failed to get SSH host public keys\n")); continue; } @@ -505,6 +511,8 @@ ssh_host_pubkeys_update_known_hosts(struct ssh_cmd_ctx *cmd_ctx) pubkey = sss_ssh_format_pubkey(tmp_ctx, ent, &ent->pubkeys[j], SSS_SSH_FORMAT_OPENSSH); if (!pubkey) { + DEBUG(SSSDBG_OP_FAILURE, + ("Out of memory formatting SSH public key\n")); continue; } |