2 * Unix SMB/CIFS implementation.
3 * MS-RPC client internal definitions
4 * Copyright (C) Chris Nicholls 2005.
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.
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, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #ifndef LIBMSRPC_INTERNAL_H
22 #define LIBMSRPC_INTERNAL_H
28 struct CacServerHandleInternal
{
29 /*stores the os type of the server*/
32 /*stores the initialized/active pipes*/
33 BOOL pipes
[PI_MAX_PIPES
];
35 /*underlying smbc context*/
38 /*did the user supply this SMBCCTX?*/
39 BOOL user_supplied_ctx
;
42 /*nessecary prototypes*/
43 BOOL
rid_in_list(uint32 rid
, uint32
*list
, uint32 list_len
);
45 int cac_ParseRegPath(char *path
, uint32
*reg_type
, char **key_name
);
47 REG_VALUE_DATA
*cac_MakeRegValueData(TALLOC_CTX
*mem_ctx
, uint32 data_type
, REGVAL_BUFFER buf
);
49 RPC_DATA_BLOB
*cac_MakeRpcDataBlob(TALLOC_CTX
*mem_ctx
, uint32 data_type
, REG_VALUE_DATA data
);
51 SAM_USERINFO_CTR
*cac_MakeUserInfoCtr(TALLOC_CTX
*mem_ctx
, CacUserInfo
*info
);
53 CacUserInfo
*cac_MakeUserInfo(TALLOC_CTX
*mem_ctx
, SAM_USERINFO_CTR
*ctr
);
54 CacGroupInfo
*cac_MakeGroupInfo(TALLOC_CTX
*mem_ctx
, GROUP_INFO_CTR
*ctr
);
55 GROUP_INFO_CTR
*cac_MakeGroupInfoCtr(TALLOC_CTX
*mem_ctx
, CacGroupInfo
*info
);
56 CacAliasInfo
*cac_MakeAliasInfo(TALLOC_CTX
*mem_ctx
, ALIAS_INFO_CTR ctr
);
57 ALIAS_INFO_CTR
*cac_MakeAliasInfoCtr(TALLOC_CTX
*mem_ctx
, CacAliasInfo
*info
);
58 CacDomainInfo
*cac_MakeDomainInfo(TALLOC_CTX
*mem_ctx
, SAM_UNK_INFO_1
*info1
, SAM_UNK_INFO_2
*info2
, SAM_UNK_INFO_12
*info12
);
59 CacService
*cac_MakeServiceArray(TALLOC_CTX
*mem_ctx
, ENUM_SERVICES_STATUS
*svc
, uint32 num_services
);
60 int cac_InitCacServiceConfig(TALLOC_CTX
*mem_ctx
, SERVICE_CONFIG
*src
, CacServiceConfig
*dest
);
62 SMBCSRV
*smbc_attr_server(SMBCCTX
*context
,
63 const char *server
, const char *share
,
65 fstring username
, fstring password
,
69 #endif /* LIBMSRPC_INTERNAL_H */