1 | /*
|
---|
2 | * Unix SMB/CIFS implementation.
|
---|
3 | * MS-RPC client internal definitions
|
---|
4 | * Copyright (C) Chris Nicholls 2005.
|
---|
5 | *
|
---|
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 2 of the License, or
|
---|
9 | * (at your option) any later version.
|
---|
10 | *
|
---|
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.
|
---|
15 | *
|
---|
16 | * You should have received a copy of the GNU General Public License
|
---|
17 | * along with this program; if not, write to the Free Software
|
---|
18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
19 | */
|
---|
20 |
|
---|
21 | #ifndef LIBMSRPC_INTERNAL_H
|
---|
22 | #define LIBMSRPC_INTERNAL_H
|
---|
23 |
|
---|
24 | #include "libmsrpc.h"
|
---|
25 |
|
---|
26 | /*definitions*/
|
---|
27 |
|
---|
28 | struct CacServerHandleInternal {
|
---|
29 | /*stores the os type of the server*/
|
---|
30 | uint16 srv_level;
|
---|
31 |
|
---|
32 | /*stores the initialized/active pipes*/
|
---|
33 | BOOL pipes[PI_MAX_PIPES];
|
---|
34 |
|
---|
35 | /*underlying smbc context*/
|
---|
36 | SMBCCTX *ctx;
|
---|
37 |
|
---|
38 | /*did the user supply this SMBCCTX?*/
|
---|
39 | BOOL user_supplied_ctx;
|
---|
40 | };
|
---|
41 |
|
---|
42 | /*used to get a struct rpc_pipe_client* to be passed into rpccli* calls*/
|
---|
43 |
|
---|
44 | /*nessecary prototypes*/
|
---|
45 | BOOL rid_in_list(uint32 rid, uint32 *list, uint32 list_len);
|
---|
46 |
|
---|
47 | int cac_ParseRegPath(char *path, uint32 *reg_type, char **key_name);
|
---|
48 |
|
---|
49 | REG_VALUE_DATA *cac_MakeRegValueData(TALLOC_CTX *mem_ctx, uint32 data_type, REGVAL_BUFFER buf);
|
---|
50 |
|
---|
51 | RPC_DATA_BLOB *cac_MakeRpcDataBlob(TALLOC_CTX *mem_ctx, uint32 data_type, REG_VALUE_DATA data);
|
---|
52 |
|
---|
53 | SAM_USERINFO_CTR *cac_MakeUserInfoCtr(TALLOC_CTX *mem_ctx, CacUserInfo *info);
|
---|
54 |
|
---|
55 | CacUserInfo *cac_MakeUserInfo(TALLOC_CTX *mem_ctx, SAM_USERINFO_CTR *ctr);
|
---|
56 | CacGroupInfo *cac_MakeGroupInfo(TALLOC_CTX *mem_ctx, GROUP_INFO_CTR *ctr);
|
---|
57 | GROUP_INFO_CTR *cac_MakeGroupInfoCtr(TALLOC_CTX *mem_ctx, CacGroupInfo *info);
|
---|
58 | CacAliasInfo *cac_MakeAliasInfo(TALLOC_CTX *mem_ctx, ALIAS_INFO_CTR ctr);
|
---|
59 | ALIAS_INFO_CTR *cac_MakeAliasInfoCtr(TALLOC_CTX *mem_ctx, CacAliasInfo *info);
|
---|
60 | CacDomainInfo *cac_MakeDomainInfo(TALLOC_CTX *mem_ctx, SAM_UNK_INFO_1 *info1, SAM_UNK_INFO_2 *info2, SAM_UNK_INFO_12 *info12);
|
---|
61 | CacService *cac_MakeServiceArray(TALLOC_CTX *mem_ctx, ENUM_SERVICES_STATUS *svc, uint32 num_services);
|
---|
62 | int cac_InitCacServiceConfig(TALLOC_CTX *mem_ctx, SERVICE_CONFIG *src, CacServiceConfig *dest);
|
---|
63 |
|
---|
64 | /*moved to libmsrpc.h*/
|
---|
65 | /*struct rpc_pipe_client *cac_GetPipe(CacServerHandle *hnd, int pi_idx);*/
|
---|
66 |
|
---|
67 | SMBCSRV *smbc_attr_server(SMBCCTX *context,
|
---|
68 | const char *server, const char *share,
|
---|
69 | fstring workgroup,
|
---|
70 | fstring username, fstring password,
|
---|
71 | POLICY_HND *pol);
|
---|
72 |
|
---|
73 |
|
---|
74 | #endif /* LIBMSRPC_INTERNAL_H */
|
---|