passdb: Use dom_sid_str_buf
[amitay/samba.git] / source4 / kdc / kdc-server.h
index 284a4ec8b40a47edb803eda49508b5e52662fc18..fd883c2e4b459ffd9011e1e963284a61c9590ca6 100644 (file)
 #define _KDC_SERVER_H
 
 #include "system/kerberos.h"
+#include "auth/kerberos/kerberos.h"
 
 struct tsocket_address;
+struct model_ops;
 
 /*
  * Context structure for the kdc server
@@ -38,6 +40,7 @@ struct kdc_server {
        struct ldb_context *samdb;
        bool am_rodc;
        uint32_t proxy_timeout;
+       const char *keytab_name;
        void *private_data;
 };
 
@@ -69,4 +72,12 @@ struct kdc_udp_socket {
        struct tevent_queue *send_queue;
 };
 
+NTSTATUS kdc_add_socket(struct kdc_server *kdc,
+                       const struct model_ops *model_ops,
+                       const char *name,
+                       const char *address,
+                       uint16_t port,
+                       kdc_process_fn_t process,
+                       bool udp_only);
+
 #endif /* _KDC_SERVER_H */