s4:kdc: strictly have 2 16-bit parts in krbtgt kvnos
[Samba.git] / source3 / rpc_client / util_netlogon.h
blob85680a9989f68f8c0db4995fa97ea6613e98f1d7
1 /*
2 Unix SMB/CIFS implementation.
3 Authentication utility functions
4 Copyright (C) Volker Lendecke 2010
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef _RPC_CLIENT_UTIL_NETLOGON_H_
21 #define _RPC_CLIENT_UTIL_NETLOGON_H_
23 /* The following definitions come from rpc_client/util_netlogon.c */
25 NTSTATUS copy_netr_SamBaseInfo(TALLOC_CTX *mem_ctx,
26 const struct netr_SamBaseInfo *in,
27 struct netr_SamBaseInfo *out);
28 NTSTATUS copy_netr_SamInfo3(TALLOC_CTX *mem_ctx,
29 const struct netr_SamInfo3 *in,
30 struct netr_SamInfo3 **pout);
31 NTSTATUS map_validation_to_info3(TALLOC_CTX *mem_ctx,
32 uint16_t validation_level,
33 union netr_Validation *validation,
34 struct netr_SamInfo3 **info3_p);
35 NTSTATUS copy_netr_SamInfo6(TALLOC_CTX *mem_ctx,
36 const struct netr_SamInfo6 *in,
37 struct netr_SamInfo6 **pout);
38 NTSTATUS map_validation_to_info6(TALLOC_CTX *mem_ctx,
39 uint16_t validation_level,
40 union netr_Validation *validation,
41 struct netr_SamInfo6 **info6_p);
42 NTSTATUS map_info3_to_validation(TALLOC_CTX *mem_ctx,
43 struct netr_SamInfo3 *info3,
44 uint16_t *_validation_level,
45 union netr_Validation **_validation);
46 NTSTATUS map_info6_to_validation(TALLOC_CTX *mem_ctx,
47 const struct netr_SamInfo6 *info6,
48 uint16_t *_validation_level,
49 union netr_Validation **_validation);
50 NTSTATUS copy_netr_DsRGetDCNameInfo(TALLOC_CTX *mem_ctx,
51 const struct netr_DsRGetDCNameInfo *in,
52 struct netr_DsRGetDCNameInfo **pout);
54 #endif /* _RPC_CLIENT_UTIL_NETLOGON_H_ */