| 1 | /*
 | 
|---|
| 2 |    Unix SMB/CIFS implementation.
 | 
|---|
| 3 | 
 | 
|---|
| 4 |    Database Glue between Samba and the KDC
 | 
|---|
| 5 | 
 | 
|---|
| 6 |    Copyright (C) Andrew Bartlett <abartlet@samba.org> 2005-2009
 | 
|---|
| 7 |    Copyright (C) Simo Sorce <idra@samba.org> 2010
 | 
|---|
| 8 | 
 | 
|---|
| 9 |    This program is free software; you can redistribute it and/or modify
 | 
|---|
| 10 |    it under the terms of the GNU General Public License as published by
 | 
|---|
| 11 |    the Free Software Foundation; either version 3 of the License, or
 | 
|---|
| 12 |    (at your option) any later version.
 | 
|---|
| 13 | 
 | 
|---|
| 14 |    This program is distributed in the hope that it will be useful,
 | 
|---|
| 15 |    but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
|---|
| 16 |    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
|---|
| 17 |    GNU General Public License for more details.
 | 
|---|
| 18 | 
 | 
|---|
| 19 | 
 | 
|---|
| 20 |    You should have received a copy of the GNU General Public License
 | 
|---|
| 21 |    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
|---|
| 22 | */
 | 
|---|
| 23 | 
 | 
|---|
| 24 | krb5_error_code samba_kdc_fetch(krb5_context context,
 | 
|---|
| 25 |                                 struct samba_kdc_db_context *kdc_db_ctx,
 | 
|---|
| 26 |                                 krb5_const_principal principal,
 | 
|---|
| 27 |                                 unsigned flags,
 | 
|---|
| 28 |                                 krb5_kvno kvno,
 | 
|---|
| 29 |                                 hdb_entry_ex *entry_ex);
 | 
|---|
| 30 | 
 | 
|---|
| 31 | krb5_error_code samba_kdc_firstkey(krb5_context context,
 | 
|---|
| 32 |                                    struct samba_kdc_db_context *kdc_db_ctx,
 | 
|---|
| 33 |                                    hdb_entry_ex *entry);
 | 
|---|
| 34 | 
 | 
|---|
| 35 | krb5_error_code samba_kdc_nextkey(krb5_context context,
 | 
|---|
| 36 |                                   struct samba_kdc_db_context *kdc_db_ctx,
 | 
|---|
| 37 |                                   hdb_entry_ex *entry);
 | 
|---|
| 38 | 
 | 
|---|
| 39 | krb5_error_code
 | 
|---|
| 40 | samba_kdc_check_identical_client_and_server(krb5_context context,
 | 
|---|
| 41 |                                             struct samba_kdc_db_context *kdc_db_ctx,
 | 
|---|
| 42 |                                             hdb_entry_ex *entry,
 | 
|---|
| 43 |                                             krb5_const_principal target_principal);
 | 
|---|
| 44 | 
 | 
|---|
| 45 | krb5_error_code
 | 
|---|
| 46 | samba_kdc_check_pkinit_ms_upn_match(krb5_context context,
 | 
|---|
| 47 |                                     struct samba_kdc_db_context *kdc_db_ctx,
 | 
|---|
| 48 |                                     hdb_entry_ex *entry,
 | 
|---|
| 49 |                                     krb5_const_principal certificate_principal);
 | 
|---|
| 50 | 
 | 
|---|
| 51 | NTSTATUS samba_kdc_setup_db_ctx(TALLOC_CTX *mem_ctx, struct samba_kdc_base_context *base_ctx,
 | 
|---|
| 52 |                                 struct samba_kdc_db_context **kdc_db_ctx_out);
 | 
|---|