2005-06-03 15:23:15 +04:00
/*
Unix SMB / CIFS implementation .
KDC structures
Copyright ( C ) Andrew Tridgell 2005
Copyright ( C ) Andrew Bartlett < abartlet @ samba . org > 2005
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
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
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 0213 9 , USA .
*/
# include "system/kerberos.h"
2005-06-03 18:32:10 +04:00
# include "auth/kerberos/kerberos.h"
2005-06-07 11:22:25 +04:00
# include "heimdal/kdc/kdc.h"
2005-06-29 17:55:09 +04:00
# include "kdc/pac-glue.h"
2005-06-03 15:23:15 +04:00
2005-06-29 17:55:09 +04:00
krb5_error_code hdb_ldb_create ( TALLOC_CTX * mem_ctx ,
krb5_context context , struct HDB * * db , const char * arg ) ;
2005-06-03 15:23:15 +04:00
2005-06-04 09:35:27 +04:00
/* 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 ;
} ;
2005-06-03 15:23:15 +04:00
/*
2005-06-04 09:35:27 +04:00
top level context structure for the kdc server
2005-06-03 15:23:15 +04:00
*/
struct kdc_server {
struct task_server * task ;
2005-07-05 14:05:40 +04:00
krb5_kdc_configuration * config ;
2005-06-04 15:17:05 +04:00
struct smb_krb5_context * smb_krb5_context ;
2005-06-03 15:23:15 +04:00
} ;
2005-06-04 09:35:27 +04:00
/* hold information about one kdc socket */
2005-06-03 15:23:15 +04:00
struct kdc_socket {
struct socket_context * sock ;
struct kdc_server * kdc ;
struct fd_event * fde ;
2005-06-04 09:35:27 +04:00
/* a queue of outgoing replies that have been deferred */
2005-06-03 15:23:15 +04:00
struct kdc_reply * send_queue ;
} ;
2005-06-04 09:35:27 +04:00