s4-kdc: Register the MIT irpc PAC validation service
authorAndreas Schneider <asn@samba.org>
Thu, 8 Sep 2016 07:56:37 +0000 (09:56 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Sat, 29 Apr 2017 21:31:09 +0000 (23:31 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlet <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/kdc/kdc-service-mit.c
source4/kdc/wscript_build

index fde7c06..36d0063 100644 (file)
@@ -31,6 +31,8 @@
 #include "dynconfig.h"
 #include "libds/common/roles.h"
 
+#include "source4/kdc/mit_kdc_irpc.h"
+
 static void mitkdc_server_done(struct tevent_req *subreq);
 
 /*
@@ -40,6 +42,7 @@ void mitkdc_task_init(struct task_server *task)
 {
        struct tevent_req *subreq;
        const char * const *kdc_cmd;
+       NTSTATUS status;
 
        task_server_set_title(task, "task[mitkdc_parent]");
 
@@ -87,6 +90,15 @@ void mitkdc_task_init(struct task_server *task)
        tevent_req_set_callback(subreq, mitkdc_server_done, task);
 
        DEBUG(5,("Started krb5kdc process\n"));
+
+       status = samba_setup_mit_kdc_irpc(task);
+       if (!NT_STATUS_IS_OK(status)) {
+               task_server_terminate(task,
+                                     "Failed to setup kdc irpc service",
+                                     true);
+       }
+
+       DEBUG(5,("Started irpc service for kdc_server\n"));
 }
 
 /*
index 9d82881..a19932c 100644 (file)
@@ -36,6 +36,7 @@ if bld.CONFIG_GET('SAMBA_USES_MITKDC'):
                           service
                           talloc
                           UTIL_RUNCMD
+                          MIT_KDC_IRPC
                      ''',
                      internal_module=False)