2010-01-26 19:43:54 +03:00
/*
Unix SMB / CIFS implementation .
PAC Glue between Samba and the KDC
Copyright ( C ) Andrew Bartlett < abartlet @ samba . org > 2005 - 2009
Copyright ( C ) Simo Sorce < idra @ samba . org > 2010
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 3 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 , see < http : //www.gnu.org/licenses/>.
*/
2016-05-13 00:20:39 +03:00
krb5_error_code samba_kdc_encrypt_pac_credentials ( krb5_context context ,
const krb5_keyblock * pkreplykey ,
const DATA_BLOB * cred_ndr_blob ,
TALLOC_CTX * mem_ctx ,
DATA_BLOB * cred_info_blob ) ;
2010-01-26 19:43:54 +03:00
krb5_error_code samba_make_krb5_pac ( krb5_context context ,
2016-05-13 00:20:39 +03:00
const DATA_BLOB * logon_blob ,
const DATA_BLOB * cred_blob ,
2016-05-13 01:13:33 +03:00
const DATA_BLOB * upn_blob ,
2016-05-13 00:20:39 +03:00
const DATA_BLOB * deleg_blob ,
2010-01-26 19:43:54 +03:00
krb5_pac * pac ) ;
2014-05-10 01:26:42 +04:00
bool samba_princ_needs_pac ( struct samba_kdc_entry * skdc_entry ) ;
2010-01-26 19:43:54 +03:00
2014-05-10 02:49:44 +04:00
int samba_krbtgt_is_in_db ( struct samba_kdc_entry * skdc_entry ,
bool * is_in_db ,
bool * is_untrusted ) ;
2010-09-28 06:53:06 +04:00
2016-05-13 00:20:39 +03:00
NTSTATUS samba_kdc_get_pac_blobs ( TALLOC_CTX * mem_ctx ,
struct samba_kdc_entry * skdc_entry ,
DATA_BLOB * * _logon_info_blob ,
2016-05-13 01:13:33 +03:00
DATA_BLOB * * _cred_ndr_blob ,
DATA_BLOB * * _upn_info_blob ) ;
2010-01-26 19:43:54 +03:00
NTSTATUS samba_kdc_get_pac_blob ( TALLOC_CTX * mem_ctx ,
2014-05-10 02:26:21 +04:00
struct samba_kdc_entry * skdc_entry ,
2016-05-13 00:20:39 +03:00
DATA_BLOB * * _logon_info_blob ) ;
2010-01-26 19:43:54 +03:00
NTSTATUS samba_kdc_update_pac_blob ( TALLOC_CTX * mem_ctx ,
krb5_context context ,
2018-02-01 20:40:58 +03:00
struct samba_kdc_entry * krbtgt ,
struct samba_kdc_entry * server ,
2012-01-11 11:06:55 +04:00
const krb5_pac pac , DATA_BLOB * pac_blob ,
struct PAC_SIGNATURE_DATA * pac_srv_sig ,
struct PAC_SIGNATURE_DATA * pac_kdc_sig ) ;
2011-06-28 16:46:49 +04:00
NTSTATUS samba_kdc_update_delegation_info_blob ( TALLOC_CTX * mem_ctx ,
krb5_context context ,
const krb5_pac pac ,
const krb5_principal server_principal ,
const krb5_principal proxy_principal ,
DATA_BLOB * pac_blob ) ;
2010-01-26 19:43:54 +03:00
2010-01-31 20:49:07 +03:00
krb5_error_code samba_kdc_map_policy_err ( NTSTATUS nt_status ) ;
NTSTATUS samba_kdc_check_client_access ( struct samba_kdc_entry * kdc_entry ,
const char * client_name ,
const char * workstation ,
bool password_change ) ;