r24712: No longer expose the 'BOOL' data type in any interfaces.
[samba.git] / source4 / kdc / kdc.h
index 93568794157fe5c6e56427fa95d4d699a62e84ad..9d031b8f7dc5769a1a0aa053b448d4cbc9158148 100644 (file)
@@ -8,7 +8,7 @@
    
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
+   the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
    GNU General Public License for more details.
    
    You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 #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"
+#include "kdc/pac_glue.h"
 
 struct kdc_server;
+struct socket_address;
 
-NTSTATUS hdb_ldb_create(TALLOC_CTX *mem_ctx, 
-                       krb5_context context, struct HDB **db, const char *arg);
-BOOL kpasswdd_process(struct kdc_server *kdc,
+extern TALLOC_CTX *kdc_mem_ctx;
+
+bool kpasswdd_process(struct kdc_server *kdc,
                      TALLOC_CTX *mem_ctx, 
                      DATA_BLOB *input, 
                      DATA_BLOB *reply,
-                     const char *peer_addr,
-                     int peer_port,
-                     const char *my_addr,
-                     int my_port);
+                     struct socket_address *peer_addr, 
+                     struct socket_address *my_addr,
+                     int datagram_reply);
 
 /*
   top level context structure for the kdc server
@@ -50,3 +49,9 @@ struct kdc_server {
 };
 
 
+struct hdb_ldb_private {
+       struct ldb_context *samdb;
+       struct ldb_message *msg;
+       struct ldb_message *realm_ref_msg;
+       hdb_entry_ex *entry_ex;
+};