Fix bug 8196 - Many (newer) header files don't have copyright / GPL header comments.
[obnox/samba-ctdb.git] / auth / auth_sam_reply.h
1 #ifndef __AUTH_AUTH_SAM_REPLY_H__
2 #define __AUTH_AUTH_SAM_REPLY_H__
3
4 /*
5    Unix SMB/CIFS implementation.
6
7    (C) 2001 Samba Team.
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    You should have received a copy of the GNU General Public License
20    along with this program.  If not, see <http://www.gnu.org/licenses/>.
21 */
22
23 #undef _PRINTF_ATTRIBUTE
24 #define _PRINTF_ATTRIBUTE(a1, a2) PRINTF_ATTRIBUTE(a1, a2)
25 /* this file contains prototypes for functions that are private
26  * to this subsystem or library. These functions should not be
27  * used outside this particular subsystem! */
28
29
30 /* The following definitions come from auth/auth_sam_reply.c  */
31
32 NTSTATUS auth_convert_user_info_dc_sambaseinfo(TALLOC_CTX *mem_ctx,
33                                               struct auth_user_info_dc *user_info_dc,
34                                               struct netr_SamBaseInfo **_sam);
35 NTSTATUS auth_convert_user_info_dc_saminfo3(TALLOC_CTX *mem_ctx,
36                                            struct auth_user_info_dc *user_info_dc,
37                                            struct netr_SamInfo3 **_sam3);
38
39 /**
40  * Make a user_info_dc struct from the info3 returned by a domain logon
41  */
42 NTSTATUS make_user_info_dc_netlogon_validation(TALLOC_CTX *mem_ctx,
43                                               const char *account_name,
44                                               uint16_t validation_level,
45                                               union netr_Validation *validation,
46                                               struct auth_user_info_dc **_user_info_dc);
47
48 /**
49  * Make a user_info_dc struct from the PAC_LOGON_INFO supplied in the krb5 logon
50  */
51 NTSTATUS make_user_info_dc_pac(TALLOC_CTX *mem_ctx,
52                               struct PAC_LOGON_INFO *pac_logon_info,
53                               struct auth_user_info_dc **_user_info_dc);
54 #undef _PRINTF_ATTRIBUTE
55 #define _PRINTF_ATTRIBUTE(a1, a2)
56
57 #endif /* __AUTH_AUTH_SAM_REPLY_H__ */