summaryrefslogtreecommitdiffstats
path: root/src/responder/ssh/sshsrv.c
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2015-07-15 09:40:00 +0200
committerSumit Bose <sbose@redhat.com>2015-07-28 10:48:28 +0200
commitaacb60a750f267b0d9ac627a70c0d647a5901894 (patch)
treeeea601a3e54d74cad741695cef05258763888fe1 /src/responder/ssh/sshsrv.c
parent290e5b6fe6b1f9396666719110c165be16baea24 (diff)
downloadsssd-aacb60a750f267b0d9ac627a70c0d647a5901894.tar.gz
sssd-aacb60a750f267b0d9ac627a70c0d647a5901894.tar.xz
sssd-aacb60a750f267b0d9ac627a70c0d647a5901894.zip
ssh: generate public keys from certificatereview-sc
Resolves: https://fedorahosted.org/sssd/ticket/2711
Diffstat (limited to 'src/responder/ssh/sshsrv.c')
-rw-r--r--src/responder/ssh/sshsrv.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/responder/ssh/sshsrv.c b/src/responder/ssh/sshsrv.c
index 9439b9d89..d4e202d87 100644
--- a/src/responder/ssh/sshsrv.c
+++ b/src/responder/ssh/sshsrv.c
@@ -163,6 +163,15 @@ int ssh_process_init(TALLOC_CTX *mem_ctx,
goto fail;
}
+ ret = confdb_get_string(ssh_ctx->rctx->cdb, ssh_ctx,
+ CONFDB_SSH_CONF_ENTRY, CONFDB_SSH_CA_DB,
+ CONFDB_DEFAULT_SSH_CA_DB, &ssh_ctx->ca_db);
+ if (ret != EOK) {
+ DEBUG(SSSDBG_FATAL_FAILURE, "Error reading CA DB from confdb (%d) [%s]\n",
+ ret, strerror(ret));
+ goto fail;
+ }
+
ret = schedule_get_domains_task(rctx, rctx->ev, rctx, NULL);
if (ret != EOK) {
DEBUG(SSSDBG_FATAL_FAILURE, "schedule_get_domains_tasks failed.\n");