r12269: Update to current lorikeet-heimdal. This changed the way the hdb
[ab/samba.git/.git] / source4 / kdc / pac-glue.h
1 /* 
2    Unix SMB/CIFS implementation.
3
4    PAC Glue between Samba and the KDC
5    
6    Copyright (C) Andrew Bartlett <abartlet@samba.org> 2005
7
8    This program is free software; you can redistribute it and/or modify
9    it under the terms of the GNU General Public License as published by
10    the Free Software Foundation; either version 2 of the License, or
11    (at your option) any later version.
12    
13    This program is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16    GNU General Public License for more details.
17
18    
19    You should have received a copy of the GNU General Public License
20    along with this program; if not, write to the Free Software
21    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 */
23
24  struct hdb_ldb_private {
25         struct ldb_context *samdb;
26         struct ldb_message *msg;
27         struct ldb_message *realm_ref_msg;
28         hdb_entry_ex *entry_ex;
29  };
30
31  krb5_error_code hdb_ldb_authz_data_as_req(krb5_context context, struct hdb_entry_ex *entry_ex, 
32                                            METHOD_DATA* pa_data_seq,
33                                            time_t authtime,
34                                            EncryptionKey *tgtkey,
35                                            EncryptionKey *sessionkey,
36                                            AuthorizationData **out);
37
38  krb5_error_code hdb_ldb_authz_data_tgs_req(krb5_context context, struct hdb_entry_ex *entry_ex, 
39                                             krb5_principal client, 
40                                             AuthorizationData *in, 
41                                             time_t authtime,
42                                             EncryptionKey *tgtkey,
43                                             EncryptionKey *servicekey,
44                                             EncryptionKey *sessionkey,
45                                             AuthorizationData **out);
46  krb5_error_code hdb_ldb_check_client_access(krb5_context context, hdb_entry_ex *entry_ex, 
47                                              HostAddresses *addresses);