r16237: Use an appropriate basedn for these searches, so they occour into the
[jelmer/samba4-debian.git] / source / kdc / kdc.h
index 2965adc8d22674f265c9ef3d5236f5bfc270febe..f0d2479a251ebbfa28c9a08e03d058d462593b06 100644 (file)
 #include "system/kerberos.h"
 #include "auth/kerberos/kerberos.h"
 #include "heimdal/kdc/kdc.h"
+#include "heimdal/lib/hdb/hdb.h"
 #include "kdc/pac-glue.h"
 
-krb5_error_code hdb_ldb_create(TALLOC_CTX *mem_ctx, 
-                              krb5_context context, struct HDB **db, const char *arg);
+struct kdc_server;
+struct socket_address;
 
-/* hold all the info needed to send a reply */
-struct kdc_reply {
-       struct kdc_reply *next, *prev;
-       const char *dest_address;
-       int dest_port;
-       DATA_BLOB packet;
-};
+NTSTATUS kdc_hdb_ldb_create(TALLOC_CTX *mem_ctx, 
+                           krb5_context context, struct HDB **db, const char *arg);
+BOOL kpasswdd_process(struct kdc_server *kdc,
+                     TALLOC_CTX *mem_ctx, 
+                     DATA_BLOB *input, 
+                     DATA_BLOB *reply,
+                     struct socket_address *peer_addr, 
+                     struct socket_address *my_addr);
 
 /*
   top level context structure for the kdc server
@@ -46,13 +48,4 @@ struct kdc_server {
        struct smb_krb5_context *smb_krb5_context;
 };
 
-/* hold information about one kdc socket */
-struct kdc_socket {
-       struct socket_context *sock;
-       struct kdc_server *kdc;
-       struct fd_event *fde;
-
-       /* a queue of outgoing replies that have been deferred */
-       struct kdc_reply *send_queue;
-};