source: trunk/server/source4/kdc/mit_samba_interface.h

Last change on this file was 745, checked in by Silvan Scherrer, 13 years ago

Samba Server: updated trunk to 3.6.0

File size: 2.4 KB
Line 
1/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 * plugins/kdb/samba/kdb_samba_interface.h
4 *
5 * Copyright (c) 2009, Simo Sorce <idra@samba.org>
6 * All Rights Reserved.
7 *
8 * Export of this software from the United States of America may
9 * require a specific license from the United States Government.
10 * It is the responsibility of any person or organization contemplating
11 * export to obtain such a license before exporting.
12 *
13 * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
14 * distribute this software and its documentation for any purpose and
15 * without fee is hereby granted, provided that the above copyright
16 * notice appear in all copies and that both that copyright notice and
17 * this permission notice appear in supporting documentation, and that
18 * the name of M.I.T. not be used in advertising or publicity pertaining
19 * to distribution of the software without specific, written prior
20 * permission. Furthermore if you modify this software you must label
21 * your software as modified software and not distribute it in such a
22 * fashion that it might be confused with the original M.I.T. software.
23 * M.I.T. makes no representations about the suitability of
24 * this software for any purpose. It is provided "as is" without express
25 * or implied warranty.
26 *
27 */
28
29#define MIT_SAMBA_INTERFACE_VERSION 1
30
31#ifndef _SAMBA_BUILD_
32typedef struct datablob {
33 uint8_t *data;
34 size_t length;
35} DATA_BLOB;
36#endif
37
38struct mit_samba_context;
39
40struct mit_samba_function_table {
41 int (*init)(struct mit_samba_context **ctx);
42 void (*fini)(struct mit_samba_context *ctx);
43
44 /* db */
45 int (*get_principal)(struct mit_samba_context *, char *,
46 unsigned int, hdb_entry_ex **);
47 int (*get_firstkey)(struct mit_samba_context *, hdb_entry_ex **);
48 int (*get_nextkey)(struct mit_samba_context *, hdb_entry_ex **);
49
50 /* windc */
51 int (*get_pac)(struct mit_samba_context *, hdb_entry_ex *, DATA_BLOB *);
52 int (*update_pac)(struct mit_samba_context *, hdb_entry_ex *,
53 DATA_BLOB *, DATA_BLOB *);
54 int (*client_access)(struct mit_samba_context *,
55 hdb_entry_ex *, const char *,
56 hdb_entry_ex *, const char *,
57 const char *, bool, DATA_BLOB *);
58 int (*check_s4u2proxy)(struct mit_samba_context *,
59 hdb_entry_ex *, const char *, bool);
60};
Note: See TracBrowser for help on using the repository browser.