summaryrefslogtreecommitdiff
path: root/source4/kdc
diff options
context:
space:
mode:
Diffstat (limited to 'source4/kdc')
-rw-r--r--source4/kdc/kdc.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/source4/kdc/kdc.c b/source4/kdc/kdc.c
index f8e9b02fa5..d39e616e7e 100644
--- a/source4/kdc/kdc.c
+++ b/source4/kdc/kdc.c
@@ -800,7 +800,19 @@ static void kdc_task_init(struct task_server *task)
return;
}
- krb5_kdc_windc_init(kdc->smb_krb5_context->krb5_context);
+ ret = krb5_kdc_windc_init(kdc->smb_krb5_context->krb5_context);
+
+ if(ret) {
+ task_server_terminate(task, "kdc: failed to init windc plugin", true);
+ return;
+ }
+
+ ret = krb5_kdc_pkinit_config(kdc->smb_krb5_context->krb5_context, kdc->config);
+
+ if(ret) {
+ task_server_terminate(task, "kdc: failed to init kdc pkinit subsystem", true);
+ return;
+ }
/* start listening on the configured network interfaces */
status = kdc_startup_interfaces(kdc, task->lp_ctx, ifaces);