2009-12-23 23:17:16 +03:00
/*
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
2009-12-23 23:17:16 +03:00
2005-06-03 15:23:15 +04:00
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
2007-07-10 06:07:03 +04:00
the Free Software Foundation ; either version 3 of the License , or
2005-06-03 15:23:15 +04:00
( at your option ) any later version .
2009-12-23 23:17:16 +03:00
2005-06-03 15:23:15 +04:00
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 .
2009-12-23 23:17:16 +03:00
2005-06-03 15:23:15 +04:00
You should have received a copy of the GNU General Public License
2007-07-10 06:07:03 +04:00
along with this program . If not , see < http : //www.gnu.org/licenses/>.
2005-06-03 15:23:15 +04:00
*/
2010-09-28 08:03:14 +04:00
# ifndef _KDC_KDC_H
# define _KDC_KDC_H
2005-06-03 15:23:15 +04:00
# include "system/kerberos.h"
2005-06-03 18:32:10 +04:00
# include "auth/kerberos/kerberos.h"
2008-08-01 19:24:24 +04:00
# include <hdb.h>
2021-12-24 06:57:42 +03:00
# include <heimbase.h>
2009-06-18 05:08:46 +04:00
# include <kdc.h>
2022-02-22 04:39:13 +03:00
# include <krb5/kdc-plugin.h>
2010-01-28 09:27:11 +03:00
# include "kdc/samba_kdc.h"
2016-06-10 12:10:50 +03:00
# include "kdc/kdc-server.h"
2005-06-03 15:23:15 +04:00
2010-01-21 17:57:41 +03:00
/* from hdb-samba4.c */
2010-01-28 08:08:36 +03:00
NTSTATUS hdb_samba4_create_kdc ( struct samba_kdc_base_context * base_ctx ,
krb5_context context , struct HDB * * db ) ;
2010-09-28 08:03:14 +04:00
2022-05-26 07:39:20 +03:00
NTSTATUS hdb_samba4_kpasswd_create_kdc ( struct samba_kdc_base_context * base_ctx ,
krb5_context context , struct HDB * * db ) ;
2022-12-01 05:35:56 +03:00
krb5_error_code hdb_samba4_set_ntstatus ( astgs_request_t r ,
NTSTATUS status ,
krb5_error_code error ) ;
2023-06-16 02:01:04 +03:00
struct authn_audit_info ;
krb5_error_code hdb_samba4_set_steal_client_audit_info ( astgs_request_t r ,
struct authn_audit_info * client_audit_info ) ;
krb5_error_code hdb_samba4_set_steal_server_audit_info ( astgs_request_t r ,
struct authn_audit_info * server_audit_info ) ;
2014-05-12 12:21:18 +04:00
/* from kdc-glue.c */
int kdc_check_pac ( krb5_context krb5_context ,
DATA_BLOB server_sig ,
struct PAC_SIGNATURE_DATA * kdc_sig ,
2022-02-22 09:41:14 +03:00
hdb_entry * ent ) ;
2023-09-29 03:53:24 +03:00
struct samba_kdc_entry_pac samba_kdc_get_device_pac ( const astgs_request_t r ) ;
2010-09-28 08:03:14 +04:00
# endif