r8586: register the kdc with irpc so we can tell that it is up
[bbaumbach/samba-autobuild/.git] / source4 / kdc / kdc.c
index 1540e0f4a198fa1f43d0151f298a5d41930fcb3f..f011c39a3c1170eb7dcf811e1b27b075b82e03c8 100644 (file)
@@ -28,6 +28,7 @@
 #include "kdc/kdc.h"
 #include "system/network.h"
 #include "dlinklist.h"
+#include "lib/messaging/irpc.h"
 
 
 
@@ -97,7 +98,7 @@ static void kdc_recv_handler(struct kdc_socket *kdc_socket)
        blob.length = nread;
        
        DEBUG(2,("Received krb5 packet of length %d from %s:%d\n", 
-                blob.length, src_addr, src_port));
+                (int)blob.length, src_addr, src_port));
        
        /* TODO:  This really should be in a utility function somewhere */
        ZERO_STRUCT(src_sock_addr);
@@ -293,6 +294,8 @@ static void kdc_task_init(struct task_server *task)
                task_server_terminate(task, "kdc failed to setup interfaces");
                return;
        }
+
+       irpc_add_name(task->msg_ctx, "kdc_server");
 }