4 /* This file is automatically generated with "make proto". DO NOT EDIT */
7 /* The following definitions come from auth/auth.c */
9 NTSTATUS
smb_register_auth(int version
, const char *name
, auth_init_function init
);
10 bool load_auth_module(struct auth_context
*auth_context
,
11 const char *module
, auth_methods
**ret
) ;
12 NTSTATUS
make_auth_context_subsystem(struct auth_context
**auth_context
) ;
13 NTSTATUS
make_auth_context_fixed(struct auth_context
**auth_context
, uchar chal
[8]) ;
15 /* The following definitions come from auth/auth_builtin.c */
17 NTSTATUS
auth_builtin_init(void);
19 /* The following definitions come from auth/auth_compat.c */
21 NTSTATUS
check_plaintext_password(const char *smb_name
, DATA_BLOB plaintext_password
, auth_serversupplied_info
**server_info
);
22 bool password_ok(const char *smb_name
, DATA_BLOB password_blob
);
24 /* The following definitions come from auth/auth_domain.c */
26 NTSTATUS
auth_domain_init(void) ;
28 /* The following definitions come from auth/auth_ntlmssp.c */
30 NTSTATUS
auth_ntlmssp_start(AUTH_NTLMSSP_STATE
**auth_ntlmssp_state
);
31 void auth_ntlmssp_end(AUTH_NTLMSSP_STATE
**auth_ntlmssp_state
);
32 NTSTATUS
auth_ntlmssp_update(AUTH_NTLMSSP_STATE
*auth_ntlmssp_state
,
33 const DATA_BLOB request
, DATA_BLOB
*reply
) ;
35 /* The following definitions come from auth/auth_sam.c */
37 NTSTATUS
auth_sam_init(void);
39 /* The following definitions come from auth/auth_server.c */
41 NTSTATUS
auth_server_init(void);
43 /* The following definitions come from auth/auth_unix.c */
45 NTSTATUS
auth_unix_init(void);
47 /* The following definitions come from auth/auth_util.c */
49 NTSTATUS
make_user_info_map(auth_usersupplied_info
**user_info
,
51 const char *client_domain
,
52 const char *wksta_name
,
53 DATA_BLOB
*lm_pwd
, DATA_BLOB
*nt_pwd
,
54 DATA_BLOB
*lm_interactive_pwd
, DATA_BLOB
*nt_interactive_pwd
,
57 bool make_user_info_netlogon_network(auth_usersupplied_info
**user_info
,
59 const char *client_domain
,
60 const char *wksta_name
,
61 uint32 logon_parameters
,
62 const uchar
*lm_network_pwd
,
64 const uchar
*nt_network_pwd
,
66 bool make_user_info_netlogon_interactive(auth_usersupplied_info
**user_info
,
68 const char *client_domain
,
69 const char *wksta_name
,
70 uint32 logon_parameters
,
72 const uchar lm_interactive_pwd
[16],
73 const uchar nt_interactive_pwd
[16],
74 const uchar
*dc_sess_key
);
75 bool make_user_info_for_reply(auth_usersupplied_info
**user_info
,
77 const char *client_domain
,
79 DATA_BLOB plaintext_password
);
80 NTSTATUS
make_user_info_for_reply_enc(auth_usersupplied_info
**user_info
,
82 const char *client_domain
,
83 DATA_BLOB lm_resp
, DATA_BLOB nt_resp
);
84 bool make_user_info_guest(auth_usersupplied_info
**user_info
) ;
85 NTSTATUS
make_server_info_sam(auth_serversupplied_info
**server_info
,
86 struct samu
*sampass
);
87 NTSTATUS
create_local_token(auth_serversupplied_info
*server_info
);
88 NTSTATUS
create_token_from_username(TALLOC_CTX
*mem_ctx
, const char *username
,
90 uid_t
*uid
, gid_t
*gid
,
91 char **found_username
,
92 struct nt_user_token
**token
);
93 bool user_in_group_sid(const char *username
, const DOM_SID
*group_sid
);
94 bool user_in_group(const char *username
, const char *groupname
);
95 NTSTATUS
make_server_info_pw(auth_serversupplied_info
**server_info
,
98 bool init_guest_info(void);
99 NTSTATUS
make_server_info_guest(auth_serversupplied_info
**server_info
);
100 bool copy_current_user(struct current_user
*dst
, struct current_user
*src
);
101 bool set_current_user_guest(struct current_user
*dst
);
102 struct passwd
*smb_getpwnam( TALLOC_CTX
*mem_ctx
, char *domuser
,
103 fstring save_username
, bool create
);
104 NTSTATUS
make_server_info_info3(TALLOC_CTX
*mem_ctx
,
105 const char *sent_nt_username
,
107 auth_serversupplied_info
**server_info
,
108 struct netr_SamInfo3
*info3
);
109 NTSTATUS
make_server_info_wbcAuthUserInfo(TALLOC_CTX
*mem_ctx
,
110 const char *sent_nt_username
,
112 const struct wbcAuthUserInfo
*info
,
113 auth_serversupplied_info
**server_info
);
114 void free_user_info(auth_usersupplied_info
**user_info
);
115 bool make_auth_methods(struct auth_context
*auth_context
, auth_methods
**auth_method
) ;
116 bool is_trusted_domain(const char* dom_name
);
118 /* The following definitions come from auth/auth_winbind.c */
120 NTSTATUS
auth_winbind_init(void);
122 /* The following definitions come from auth/pampass.c */
124 bool smb_pam_claim_session(char *user
, char *tty
, char *rhost
);
125 bool smb_pam_close_session(char *user
, char *tty
, char *rhost
);
126 NTSTATUS
smb_pam_accountcheck(const char * user
);
127 NTSTATUS
smb_pam_passcheck(const char * user
, const char * password
);
128 bool smb_pam_passchange(const char * user
, const char * oldpassword
, const char * newpassword
);
129 NTSTATUS
smb_pam_accountcheck(const char * user
);
130 bool smb_pam_claim_session(char *user
, char *tty
, char *rhost
);
131 bool smb_pam_close_session(char *in_user
, char *tty
, char *rhost
);
133 /* The following definitions come from auth/pass_check.c */
135 void dfs_unlogin(void);
136 NTSTATUS
pass_check(const struct passwd
*pass
, const char *user
, const char *password
,
137 int pwlen
, bool (*fn
) (const char *, const char *), bool run_cracker
);
139 /* The following definitions come from auth/token_util.c */
141 bool nt_token_check_sid ( const DOM_SID
*sid
, const NT_USER_TOKEN
*token
);
142 bool nt_token_check_domain_rid( NT_USER_TOKEN
*token
, uint32 rid
);
143 NT_USER_TOKEN
*get_root_nt_token( void );
144 NTSTATUS
add_aliases(const DOM_SID
*domain_sid
,
145 struct nt_user_token
*token
);
146 struct nt_user_token
*create_local_nt_token(TALLOC_CTX
*mem_ctx
,
147 const DOM_SID
*user_sid
,
150 const DOM_SID
*groupsids
);
151 void debug_nt_user_token(int dbg_class
, int dbg_lev
, NT_USER_TOKEN
*token
);
152 void debug_unix_user_token(int dbg_class
, int dbg_lev
, uid_t uid
, gid_t gid
,
153 int n_groups
, gid_t
*groups
);
155 /* The following definitions come from dynconfig.c */
157 const char *get_dyn_CONFIGFILE(void);
158 const char *set_dyn_CONFIGFILE(const char *newpath
);
159 const char *get_dyn_LOGFILEBASE(void);
160 const char *set_dyn_LOGFILEBASE(const char *newpath
);
161 const char *get_dyn_LMHOSTSFILE(void);
162 const char *set_dyn_LMHOSTSFILE(const char *newpath
);
163 const char *get_dyn_CODEPAGEDIR(void);
164 const char *set_dyn_CODEPAGEDIR(const char *newpath
);
165 const char *get_dyn_LIBDIR(void);
166 const char *set_dyn_LIBDIR(const char *newpath
);
167 const char *get_dyn_SHLIBEXT(void);
168 const char *set_dyn_SHLIBEXT(const char *newpath
);
169 const char *get_dyn_LOCKDIR(void);
170 const char *set_dyn_LOCKDIR(const char *newpath
);
171 const char *get_dyn_PIDDIR(void);
172 const char *set_dyn_PIDDIR(const char *newpath
);
173 const char *get_dyn_SMB_PASSWD_FILE(void);
174 const char *set_dyn_SMB_PASSWD_FILE(const char *newpath
);
175 const char *get_dyn_PRIVATE_DIR(void);
176 const char *set_dyn_PRIVATE_DIR(const char *newpath
);
177 const char *get_dyn_STATEDIR(void);
178 const char *get_dyn_CACHEDIR(void);
180 /* The following definitions come from groupdb/mapping.c */
182 NTSTATUS
add_initial_entry(gid_t gid
, const char *sid
, enum lsa_SidType sid_name_use
, const char *nt_name
, const char *comment
);
183 bool get_domain_group_from_sid(DOM_SID sid
, GROUP_MAP
*map
);
184 int smb_create_group(const char *unix_group
, gid_t
*new_gid
);
185 int smb_delete_group(const char *unix_group
);
186 int smb_set_primary_group(const char *unix_group
, const char* unix_user
);
187 int smb_add_user_group(const char *unix_group
, const char *unix_user
);
188 int smb_delete_user_group(const char *unix_group
, const char *unix_user
);
189 NTSTATUS
pdb_default_getgrsid(struct pdb_methods
*methods
, GROUP_MAP
*map
,
191 NTSTATUS
pdb_default_getgrgid(struct pdb_methods
*methods
, GROUP_MAP
*map
,
193 NTSTATUS
pdb_default_getgrnam(struct pdb_methods
*methods
, GROUP_MAP
*map
,
195 NTSTATUS
pdb_default_add_group_mapping_entry(struct pdb_methods
*methods
,
197 NTSTATUS
pdb_default_update_group_mapping_entry(struct pdb_methods
*methods
,
199 NTSTATUS
pdb_default_delete_group_mapping_entry(struct pdb_methods
*methods
,
201 NTSTATUS
pdb_default_enum_group_mapping(struct pdb_methods
*methods
,
202 const DOM_SID
*sid
, enum lsa_SidType sid_name_use
,
203 GROUP_MAP
**pp_rmap
, size_t *p_num_entries
,
205 NTSTATUS
pdb_default_create_alias(struct pdb_methods
*methods
,
206 const char *name
, uint32
*rid
);
207 NTSTATUS
pdb_default_delete_alias(struct pdb_methods
*methods
,
209 NTSTATUS
pdb_default_get_aliasinfo(struct pdb_methods
*methods
,
211 struct acct_info
*info
);
212 NTSTATUS
pdb_default_set_aliasinfo(struct pdb_methods
*methods
,
214 struct acct_info
*info
);
215 NTSTATUS
pdb_default_add_aliasmem(struct pdb_methods
*methods
,
216 const DOM_SID
*alias
, const DOM_SID
*member
);
217 NTSTATUS
pdb_default_del_aliasmem(struct pdb_methods
*methods
,
218 const DOM_SID
*alias
, const DOM_SID
*member
);
219 NTSTATUS
pdb_default_enum_aliasmem(struct pdb_methods
*methods
,
220 const DOM_SID
*alias
, DOM_SID
**pp_members
,
221 size_t *p_num_members
);
222 NTSTATUS
pdb_default_alias_memberships(struct pdb_methods
*methods
,
224 const DOM_SID
*domain_sid
,
225 const DOM_SID
*members
,
227 uint32
**pp_alias_rids
,
228 size_t *p_num_alias_rids
);
229 NTSTATUS
pdb_nop_getgrsid(struct pdb_methods
*methods
, GROUP_MAP
*map
,
231 NTSTATUS
pdb_nop_getgrgid(struct pdb_methods
*methods
, GROUP_MAP
*map
,
233 NTSTATUS
pdb_nop_getgrnam(struct pdb_methods
*methods
, GROUP_MAP
*map
,
235 NTSTATUS
pdb_nop_add_group_mapping_entry(struct pdb_methods
*methods
,
237 NTSTATUS
pdb_nop_update_group_mapping_entry(struct pdb_methods
*methods
,
239 NTSTATUS
pdb_nop_delete_group_mapping_entry(struct pdb_methods
*methods
,
241 NTSTATUS
pdb_nop_enum_group_mapping(struct pdb_methods
*methods
,
242 enum lsa_SidType sid_name_use
,
243 GROUP_MAP
**rmap
, size_t *num_entries
,
245 bool pdb_get_dom_grp_info(const DOM_SID
*sid
, struct acct_info
*info
);
246 bool pdb_set_dom_grp_info(const DOM_SID
*sid
, const struct acct_info
*info
);
247 NTSTATUS
pdb_create_builtin_alias(uint32 rid
);
249 /* The following definitions come from groupdb/mapping_ldb.c */
251 const struct mapping_backend
*groupdb_ldb_init(void);
253 /* The following definitions come from groupdb/mapping_tdb.c */
255 const struct mapping_backend
*groupdb_tdb_init(void);
257 /* The following definitions come from intl/lang_tdb.c */
259 bool lang_tdb_init(const char *lang
);
260 const char *lang_msg(const char *msgid
);
261 void lang_msg_free(const char *msgstr
);
262 char *lang_tdb_current(void);
264 /* The following definitions come from lib/access.c */
266 bool allow_access(const char **deny_list
,
267 const char **allow_list
,
270 bool check_access(int sock
, const char **allow_list
, const char **deny_list
);
272 /* The following definitions come from lib/account_pol.c */
274 void account_policy_names_list(const char ***names
, int *num_names
);
275 const char *decode_account_policy_name(int field
);
276 const char *get_account_policy_attr(int field
);
277 const char *account_policy_get_desc(int field
);
278 int account_policy_name_to_fieldnum(const char *name
);
279 bool account_policy_get_default(int account_policy
, uint32
*val
);
280 bool init_account_policy(void);
281 bool account_policy_get(int field
, uint32
*value
);
282 bool account_policy_set(int field
, uint32 value
);
283 bool cache_account_policy_set(int field
, uint32 value
);
284 bool cache_account_policy_get(int field
, uint32
*value
);
285 struct db_context
*get_account_pol_db( void );
287 /* The following definitions come from lib/adt_tree.c */
290 /* The following definitions come from lib/afs.c */
292 char *afs_createtoken_str(const char *username
, const char *cell
);
293 bool afs_login(connection_struct
*conn
);
294 bool afs_login(connection_struct
*conn
);
295 char *afs_createtoken_str(const char *username
, const char *cell
);
297 /* The following definitions come from lib/afs_settoken.c */
299 int afs_syscall( int subcall
,
304 bool afs_settoken_str(const char *token_string
);
305 bool afs_settoken_str(const char *token_string
);
307 /* The following definitions come from lib/arc4.c */
309 void smb_arc4_init(unsigned char arc4_state_out
[258], const unsigned char *key
, size_t keylen
);
310 void smb_arc4_crypt(unsigned char arc4_state_inout
[258], unsigned char *data
, size_t len
);
312 /* The following definitions come from lib/audit.c */
314 const char *audit_category_str(uint32 category
);
315 const char *audit_param_str(uint32 category
);
316 const char *audit_description_str(uint32 category
);
317 bool get_audit_category_from_param(const char *param
, uint32
*audit_category
);
318 const char *audit_policy_str(TALLOC_CTX
*mem_ctx
, uint32 policy
);
320 /* The following definitions come from lib/bitmap.c */
322 struct bitmap
*bitmap_allocate(int n
);
323 void bitmap_free(struct bitmap
*bm
);
324 struct bitmap
*bitmap_talloc(TALLOC_CTX
*mem_ctx
, int n
);
325 int bitmap_copy(struct bitmap
* const dst
, const struct bitmap
* const src
);
326 bool bitmap_set(struct bitmap
*bm
, unsigned i
);
327 bool bitmap_clear(struct bitmap
*bm
, unsigned i
);
328 bool bitmap_query(struct bitmap
*bm
, unsigned i
);
329 int bitmap_find(struct bitmap
*bm
, unsigned ofs
);
331 /* The following definitions come from lib/charcnv.c */
333 char lp_failed_convert_char(void);
334 void lazy_initialize_conv(void);
335 void gfree_charcnv(void);
336 void init_iconv(void);
337 size_t convert_string(charset_t from
, charset_t to
,
338 void const *src
, size_t srclen
,
339 void *dest
, size_t destlen
, bool allow_bad_conv
);
340 bool convert_string_allocate(TALLOC_CTX
*ctx
, charset_t from
, charset_t to
,
341 void const *src
, size_t srclen
, void *dst
,
342 size_t *converted_size
, bool allow_bad_conv
);
343 size_t convert_string_talloc(TALLOC_CTX
*ctx
, charset_t from
, charset_t to
,
344 void const *src
, size_t srclen
, void *dst
,
345 bool allow_bad_conv
);
346 size_t unix_strupper(const char *src
, size_t srclen
, char *dest
, size_t destlen
);
347 char *strdup_upper(const char *s
);
348 char *talloc_strdup_upper(TALLOC_CTX
*ctx
, const char *s
);
349 size_t unix_strlower(const char *src
, size_t srclen
, char *dest
, size_t destlen
);
350 char *strdup_lower(const char *s
);
351 char *talloc_strdup_lower(TALLOC_CTX
*ctx
, const char *s
);
352 size_t ucs2_align(const void *base_ptr
, const void *p
, int flags
);
353 size_t push_ascii(void *dest
, const char *src
, size_t dest_len
, int flags
);
354 size_t push_ascii_fstring(void *dest
, const char *src
);
355 size_t push_ascii_nstring(void *dest
, const char *src
);
356 size_t push_ascii_allocate(char **dest
, const char *src
);
357 size_t pull_ascii(char *dest
, const void *src
, size_t dest_len
, size_t src_len
, int flags
);
358 size_t pull_ascii_fstring(char *dest
, const void *src
);
359 size_t pull_ascii_nstring(char *dest
, size_t dest_len
, const void *src
);
360 size_t push_ucs2(const void *base_ptr
, void *dest
, const char *src
, size_t dest_len
, int flags
);
361 size_t push_ucs2_talloc(TALLOC_CTX
*ctx
, smb_ucs2_t
**dest
, const char *src
);
362 size_t push_ucs2_allocate(smb_ucs2_t
**dest
, const char *src
);
363 size_t push_utf8_fstring(void *dest
, const char *src
);
364 size_t push_utf8_talloc(TALLOC_CTX
*ctx
, char **dest
, const char *src
);
365 size_t push_utf8_allocate(char **dest
, const char *src
);
366 size_t pull_ucs2(const void *base_ptr
, char *dest
, const void *src
, size_t dest_len
, size_t src_len
, int flags
);
367 size_t pull_ucs2_base_talloc(TALLOC_CTX
*ctx
,
368 const void *base_ptr
,
373 size_t pull_ucs2_fstring(char *dest
, const void *src
);
374 size_t pull_ucs2_talloc(TALLOC_CTX
*ctx
, char **dest
, const smb_ucs2_t
*src
);
375 size_t pull_ucs2_allocate(char **dest
, const smb_ucs2_t
*src
);
376 size_t pull_utf8_talloc(TALLOC_CTX
*ctx
, char **dest
, const char *src
);
377 size_t pull_utf8_allocate(char **dest
, const char *src
);
378 size_t pull_ascii_talloc(TALLOC_CTX
*ctx
, char **dest
, const char *src
);
379 size_t push_string_fn(const char *function
, unsigned int line
,
380 const void *base_ptr
, uint16 flags2
,
381 void *dest
, const char *src
,
382 size_t dest_len
, int flags
);
383 size_t pull_string_fn(const char *function
,
385 const void *base_ptr
,
392 size_t pull_string_talloc_fn(const char *function
,
395 const void *base_ptr
,
401 size_t align_string(const void *base_ptr
, const char *p
, int flags
);
402 codepoint_t
next_codepoint(const char *str
, size_t *size
);
404 /* The following definitions come from lib/clobber.c */
406 void clobber_region(const char *fn
, unsigned int line
, char *dest
, size_t len
);
408 /* The following definitions come from lib/conn_tdb.c */
410 struct db_record
*connections_fetch_record(TALLOC_CTX
*mem_ctx
,
412 struct db_record
*connections_fetch_entry(TALLOC_CTX
*mem_ctx
,
413 connection_struct
*conn
,
415 int connections_traverse(int (*fn
)(struct db_record
*rec
,
418 int connections_forall(int (*fn
)(struct db_record
*rec
,
419 const struct connections_key
*key
,
420 const struct connections_data
*data
,
423 bool connections_init(bool rw
);
425 /* The following definitions come from lib/crc32.c */
427 uint32
crc32_calc_buffer(const char *buf
, size_t size
);
429 /* The following definitions come from lib/data_blob.c */
431 DATA_BLOB
data_blob(const void *p
, size_t length
);
432 DATA_BLOB
data_blob_talloc(TALLOC_CTX
*mem_ctx
, const void *p
, size_t length
);
433 void data_blob_free(DATA_BLOB
*d
);
434 void data_blob_clear(DATA_BLOB
*d
);
435 void data_blob_clear_free(DATA_BLOB
*d
);
436 DATA_BLOB
data_blob_string_const(const char *str
);
437 DATA_BLOB
data_blob_const(const void *p
, size_t length
);
438 DATA_BLOB
data_blob_talloc_zero(TALLOC_CTX
*mem_ctx
, size_t length
);
440 /* The following definitions come from lib/dbwrap_util.c */
442 int32_t dbwrap_fetch_int32(struct db_context
*db
, const char *keystr
);
443 int dbwrap_store_int32(struct db_context
*db
, const char *keystr
, int32_t v
);
444 bool dbwrap_fetch_uint32(struct db_context
*db
, const char *keystr
,
446 int dbwrap_store_uint32(struct db_context
*db
, const char *keystr
, uint32_t v
);
447 uint32_t dbwrap_change_uint32_atomic(struct db_context
*db
, const char *keystr
,
448 uint32_t *oldval
, uint32_t change_val
);
449 int32
dbwrap_change_int32_atomic(struct db_context
*db
, const char *keystr
,
450 int32
*oldval
, int32 change_val
);
451 NTSTATUS
dbwrap_trans_store(struct db_context
*db
, TDB_DATA key
, TDB_DATA dbuf
,
453 NTSTATUS
dbwrap_trans_delete(struct db_context
*db
, TDB_DATA key
);
454 NTSTATUS
dbwrap_trans_store_int32(struct db_context
*db
, const char *keystr
,
456 NTSTATUS
dbwrap_trans_store_uint32(struct db_context
*db
, const char *keystr
,
458 NTSTATUS
dbwrap_trans_store_bystring(struct db_context
*db
, const char *key
,
459 TDB_DATA data
, int flags
);
460 NTSTATUS
dbwrap_trans_delete_bystring(struct db_context
*db
, const char *key
);
462 /* The following definitions come from lib/debug.c */
464 void gfree_debugsyms(void);
465 const char *debug_classname_from_index(int ndx
);
466 int debug_add_class(const char *classname
);
467 int debug_lookup_classname(const char *classname
);
468 bool debug_parse_levels(const char *params_str
);
469 void debug_message(struct messaging_context
*msg_ctx
,
472 struct server_id src
,
474 void debug_init(void);
475 void debug_register_msgs(struct messaging_context
*msg_ctx
);
476 void setup_logging(const char *pname
, bool interactive
);
477 void debug_set_logfile(const char *name
);
478 bool reopen_logs( void );
479 void force_check_log_size( void );
480 bool need_to_check_log_size( void );
481 void check_log_size( void );
482 void dbgflush( void );
483 bool dbghdr(int level
, int cls
, const char *file
, const char *func
, int line
);
484 TALLOC_CTX
*debug_ctx(void);
486 /* The following definitions come from lib/display_sec.c */
488 char *get_sec_mask_str(TALLOC_CTX
*ctx
, uint32 type
);
489 void display_sec_access(SEC_ACCESS
*info
);
490 void display_sec_ace_flags(uint8_t flags
);
491 void display_sec_ace(SEC_ACE
*ace
);
492 void display_sec_acl(SEC_ACL
*sec_acl
);
493 void display_acl_type(uint16 type
);
494 void display_sec_desc(SEC_DESC
*sec
);
496 /* The following definitions come from lib/dmallocmsg.c */
498 void register_dmalloc_msgs(struct messaging_context
*msg_ctx
);
500 /* The following definitions come from lib/dprintf.c */
502 void display_set_stderr(void);
504 /* The following definitions come from lib/errmap_unix.c */
506 NTSTATUS
map_nt_error_from_unix(int unix_error
);
508 /* The following definitions come from lib/events.c */
510 struct timed_event
*event_add_timed(struct event_context
*event_ctx
,
513 const char *event_name
,
514 void (*handler
)(struct event_context
*event_ctx
,
515 struct timed_event
*te
,
516 const struct timeval
*now
,
519 struct fd_event
*event_add_fd(struct event_context
*event_ctx
,
521 int fd
, uint16_t flags
,
522 void (*handler
)(struct event_context
*event_ctx
,
523 struct fd_event
*event
,
527 void event_fd_set_writeable(struct fd_event
*fde
);
528 void event_fd_set_not_writeable(struct fd_event
*fde
);
529 void event_fd_set_readable(struct fd_event
*fde
);
530 void event_fd_set_not_readable(struct fd_event
*fde
);
531 bool event_add_to_select_args(struct event_context
*event_ctx
,
532 const struct timeval
*now
,
533 fd_set
*read_fds
, fd_set
*write_fds
,
534 struct timeval
*timeout
, int *maxfd
);
535 bool events_pending(struct event_context
*event_ctx
);
536 bool run_events(struct event_context
*event_ctx
,
537 int selrtn
, fd_set
*read_fds
, fd_set
*write_fds
);
538 struct timeval
*get_timed_events_timeout(struct event_context
*event_ctx
,
539 struct timeval
*to_ret
);
540 int event_loop_once(struct event_context
*ev
);
541 void event_context_reinit(struct event_context
*ev
);
542 struct event_context
*event_context_init(TALLOC_CTX
*mem_ctx
);
543 void dump_event_list(struct event_context
*event_ctx
);
545 /* The following definitions come from lib/fault.c */
547 void fault_setup(void (*fn
)(void *));
548 void dump_core_setup(const char *progname
);
550 /* The following definitions come from lib/file_id.c */
552 struct file_id
file_id_create_dev(SMB_DEV_T dev
, SMB_INO_T inode
);
553 struct file_id
vfs_file_id_from_sbuf(connection_struct
*conn
, const SMB_STRUCT_STAT
*sbuf
);
554 bool file_id_equal(const struct file_id
*id1
, const struct file_id
*id2
);
555 const char *file_id_string_tos(const struct file_id
*id
);
556 void push_file_id_16(char *buf
, const struct file_id
*id
);
557 void pull_file_id_16(char *buf
, struct file_id
*id
);
559 /* The following definitions come from lib/fsusage.c */
561 int sys_fsusage(const char *path
, SMB_BIG_UINT
*dfree
, SMB_BIG_UINT
*dsize
);
563 /* The following definitions come from lib/gencache.c */
565 bool gencache_init(void);
566 bool gencache_shutdown(void);
567 bool gencache_set(const char *keystr
, const char *value
, time_t timeout
);
568 bool gencache_del(const char *keystr
);
569 bool gencache_get(const char *keystr
, char **valstr
, time_t *timeout
);
570 bool gencache_get_data_blob(const char *keystr
, DATA_BLOB
*blob
, bool *expired
);
571 bool gencache_set_data_blob(const char *keystr
, const DATA_BLOB
*blob
, time_t timeout
);
572 void gencache_iterate(void (*fn
)(const char* key
, const char *value
, time_t timeout
, void* dptr
),
573 void* data
, const char* keystr_pattern
);
574 int gencache_lock_entry( const char *key
);
575 void gencache_unlock_entry( const char *key
);
577 /* The following definitions come from lib/genrand.c */
579 void set_rand_reseed_callback(void (*fn
)(int *));
580 void set_need_random_reseed(void);
581 void generate_random_buffer( unsigned char *out
, int len
);
582 char *generate_random_str(size_t len
);
584 /* The following definitions come from lib/hmacmd5.c */
586 void hmac_md5_init_rfc2104(const unsigned char *key
, int key_len
, HMACMD5Context
*ctx
);
587 void hmac_md5_init_limK_to_64(const unsigned char* key
, int key_len
,
588 HMACMD5Context
*ctx
);
589 void hmac_md5_update(const unsigned char *text
, int text_len
, HMACMD5Context
*ctx
);
590 void hmac_md5_final(unsigned char *digest
, HMACMD5Context
*ctx
);
591 void hmac_md5( unsigned char key
[16], const unsigned char *data
, int data_len
,
592 unsigned char *digest
);
594 /* The following definitions come from lib/iconv.c */
596 NTSTATUS
smb_register_charset(struct charset_functions
*funcs
) ;
597 size_t smb_iconv(smb_iconv_t cd
,
598 const char **inbuf
, size_t *inbytesleft
,
599 char **outbuf
, size_t *outbytesleft
);
600 smb_iconv_t
smb_iconv_open(const char *tocode
, const char *fromcode
);
601 int smb_iconv_close (smb_iconv_t cd
);
603 /* The following definitions come from lib/interface.c */
605 bool ismyaddr(const struct sockaddr_storage
*ip
);
606 bool ismyip_v4(struct in_addr ip
);
607 bool is_local_net(const struct sockaddr_storage
*from
);
608 void setup_linklocal_scope_id(struct sockaddr_storage
*pss
);
609 bool is_local_net_v4(struct in_addr from
);
610 int iface_count(void);
611 int iface_count_v4_nl(void);
612 const struct in_addr
*first_ipv4_iface(void);
613 struct interface
*get_interface(int n
);
614 const struct sockaddr_storage
*iface_n_sockaddr_storage(int n
);
615 const struct in_addr
*iface_n_ip_v4(int n
);
616 const struct in_addr
*iface_n_bcast_v4(int n
);
617 const struct sockaddr_storage
*iface_n_bcast(int n
);
618 const struct sockaddr_storage
*iface_ip(const struct sockaddr_storage
*ip
);
619 bool iface_local(const struct sockaddr_storage
*ip
);
620 void load_interfaces(void);
621 void gfree_interfaces(void);
622 bool interfaces_changed(void);
624 /* The following definitions come from lib/ldap_debug_handler.c */
626 void init_ldap_debugging(void);
628 /* The following definitions come from lib/ldap_escape.c */
630 char *escape_ldap_string_alloc(const char *s
);
631 char *escape_rdn_val_string_alloc(const char *s
);
633 /* The following definitions come from lib/md4.c */
635 void mdfour(unsigned char *out
, const unsigned char *in
, int n
);
637 /* The following definitions come from lib/md5.c */
639 void MD5Init(struct MD5Context
*ctx
);
640 void MD5Update(struct MD5Context
*ctx
, unsigned char const *buf
, unsigned len
);
641 void MD5Final(unsigned char digest
[16], struct MD5Context
*ctx
);
643 /* The following definitions come from lib/module.c */
645 NTSTATUS
smb_load_module(const char *module_name
);
646 int smb_load_modules(const char **modules
);
647 NTSTATUS
smb_probe_module(const char *subsystem
, const char *module
);
648 NTSTATUS
smb_load_module(const char *module_name
);
649 int smb_load_modules(const char **modules
);
650 NTSTATUS
smb_probe_module(const char *subsystem
, const char *module
);
651 void init_modules(void);
653 /* The following definitions come from lib/ms_fnmatch.c */
655 int ms_fnmatch(const char *pattern
, const char *string
, bool translate_pattern
,
656 bool is_case_sensitive
);
657 int gen_fnmatch(const char *pattern
, const char *string
);
659 /* The following definitions come from lib/pam_errors.c */
661 NTSTATUS
pam_to_nt_status(int pam_error
);
662 int nt_status_to_pam(NTSTATUS nt_status
);
663 NTSTATUS
pam_to_nt_status(int pam_error
);
664 int nt_status_to_pam(NTSTATUS nt_status
);
666 /* The following definitions come from lib/pidfile.c */
668 pid_t
pidfile_pid(const char *name
);
669 void pidfile_create(const char *program_name
);
671 /* The following definitions come from lib/popt_common.c */
674 /* The following definitions come from lib/privileges.c */
676 bool get_privileges_for_sids(SE_PRIV
*privileges
, DOM_SID
*slist
, int scount
);
677 NTSTATUS
privilege_enumerate_accounts(DOM_SID
**sids
, int *num_sids
);
678 NTSTATUS
privilege_enum_sids(const SE_PRIV
*mask
, TALLOC_CTX
*mem_ctx
,
679 DOM_SID
**sids
, int *num_sids
);
680 bool grant_privilege(const DOM_SID
*sid
, const SE_PRIV
*priv_mask
);
681 bool grant_privilege_by_name(DOM_SID
*sid
, const char *name
);
682 bool revoke_privilege(const DOM_SID
*sid
, const SE_PRIV
*priv_mask
);
683 bool revoke_all_privileges( DOM_SID
*sid
);
684 bool revoke_privilege_by_name(DOM_SID
*sid
, const char *name
);
685 NTSTATUS
privilege_create_account(const DOM_SID
*sid
);
686 NTSTATUS
privilege_set_init(PRIVILEGE_SET
*priv_set
);
687 NTSTATUS
privilege_set_init_by_ctx(TALLOC_CTX
*mem_ctx
, PRIVILEGE_SET
*priv_set
);
688 void privilege_set_free(PRIVILEGE_SET
*priv_set
);
689 NTSTATUS
dup_luid_attr(TALLOC_CTX
*mem_ctx
, LUID_ATTR
**new_la
, LUID_ATTR
*old_la
, int count
);
690 bool is_privileged_sid( const DOM_SID
*sid
);
691 bool grant_all_privileges( const DOM_SID
*sid
);
693 /* The following definitions come from lib/privileges_basic.c */
695 bool se_priv_copy( SE_PRIV
*dst
, const SE_PRIV
*src
);
696 bool se_priv_put_all_privileges(SE_PRIV
*mask
);
697 void se_priv_add( SE_PRIV
*mask
, const SE_PRIV
*addpriv
);
698 void se_priv_remove( SE_PRIV
*mask
, const SE_PRIV
*removepriv
);
699 bool se_priv_equal( const SE_PRIV
*mask1
, const SE_PRIV
*mask2
);
700 bool se_priv_from_name( const char *name
, SE_PRIV
*mask
);
701 void dump_se_priv( int dbg_cl
, int dbg_lvl
, const SE_PRIV
*mask
);
702 bool is_privilege_assigned(const SE_PRIV
*privileges
,
703 const SE_PRIV
*check
);
704 const char* get_privilege_dispname( const char *name
);
705 bool user_has_privileges(const NT_USER_TOKEN
*token
, const SE_PRIV
*privilege
);
706 bool user_has_any_privilege(NT_USER_TOKEN
*token
, const SE_PRIV
*privilege
);
707 int count_all_privileges( void );
708 LUID_ATTR
get_privilege_luid( SE_PRIV
*mask
);
709 const char *luid_to_privilege_name(const LUID
*set
);
710 bool se_priv_to_privilege_set( PRIVILEGE_SET
*set
, SE_PRIV
*mask
);
711 bool privilege_set_to_se_priv( SE_PRIV
*mask
, struct lsa_PrivilegeSet
*privset
);
713 /* The following definitions come from lib/readline.c */
715 void smb_readline_done(void);
716 char *smb_readline(const char *prompt
, void (*callback
)(void),
717 char **(completion_fn
)(const char *text
, int start
, int end
));
718 const char *smb_readline_get_line_buffer(void);
719 void smb_readline_ca_char(char c
);
720 int cmd_history(void);
722 /* The following definitions come from lib/recvfile.c */
724 ssize_t
sys_recvfile(int fromfd
,
728 ssize_t
sys_recvfile(int fromfd
,
732 ssize_t
drain_socket(int sockfd
, size_t count
);
734 /* The following definitions come from lib/secace.c */
736 bool sec_ace_object(uint8 type
);
737 void sec_ace_copy(SEC_ACE
*ace_dest
, SEC_ACE
*ace_src
);
738 void init_sec_ace(SEC_ACE
*t
, const DOM_SID
*sid
, enum security_ace_type type
,
739 uint32 mask
, uint8 flag
);
740 NTSTATUS
sec_ace_add_sid(TALLOC_CTX
*ctx
, SEC_ACE
**pp_new
, SEC_ACE
*old
, unsigned *num
, DOM_SID
*sid
, uint32 mask
);
741 NTSTATUS
sec_ace_mod_sid(SEC_ACE
*ace
, size_t num
, DOM_SID
*sid
, uint32 mask
);
742 NTSTATUS
sec_ace_del_sid(TALLOC_CTX
*ctx
, SEC_ACE
**pp_new
, SEC_ACE
*old
, uint32
*num
, DOM_SID
*sid
);
743 bool sec_ace_equal(SEC_ACE
*s1
, SEC_ACE
*s2
);
744 int nt_ace_inherit_comp( SEC_ACE
*a1
, SEC_ACE
*a2
);
745 int nt_ace_canon_comp( SEC_ACE
*a1
, SEC_ACE
*a2
);
746 void dacl_sort_into_canonical_order(SEC_ACE
*srclist
, unsigned int num_aces
);
747 bool token_sid_in_ace(const NT_USER_TOKEN
*token
, const SEC_ACE
*ace
);
749 /* The following definitions come from lib/secacl.c */
751 SEC_ACL
*make_sec_acl(TALLOC_CTX
*ctx
, enum security_acl_revision revision
,
752 int num_aces
, SEC_ACE
*ace_list
);
753 SEC_ACL
*dup_sec_acl(TALLOC_CTX
*ctx
, SEC_ACL
*src
);
754 bool sec_acl_equal(SEC_ACL
*s1
, SEC_ACL
*s2
);
756 /* The following definitions come from lib/secdesc.c */
758 bool sec_desc_equal(SEC_DESC
*s1
, SEC_DESC
*s2
);
759 SEC_DESC_BUF
*sec_desc_merge(TALLOC_CTX
*ctx
, SEC_DESC_BUF
*new_sdb
, SEC_DESC_BUF
*old_sdb
);
760 SEC_DESC
*make_sec_desc(TALLOC_CTX
*ctx
,
761 enum security_descriptor_revision revision
,
763 const DOM_SID
*owner_sid
, const DOM_SID
*grp_sid
,
764 SEC_ACL
*sacl
, SEC_ACL
*dacl
, size_t *sd_size
);
765 SEC_DESC
*dup_sec_desc(TALLOC_CTX
*ctx
, const SEC_DESC
*src
);
766 NTSTATUS
marshall_sec_desc(TALLOC_CTX
*mem_ctx
,
767 struct security_descriptor
*secdesc
,
768 uint8
**data
, size_t *len
);
769 NTSTATUS
unmarshall_sec_desc(TALLOC_CTX
*mem_ctx
, uint8
*data
, size_t len
,
770 struct security_descriptor
**psecdesc
);
771 SEC_DESC
*make_standard_sec_desc(TALLOC_CTX
*ctx
, const DOM_SID
*owner_sid
, const DOM_SID
*grp_sid
,
772 SEC_ACL
*dacl
, size_t *sd_size
);
773 SEC_DESC_BUF
*make_sec_desc_buf(TALLOC_CTX
*ctx
, size_t len
, SEC_DESC
*sec_desc
);
774 SEC_DESC_BUF
*dup_sec_desc_buf(TALLOC_CTX
*ctx
, SEC_DESC_BUF
*src
);
775 NTSTATUS
sec_desc_add_sid(TALLOC_CTX
*ctx
, SEC_DESC
**psd
, DOM_SID
*sid
, uint32 mask
, size_t *sd_size
);
776 NTSTATUS
sec_desc_mod_sid(SEC_DESC
*sd
, DOM_SID
*sid
, uint32 mask
);
777 NTSTATUS
sec_desc_del_sid(TALLOC_CTX
*ctx
, SEC_DESC
**psd
, DOM_SID
*sid
, size_t *sd_size
);
778 SEC_DESC_BUF
*se_create_child_secdesc(TALLOC_CTX
*ctx
, SEC_DESC
*parent_ctr
,
779 bool child_container
);
780 void init_sec_access(uint32
*t
, uint32 mask
);
782 /* The following definitions come from lib/select.c */
784 void sys_select_signal(char c
);
785 int sys_select(int maxfd
, fd_set
*readfds
, fd_set
*writefds
, fd_set
*errorfds
, struct timeval
*tval
);
786 int sys_select_intr(int maxfd
, fd_set
*readfds
, fd_set
*writefds
, fd_set
*errorfds
, struct timeval
*tval
);
788 /* The following definitions come from lib/sendfile.c */
790 ssize_t
sys_sendfile(int tofd
, int fromfd
, const DATA_BLOB
*header
, SMB_OFF_T offset
, size_t count
);
791 ssize_t
sys_sendfile(int tofd
, int fromfd
, const DATA_BLOB
*header
, SMB_OFF_T offset
, size_t count
);
792 ssize_t
sys_sendfile(int tofd
, int fromfd
, const DATA_BLOB
*header
, SMB_OFF_T offset
, size_t count
);
793 ssize_t
sys_sendfile(int tofd
, int fromfd
, const DATA_BLOB
*header
, SMB_OFF_T offset
, size_t count
);
794 ssize_t
sys_sendfile(int tofd
, int fromfd
, const DATA_BLOB
*header
, SMB_OFF_T offset
, size_t count
);
795 ssize_t
sys_sendfile(int tofd
, int fromfd
, const DATA_BLOB
*header
, SMB_OFF_T offset
, size_t count
);
796 ssize_t
sys_sendfile(int tofd
, int fromfd
, const DATA_BLOB
*header
, SMB_OFF_T offset
, size_t count
);
798 /* The following definitions come from lib/server_mutex.c */
800 struct named_mutex
*grab_named_mutex(TALLOC_CTX
*mem_ctx
, const char *name
,
803 /* The following definitions come from lib/sharesec.c */
805 SEC_DESC
*get_share_security_default( TALLOC_CTX
*ctx
, size_t *psize
, uint32 def_access
);
806 SEC_DESC
*get_share_security( TALLOC_CTX
*ctx
, const char *servicename
,
808 bool set_share_security(const char *share_name
, SEC_DESC
*psd
);
809 bool delete_share_security(const char *servicename
);
810 bool share_access_check(const NT_USER_TOKEN
*token
, const char *sharename
,
811 uint32 desired_access
);
812 bool parse_usershare_acl(TALLOC_CTX
*ctx
, const char *acl_str
, SEC_DESC
**ppsd
);
814 /* The following definitions come from lib/signal.c */
816 void BlockSignals(bool block
,int signum
);
817 void (*CatchSignal(int signum
,void (*handler
)(int )))(int);
818 void CatchChild(void);
819 void CatchChildLeaveStatus(void);
821 /* The following definitions come from lib/smbldap.c */
823 int smb_ldap_start_tls(LDAP
*ldap_struct
, int version
);
824 int smb_ldap_setup_conn(LDAP
**ldap_struct
, const char *uri
);
825 int smb_ldap_upgrade_conn(LDAP
*ldap_struct
, int *new_version
) ;
826 int smb_ldap_setup_full_conn(LDAP
**ldap_struct
, const char *uri
);
827 int smbldap_search(struct smbldap_state
*ldap_state
,
828 const char *base
, int scope
, const char *filter
,
829 const char *attrs
[], int attrsonly
,
831 int smbldap_search_paged(struct smbldap_state
*ldap_state
,
832 const char *base
, int scope
, const char *filter
,
833 const char **attrs
, int attrsonly
, int pagesize
,
834 LDAPMessage
**res
, void **cookie
);
835 int smbldap_modify(struct smbldap_state
*ldap_state
, const char *dn
, LDAPMod
*attrs
[]);
836 int smbldap_add(struct smbldap_state
*ldap_state
, const char *dn
, LDAPMod
*attrs
[]);
837 int smbldap_delete(struct smbldap_state
*ldap_state
, const char *dn
);
838 int smbldap_extended_operation(struct smbldap_state
*ldap_state
,
839 LDAP_CONST
char *reqoid
, struct berval
*reqdata
,
840 LDAPControl
**serverctrls
, LDAPControl
**clientctrls
,
841 char **retoidp
, struct berval
**retdatap
);
842 int smbldap_search_suffix (struct smbldap_state
*ldap_state
,
843 const char *filter
, const char **search_attr
,
844 LDAPMessage
** result
);
845 void smbldap_free_struct(struct smbldap_state
**ldap_state
) ;
846 NTSTATUS
smbldap_init(TALLOC_CTX
*mem_ctx
, struct event_context
*event_ctx
,
847 const char *location
,
848 struct smbldap_state
**smbldap_state
);
849 char *smbldap_get_dn(LDAP
*ld
, LDAPMessage
*entry
);
850 bool smbldap_has_control(LDAP
*ld
, const char *control
);
851 bool smbldap_has_extension(LDAP
*ld
, const char *extension
);
852 bool smbldap_has_naming_context(LDAP
*ld
, const char *naming_context
);
853 bool smbldap_set_creds(struct smbldap_state
*ldap_state
, bool anon
, const char *dn
, const char *secret
);
855 /* The following definitions come from lib/smbldap_util.c */
857 NTSTATUS
smbldap_search_domain_info(struct smbldap_state
*ldap_state
,
858 LDAPMessage
** result
, const char *domain_name
,
861 /* The following definitions come from lib/smbrun.c */
863 int smbrun_no_sanitize(const char *cmd
, int *outfd
);
864 int smbrun(const char *cmd
, int *outfd
);
865 int smbrunsecret(const char *cmd
, const char *secret
);
867 /* The following definitions come from lib/sock_exec.c */
869 int sock_exec(const char *prog
);
871 /* The following definitions come from lib/substitute.c */
873 void free_local_machine_name(void);
874 bool set_local_machine_name(const char *local_name
, bool perm
);
875 const char *get_local_machine_name(void);
876 bool set_remote_machine_name(const char *remote_name
, bool perm
);
877 const char *get_remote_machine_name(void);
878 void sub_set_smb_name(const char *name
);
879 void set_current_user_info(const userdom_struct
*pcui
);
880 const char *get_current_username(void);
881 void standard_sub_basic(const char *smb_name
, const char *domain_name
,
882 char *str
, size_t len
);
883 char *talloc_sub_basic(TALLOC_CTX
*mem_ctx
, const char *smb_name
,
884 const char *domain_name
, const char *str
);
885 char *alloc_sub_basic(const char *smb_name
, const char *domain_name
,
887 char *talloc_sub_specified(TALLOC_CTX
*mem_ctx
,
888 const char *input_string
,
889 const char *username
,
893 char *talloc_sub_advanced(TALLOC_CTX
*mem_ctx
,
894 const char *servicename
, const char *user
,
895 const char *connectpath
, gid_t gid
,
896 const char *smb_name
, const char *domain_name
,
898 void standard_sub_advanced(const char *servicename
, const char *user
,
899 const char *connectpath
, gid_t gid
,
900 const char *smb_name
, const char *domain_name
,
901 char *str
, size_t len
);
902 char *standard_sub_conn(TALLOC_CTX
*ctx
, connection_struct
*conn
, const char *str
);
904 /* The following definitions come from lib/sysacls.c */
906 int sys_acl_get_entry(SMB_ACL_T acl_d
, int entry_id
, SMB_ACL_ENTRY_T
*entry_p
);
907 int sys_acl_get_tag_type(SMB_ACL_ENTRY_T entry_d
, SMB_ACL_TAG_T
*type_p
);
908 int sys_acl_get_permset(SMB_ACL_ENTRY_T entry_d
, SMB_ACL_PERMSET_T
*permset_p
);
909 void *sys_acl_get_qualifier(SMB_ACL_ENTRY_T entry_d
);
910 int sys_acl_clear_perms(SMB_ACL_PERMSET_T permset_d
);
911 int sys_acl_add_perm(SMB_ACL_PERMSET_T permset_d
, SMB_ACL_PERM_T perm
);
912 int sys_acl_get_perm(SMB_ACL_PERMSET_T permset_d
, SMB_ACL_PERM_T perm
);
913 char *sys_acl_to_text(SMB_ACL_T acl_d
, ssize_t
*len_p
);
914 SMB_ACL_T
sys_acl_init(int count
);
915 int sys_acl_create_entry(SMB_ACL_T
*acl_p
, SMB_ACL_ENTRY_T
*entry_p
);
916 int sys_acl_set_tag_type(SMB_ACL_ENTRY_T entry_d
, SMB_ACL_TAG_T tag_type
);
917 int sys_acl_set_qualifier(SMB_ACL_ENTRY_T entry_d
, void *qual_p
);
918 int sys_acl_set_permset(SMB_ACL_ENTRY_T entry_d
, SMB_ACL_PERMSET_T permset_d
);
919 int sys_acl_free_text(char *text
);
920 int sys_acl_free_acl(SMB_ACL_T acl_d
) ;
921 int sys_acl_free_qualifier(void *qual
, SMB_ACL_TAG_T tagtype
);
922 int sys_acl_valid(SMB_ACL_T acl_d
);
923 SMB_ACL_T
sys_acl_get_file(vfs_handle_struct
*handle
,
924 const char *path_p
, SMB_ACL_TYPE_T type
);
925 SMB_ACL_T
sys_acl_get_fd(vfs_handle_struct
*handle
, files_struct
*fsp
);
926 int sys_acl_set_file(vfs_handle_struct
*handle
,
927 const char *name
, SMB_ACL_TYPE_T type
, SMB_ACL_T acl_d
);
928 int sys_acl_set_fd(vfs_handle_struct
*handle
, files_struct
*fsp
,
930 int sys_acl_delete_def_file(vfs_handle_struct
*handle
,
932 SMB_ACL_T
sys_acl_get_file(vfs_handle_struct
*handle
,
933 const char *path_p
, SMB_ACL_TYPE_T type
);
934 SMB_ACL_T
sys_acl_get_fd(vfs_handle_struct
*handle
, files_struct
*fsp
);
935 int sys_acl_set_file(vfs_handle_struct
*handle
,
936 const char *name
, SMB_ACL_TYPE_T type
, SMB_ACL_T acl_d
);
937 int sys_acl_set_fd(vfs_handle_struct
*handle
, files_struct
*fsp
,
939 int sys_acl_delete_def_file(vfs_handle_struct
*handle
,
941 SMB_ACL_T
sys_acl_get_file(vfs_handle_struct
*handle
,
942 const char *path_p
, SMB_ACL_TYPE_T type
);
943 SMB_ACL_T
sys_acl_get_fd(vfs_handle_struct
*handle
, files_struct
*fsp
);
944 int sys_acl_set_file(vfs_handle_struct
*handle
,
945 const char *name
, SMB_ACL_TYPE_T type
, SMB_ACL_T acl_d
);
946 int sys_acl_set_fd(vfs_handle_struct
*handle
, files_struct
*fsp
,
948 int sys_acl_delete_def_file(vfs_handle_struct
*handle
,
950 SMB_ACL_T
sys_acl_get_file(vfs_handle_struct
*handle
,
951 const char *path_p
, SMB_ACL_TYPE_T type
);
952 SMB_ACL_T
sys_acl_get_fd(vfs_handle_struct
*handle
, files_struct
*fsp
);
953 int sys_acl_set_file(vfs_handle_struct
*handle
,
954 const char *name
, SMB_ACL_TYPE_T type
, SMB_ACL_T acl_d
);
955 int sys_acl_set_fd(vfs_handle_struct
*handle
, files_struct
*fsp
,
957 int sys_acl_delete_def_file(vfs_handle_struct
*handle
,
959 SMB_ACL_T
sys_acl_get_file(vfs_handle_struct
*handle
,
960 const char *path_p
, SMB_ACL_TYPE_T type
);
961 SMB_ACL_T
sys_acl_get_fd(vfs_handle_struct
*handle
, files_struct
*fsp
);
962 int sys_acl_set_file(vfs_handle_struct
*handle
,
963 const char *name
, SMB_ACL_TYPE_T type
, SMB_ACL_T acl_d
);
964 int sys_acl_set_fd(vfs_handle_struct
*handle
, files_struct
*fsp
,
966 int sys_acl_delete_def_file(vfs_handle_struct
*handle
,
968 SMB_ACL_T
sys_acl_get_file(vfs_handle_struct
*handle
,
969 const char *path_p
, SMB_ACL_TYPE_T type
);
970 SMB_ACL_T
sys_acl_get_fd(vfs_handle_struct
*handle
, files_struct
*fsp
);
971 int sys_acl_set_file(vfs_handle_struct
*handle
,
972 const char *name
, SMB_ACL_TYPE_T type
, SMB_ACL_T acl_d
);
973 int sys_acl_set_fd(vfs_handle_struct
*handle
, files_struct
*fsp
,
975 int sys_acl_delete_def_file(vfs_handle_struct
*handle
,
977 SMB_ACL_T
sys_acl_get_file(vfs_handle_struct
*handle
,
978 const char *path_p
, SMB_ACL_TYPE_T type
);
979 SMB_ACL_T
sys_acl_get_fd(vfs_handle_struct
*handle
, files_struct
*fsp
);
980 int sys_acl_set_file(vfs_handle_struct
*handle
,
981 const char *name
, SMB_ACL_TYPE_T type
, SMB_ACL_T acl_d
);
982 int sys_acl_set_fd(vfs_handle_struct
*handle
, files_struct
*fsp
,
984 int sys_acl_delete_def_file(vfs_handle_struct
*handle
,
986 int no_acl_syscall_error(int err
);
988 /* The following definitions come from lib/sysquotas.c */
990 int sys_get_quota(const char *path
, enum SMB_QUOTA_TYPE qtype
, unid_t id
, SMB_DISK_QUOTA
*dp
);
991 int sys_set_quota(const char *path
, enum SMB_QUOTA_TYPE qtype
, unid_t id
, SMB_DISK_QUOTA
*dp
);
993 /* The following definitions come from lib/sysquotas_4A.c */
995 int sys_get_vfs_quota(const char *path
, const char *bdev
, enum SMB_QUOTA_TYPE qtype
, unid_t id
, SMB_DISK_QUOTA
*dp
);
996 int sys_set_vfs_quota(const char *path
, const char *bdev
, enum SMB_QUOTA_TYPE qtype
, unid_t id
, SMB_DISK_QUOTA
*dp
);
998 /* The following definitions come from lib/sysquotas_linux.c */
1000 int sys_get_vfs_quota(const char *path
, const char *bdev
, enum SMB_QUOTA_TYPE qtype
, unid_t id
, SMB_DISK_QUOTA
*dp
);
1001 int sys_set_vfs_quota(const char *path
, const char *bdev
, enum SMB_QUOTA_TYPE qtype
, unid_t id
, SMB_DISK_QUOTA
*dp
);
1003 /* The following definitions come from lib/sysquotas_xfs.c */
1005 int sys_get_xfs_quota(const char *path
, const char *bdev
, enum SMB_QUOTA_TYPE qtype
, unid_t id
, SMB_DISK_QUOTA
*dp
);
1006 int sys_set_xfs_quota(const char *path
, const char *bdev
, enum SMB_QUOTA_TYPE qtype
, unid_t id
, SMB_DISK_QUOTA
*dp
);
1008 /* The following definitions come from lib/system.c */
1010 void *sys_memalign( size_t align
, size_t size
);
1011 int sys_usleep(long usecs
);
1012 ssize_t
sys_read(int fd
, void *buf
, size_t count
);
1013 ssize_t
sys_write(int fd
, const void *buf
, size_t count
);
1014 ssize_t
sys_writev(int fd
, const struct iovec
*iov
, int iovcnt
);
1015 ssize_t
sys_pread(int fd
, void *buf
, size_t count
, SMB_OFF_T off
);
1016 ssize_t
sys_pwrite(int fd
, const void *buf
, size_t count
, SMB_OFF_T off
);
1017 ssize_t
sys_send(int s
, const void *msg
, size_t len
, int flags
);
1018 ssize_t
sys_sendto(int s
, const void *msg
, size_t len
, int flags
, const struct sockaddr
*to
, socklen_t tolen
);
1019 ssize_t
sys_recv(int fd
, void *buf
, size_t count
, int flags
);
1020 ssize_t
sys_recvfrom(int s
, void *buf
, size_t len
, int flags
, struct sockaddr
*from
, socklen_t
*fromlen
);
1021 int sys_fcntl_ptr(int fd
, int cmd
, void *arg
);
1022 int sys_fcntl_long(int fd
, int cmd
, long arg
);
1023 int sys_stat(const char *fname
,SMB_STRUCT_STAT
*sbuf
);
1024 int sys_fstat(int fd
,SMB_STRUCT_STAT
*sbuf
);
1025 int sys_lstat(const char *fname
,SMB_STRUCT_STAT
*sbuf
);
1026 int sys_ftruncate(int fd
, SMB_OFF_T offset
);
1027 SMB_OFF_T
sys_lseek(int fd
, SMB_OFF_T offset
, int whence
);
1028 int sys_fseek(FILE *fp
, SMB_OFF_T offset
, int whence
);
1029 SMB_OFF_T
sys_ftell(FILE *fp
);
1030 int sys_creat(const char *path
, mode_t mode
);
1031 int sys_open(const char *path
, int oflag
, mode_t mode
);
1032 FILE *sys_fopen(const char *path
, const char *type
);
1033 void kernel_flock(int fd
, uint32 share_mode
);
1034 SMB_STRUCT_DIR
*sys_opendir(const char *name
);
1035 SMB_STRUCT_DIRENT
*sys_readdir(SMB_STRUCT_DIR
*dirp
);
1036 void sys_seekdir(SMB_STRUCT_DIR
*dirp
, long offset
);
1037 long sys_telldir(SMB_STRUCT_DIR
*dirp
);
1038 void sys_rewinddir(SMB_STRUCT_DIR
*dirp
);
1039 int sys_closedir(SMB_STRUCT_DIR
*dirp
);
1040 int sys_mknod(const char *path
, mode_t mode
, SMB_DEV_T dev
);
1041 char *sys_realpath(const char *path
, char *resolved_path
);
1042 int sys_waitpid(pid_t pid
,int *status
,int options
);
1043 char *sys_getwd(char *s
);
1044 int sys_symlink(const char *oldpath
, const char *newpath
);
1045 int sys_readlink(const char *path
, char *buf
, size_t bufsiz
);
1046 int sys_link(const char *oldpath
, const char *newpath
);
1047 int sys_chown(const char *fname
,uid_t uid
,gid_t gid
);
1048 int sys_lchown(const char *fname
,uid_t uid
,gid_t gid
);
1049 int sys_chroot(const char *dname
);
1050 void set_effective_capability(enum smbd_capability capability
);
1051 void drop_effective_capability(enum smbd_capability capability
);
1052 long sys_random(void);
1053 void sys_srandom(unsigned int seed
);
1054 int groups_max(void);
1055 int sys_getgroups(int setlen
, gid_t
*gidset
);
1056 int sys_setgroups(gid_t
UNUSED(primary_gid
), int setlen
, gid_t
*gidset
);
1057 void sys_setpwent(void);
1058 struct passwd
*sys_getpwent(void);
1059 void sys_endpwent(void);
1060 struct passwd
*sys_getpwnam(const char *name
);
1061 struct passwd
*sys_getpwuid(uid_t uid
);
1062 struct group
*sys_getgrnam(const char *name
);
1063 struct group
*sys_getgrgid(gid_t gid
);
1064 pid_t
sys_fork(void);
1065 pid_t
sys_getpid(void);
1066 int sys_popen(const char *command
);
1067 int sys_pclose(int fd
);
1068 void *sys_dlopen(const char *name
, int flags
);
1069 void *sys_dlsym(void *handle
, const char *symbol
);
1070 int sys_dlclose (void *handle
);
1071 const char *sys_dlerror(void);
1072 int sys_dup2(int oldfd
, int newfd
) ;
1073 ssize_t
sys_getxattr (const char *path
, const char *name
, void *value
, size_t size
);
1074 ssize_t
sys_lgetxattr (const char *path
, const char *name
, void *value
, size_t size
);
1075 ssize_t
sys_fgetxattr (int filedes
, const char *name
, void *value
, size_t size
);
1076 ssize_t
sys_listxattr (const char *path
, char *list
, size_t size
);
1077 ssize_t
sys_llistxattr (const char *path
, char *list
, size_t size
);
1078 ssize_t
sys_flistxattr (int filedes
, char *list
, size_t size
);
1079 int sys_removexattr (const char *path
, const char *name
);
1080 int sys_lremovexattr (const char *path
, const char *name
);
1081 int sys_fremovexattr (int filedes
, const char *name
);
1082 int sys_setxattr (const char *path
, const char *name
, const void *value
, size_t size
, int flags
);
1083 int sys_lsetxattr (const char *path
, const char *name
, const void *value
, size_t size
, int flags
);
1084 int sys_fsetxattr (int filedes
, const char *name
, const void *value
, size_t size
, int flags
);
1085 uint32
unix_dev_major(SMB_DEV_T dev
);
1086 uint32
unix_dev_minor(SMB_DEV_T dev
);
1087 int sys_aio_read(SMB_STRUCT_AIOCB
*aiocb
);
1088 int sys_aio_write(SMB_STRUCT_AIOCB
*aiocb
);
1089 ssize_t
sys_aio_return(SMB_STRUCT_AIOCB
*aiocb
);
1090 int sys_aio_cancel(int fd
, SMB_STRUCT_AIOCB
*aiocb
);
1091 int sys_aio_error(const SMB_STRUCT_AIOCB
*aiocb
);
1092 int sys_aio_fsync(int op
, SMB_STRUCT_AIOCB
*aiocb
);
1093 int sys_aio_suspend(const SMB_STRUCT_AIOCB
* const cblist
[], int n
, const struct timespec
*timeout
);
1094 int sys_aio_read(SMB_STRUCT_AIOCB
*aiocb
);
1095 int sys_aio_write(SMB_STRUCT_AIOCB
*aiocb
);
1096 ssize_t
sys_aio_return(SMB_STRUCT_AIOCB
*aiocb
);
1097 int sys_aio_cancel(int fd
, SMB_STRUCT_AIOCB
*aiocb
);
1098 int sys_aio_error(const SMB_STRUCT_AIOCB
*aiocb
);
1099 int sys_aio_fsync(int op
, SMB_STRUCT_AIOCB
*aiocb
);
1100 int sys_aio_suspend(const SMB_STRUCT_AIOCB
* const cblist
[], int n
, const struct timespec
*timeout
);
1101 int sys_getpeereid( int s
, uid_t
*uid
);
1102 int sys_getnameinfo(const struct sockaddr
*psa
,
1109 int sys_connect(int fd
, const struct sockaddr
* addr
);
1111 /* The following definitions come from lib/system_smbd.c */
1113 bool getgroups_unix_user(TALLOC_CTX
*mem_ctx
, const char *user
,
1115 gid_t
**ret_groups
, size_t *p_ngroups
);
1117 /* The following definitions come from lib/tallocmsg.c */
1119 void register_msg_pool_usage(struct messaging_context
*msg_ctx
);
1121 /* The following definitions come from lib/time.c */
1123 time_t get_time_t_max(void);
1124 void GetTimeOfDay(struct timeval
*tval
);
1125 time_t nt_time_to_unix(NTTIME nt
);
1126 void unix_to_nt_time(NTTIME
*nt
, time_t t
);
1127 bool null_time(time_t t
);
1128 bool null_nttime(NTTIME t
);
1129 bool null_timespec(struct timespec ts
);
1130 void push_dos_date(uint8_t *buf
, int offset
, time_t unixdate
, int zone_offset
);
1131 void push_dos_date2(uint8_t *buf
,int offset
,time_t unixdate
, int zone_offset
);
1132 void push_dos_date3(uint8_t *buf
,int offset
,time_t unixdate
, int zone_offset
);
1133 time_t pull_dos_date(const uint8_t *date_ptr
, int zone_offset
);
1134 time_t pull_dos_date2(const uint8_t *date_ptr
, int zone_offset
);
1135 time_t pull_dos_date3(const uint8_t *date_ptr
, int zone_offset
);
1136 char *http_timestring(time_t t
);
1137 char *timestring(TALLOC_CTX
*mem_ctx
, time_t t
);
1138 const char *nt_time_string(TALLOC_CTX
*mem_ctx
, NTTIME nt
);
1139 NTTIME
nttime_from_string(const char *s
);
1140 int64_t usec_time_diff(struct timeval
*tv1
, struct timeval
*tv2
);
1141 struct timeval
timeval_zero(void);
1142 bool timeval_is_zero(const struct timeval
*tv
);
1143 struct timeval
timeval_current(void);
1144 struct timeval
timeval_set(uint32_t secs
, uint32_t usecs
);
1145 struct timeval
timeval_add(const struct timeval
*tv
,
1146 uint32_t secs
, uint32_t usecs
);
1147 struct timeval
timeval_sum(const struct timeval
*tv1
,
1148 const struct timeval
*tv2
);
1149 struct timeval
timeval_current_ofs(uint32_t secs
, uint32_t usecs
);
1150 int timeval_compare(const struct timeval
*tv1
, const struct timeval
*tv2
);
1151 bool timeval_expired(const struct timeval
*tv
);
1152 double timeval_elapsed2(const struct timeval
*tv1
, const struct timeval
*tv2
);
1153 double timeval_elapsed(const struct timeval
*tv
);
1154 struct timeval
timeval_min(const struct timeval
*tv1
,
1155 const struct timeval
*tv2
);
1156 struct timeval
timeval_max(const struct timeval
*tv1
,
1157 const struct timeval
*tv2
);
1158 struct timeval
timeval_until(const struct timeval
*tv1
,
1159 const struct timeval
*tv2
);
1160 NTTIME
timeval_to_nttime(const struct timeval
*tv
);
1161 uint32
convert_time_t_to_uint32(time_t t
);
1162 time_t convert_uint32_to_time_t(uint32 u
);
1163 int get_time_zone(time_t t
);
1164 bool nt_time_is_zero(const NTTIME
*nt
);
1165 time_t generalized_to_unix_time(const char *str
);
1166 int get_server_zone_offset(void);
1167 int set_server_zone_offset(time_t t
);
1168 char *current_timestring(TALLOC_CTX
*ctx
, bool hires
);
1169 void srv_put_dos_date(char *buf
,int offset
,time_t unixdate
);
1170 void srv_put_dos_date2(char *buf
,int offset
, time_t unixdate
);
1171 void srv_put_dos_date3(char *buf
,int offset
,time_t unixdate
);
1172 void put_long_date_timespec(char *p
, struct timespec ts
);
1173 void put_long_date(char *p
, time_t t
);
1174 struct timespec
get_create_timespec(const SMB_STRUCT_STAT
*pst
,bool fake_dirs
);
1175 struct timespec
get_atimespec(const SMB_STRUCT_STAT
*pst
);
1176 void set_atimespec(SMB_STRUCT_STAT
*pst
, struct timespec ts
);
1177 struct timespec
get_mtimespec(const SMB_STRUCT_STAT
*pst
);
1178 void set_mtimespec(SMB_STRUCT_STAT
*pst
, struct timespec ts
);
1179 struct timespec
get_ctimespec(const SMB_STRUCT_STAT
*pst
);
1180 void set_ctimespec(SMB_STRUCT_STAT
*pst
, struct timespec ts
);
1181 void dos_filetime_timespec(struct timespec
*tsp
);
1182 time_t srv_make_unix_date(const void *date_ptr
);
1183 time_t srv_make_unix_date2(const void *date_ptr
);
1184 time_t srv_make_unix_date3(const void *date_ptr
);
1185 time_t convert_timespec_to_time_t(struct timespec ts
);
1186 struct timespec
convert_time_t_to_timespec(time_t t
);
1187 struct timespec
convert_timeval_to_timespec(const struct timeval tv
);
1188 struct timeval
convert_timespec_to_timeval(const struct timespec ts
);
1189 struct timespec
timespec_current(void);
1190 struct timespec
timespec_min(const struct timespec
*ts1
,
1191 const struct timespec
*ts2
);
1192 int timespec_compare(const struct timespec
*ts1
, const struct timespec
*ts2
);
1193 struct timespec
interpret_long_date(const char *p
);
1194 void cli_put_dos_date(struct cli_state
*cli
, char *buf
, int offset
, time_t unixdate
);
1195 void cli_put_dos_date2(struct cli_state
*cli
, char *buf
, int offset
, time_t unixdate
);
1196 void cli_put_dos_date3(struct cli_state
*cli
, char *buf
, int offset
, time_t unixdate
);
1197 time_t cli_make_unix_date(struct cli_state
*cli
, const void *date_ptr
);
1198 time_t cli_make_unix_date2(struct cli_state
*cli
, const void *date_ptr
);
1199 time_t cli_make_unix_date3(struct cli_state
*cli
, const void *date_ptr
);
1200 struct timespec
nt_time_to_unix_timespec(NTTIME
*nt
);
1201 bool nt_time_equals(const NTTIME
*nt1
, const NTTIME
*nt2
);
1202 void TimeInit(void);
1203 void get_process_uptime(struct timeval
*ret_time
);
1204 time_t nt_time_to_unix_abs(const NTTIME
*nt
);
1205 void unix_timespec_to_nt_time(NTTIME
*nt
, struct timespec ts
);
1206 void unix_to_nt_time_abs(NTTIME
*nt
, time_t t
);
1207 bool null_mtime(time_t mtime
);
1208 const char *time_to_asc(const time_t t
);
1209 const char *display_time(NTTIME nttime
);
1210 bool nt_time_is_set(const NTTIME
*nt
);
1212 /* The following definitions come from lib/ufc.c */
1214 char *ufc_crypt(const char *key
,const char *salt
);
1216 /* The following definitions come from lib/username.c */
1218 char *get_user_home_dir(TALLOC_CTX
*mem_ctx
, const char *user
);
1219 struct passwd
*Get_Pwnam_alloc(TALLOC_CTX
*mem_ctx
, const char *user
);
1221 /* The following definitions come from lib/util.c */
1223 bool set_global_myname(const char *myname
);
1224 const char *global_myname(void);
1225 bool set_global_myworkgroup(const char *myworkgroup
);
1226 const char *lp_workgroup(void);
1227 bool set_global_scope(const char *scope
);
1228 const char *global_scope(void);
1229 void gfree_names(void);
1230 void gfree_all( void );
1231 const char *my_netbios_names(int i
);
1232 bool set_netbios_aliases(const char **str_array
);
1233 bool init_names(void);
1234 const char *get_cmdline_auth_info_username(void);
1235 void set_cmdline_auth_info_username(const char *username
);
1236 const char *get_cmdline_auth_info_password(void);
1237 void set_cmdline_auth_info_password(const char *password
);
1238 bool set_cmdline_auth_info_signing_state(const char *arg
);
1239 int get_cmdline_auth_info_signing_state(void);
1240 bool get_cmdline_auth_info_use_kerberos(void);
1241 void set_cmdline_auth_info_use_krb5_ticket(void);
1242 void set_cmdline_auth_info_smb_encrypt(void);
1243 void set_cmdline_auth_info_use_machine_account(void);
1244 bool get_cmdline_auth_info_got_pass(void);
1245 bool get_cmdline_auth_info_smb_encrypt(void);
1246 bool get_cmdline_auth_info_use_machine_account(void);
1247 bool get_cmdline_auth_info_copy(struct user_auth_info
*info
);
1248 bool set_cmdline_auth_info_machine_account_creds(void);
1249 const char *tmpdir(void);
1250 bool add_gid_to_array_unique(TALLOC_CTX
*mem_ctx
, gid_t gid
,
1251 gid_t
**gids
, size_t *num_gids
);
1252 const char *get_numlist(const char *p
, uint32
**num
, int *count
);
1253 bool file_exist(const char *fname
,SMB_STRUCT_STAT
*sbuf
);
1254 bool socket_exist(const char *fname
);
1255 time_t file_modtime(const char *fname
);
1256 bool directory_exist(char *dname
,SMB_STRUCT_STAT
*st
);
1257 SMB_OFF_T
get_file_size(char *file_name
);
1258 char *attrib_string(uint16 mode
);
1259 void show_msg(char *buf
);
1260 void smb_set_enclen(char *buf
,int len
,uint16 enc_ctx_num
);
1261 void smb_setlen(char *buf
,int len
);
1262 int set_message_bcc(char *buf
,int num_bytes
);
1263 ssize_t
message_push_blob(uint8
**outbuf
, DATA_BLOB blob
);
1264 char *unix_clean_name(TALLOC_CTX
*ctx
, const char *s
);
1265 char *clean_name(TALLOC_CTX
*ctx
, const char *s
);
1266 void close_low_fds(bool stderr_too
);
1267 ssize_t
write_data_at_offset(int fd
, const char *buffer
, size_t N
, SMB_OFF_T pos
);
1268 int set_blocking(int fd
, bool set
);
1269 void smb_msleep(unsigned int t
);
1270 void become_daemon(bool Fork
, bool no_process_group
);
1271 bool reinit_after_fork(struct messaging_context
*msg_ctx
,
1272 struct event_context
*ev_ctx
,
1273 bool parent_longlived
);
1274 bool yesno(const char *p
);
1275 void *malloc_(size_t size
);
1276 void *malloc_array(size_t el_size
, unsigned int count
);
1277 void *memalign_array(size_t el_size
, size_t align
, unsigned int count
);
1278 void *calloc_array(size_t size
, size_t nmemb
);
1279 void *Realloc(void *p
, size_t size
, bool free_old_on_error
);
1280 void *realloc_array(void *p
, size_t el_size
, unsigned int count
, bool free_old_on_error
);
1281 void add_to_large_array(TALLOC_CTX
*mem_ctx
, size_t element_size
,
1282 void *element
, void *_array
, uint32
*num_elements
,
1283 ssize_t
*array_size
);
1284 void safe_free(void *p
);
1285 char *get_myname(TALLOC_CTX
*ctx
);
1286 char *get_mydnsdomname(TALLOC_CTX
*ctx
);
1287 int interpret_protocol(const char *str
,int def
);
1288 char *automount_lookup(TALLOC_CTX
*ctx
, const char *user_name
);
1289 char *automount_lookup(TALLOC_CTX
*ctx
, const char *user_name
);
1290 bool process_exists(const struct server_id pid
);
1291 bool process_exists_by_pid(pid_t pid
);
1292 const char *uidtoname(uid_t uid
);
1293 char *gidtoname(gid_t gid
);
1294 uid_t
nametouid(const char *name
);
1295 gid_t
nametogid(const char *name
);
1296 void smb_panic(const char *const why
);
1297 void log_stack_trace(void);
1298 const char *readdirname(SMB_STRUCT_DIR
*p
);
1299 bool is_in_path(const char *name
, name_compare_entry
*namelist
, bool case_sensitive
);
1300 void set_namearray(name_compare_entry
**ppname_array
, char *namelist
);
1301 void free_namearray(name_compare_entry
*name_array
);
1302 bool fcntl_lock(int fd
, int op
, SMB_OFF_T offset
, SMB_OFF_T count
, int type
);
1303 bool fcntl_getlock(int fd
, SMB_OFF_T
*poffset
, SMB_OFF_T
*pcount
, int *ptype
, pid_t
*ppid
);
1304 bool is_myname(const char *s
);
1305 bool is_myworkgroup(const char *s
);
1306 void ra_lanman_string( const char *native_lanman
);
1307 const char *get_remote_arch_str(void);
1308 void set_remote_arch(enum remote_arch_types type
);
1309 enum remote_arch_types
get_remote_arch(void);
1310 void print_asc(int level
, const unsigned char *buf
,int len
);
1311 void dump_data(int level
, const unsigned char *buf1
,int len
);
1312 void dump_data_pw(const char *msg
, const uchar
* data
, size_t len
);
1313 const char *tab_depth(int level
, int depth
);
1314 int str_checksum(const char *s
);
1315 void zero_free(void *p
, size_t size
);
1316 int set_maxfiles(int requested_max
);
1317 int smb_mkstemp(char *name_template
);
1318 void *smb_xmalloc_array(size_t size
, unsigned int count
);
1319 void *smb_xmemdup(const void *p
, size_t size
);
1320 char *smb_xstrdup(const char *s
);
1321 char *smb_xstrndup(const char *s
, size_t n
);
1322 void *memdup(const void *p
, size_t size
);
1323 char *myhostname(void);
1324 char *lock_path(const char *name
);
1325 char *pid_path(const char *name
);
1326 char *lib_path(const char *name
);
1327 char *data_path(const char *name
);
1328 char *state_path(const char *name
);
1329 const char *shlib_ext(void);
1330 char *parent_dirname(const char *path
);
1331 bool parent_dirname_talloc(TALLOC_CTX
*mem_ctx
, const char *dir
,
1332 char **parent
, const char **name
);
1333 bool ms_has_wild(const char *s
);
1334 bool ms_has_wild_w(const smb_ucs2_t
*s
);
1335 bool mask_match(const char *string
, const char *pattern
, bool is_case_sensitive
);
1336 bool mask_match_search(const char *string
, const char *pattern
, bool is_case_sensitive
);
1337 bool mask_match_list(const char *string
, char **list
, int listLen
, bool is_case_sensitive
);
1338 bool unix_wild_match(const char *pattern
, const char *string
);
1339 bool name_to_fqdn(fstring fqdn
, const char *name
);
1340 void *talloc_check_name_abort(const void *ptr
, const char *name
);
1341 uint32
map_share_mode_to_deny_mode(uint32 share_access
, uint32 private_options
);
1342 pid_t
procid_to_pid(const struct server_id
*proc
);
1343 void set_my_vnn(uint32 vnn
);
1344 uint32
get_my_vnn(void);
1345 struct server_id
pid_to_procid(pid_t pid
);
1346 struct server_id
procid_self(void);
1347 struct server_id
server_id_self(void);
1348 bool procid_equal(const struct server_id
*p1
, const struct server_id
*p2
);
1349 bool cluster_id_equal(const struct server_id
*id1
,
1350 const struct server_id
*id2
);
1351 bool procid_is_me(const struct server_id
*pid
);
1352 struct server_id
interpret_pid(const char *pid_string
);
1353 char *procid_str(TALLOC_CTX
*mem_ctx
, const struct server_id
*pid
);
1354 char *procid_str_static(const struct server_id
*pid
);
1355 bool procid_valid(const struct server_id
*pid
);
1356 bool procid_is_local(const struct server_id
*pid
);
1357 int this_is_smp(void);
1358 bool is_offset_safe(const char *buf_base
, size_t buf_len
, char *ptr
, size_t off
);
1359 char *get_safe_ptr(const char *buf_base
, size_t buf_len
, char *ptr
, size_t off
);
1360 char *get_safe_str_ptr(const char *buf_base
, size_t buf_len
, char *ptr
, size_t off
);
1361 int get_safe_SVAL(const char *buf_base
, size_t buf_len
, char *ptr
, size_t off
, int failval
);
1362 int get_safe_IVAL(const char *buf_base
, size_t buf_len
, char *ptr
, size_t off
, int failval
);
1363 void split_domain_user(TALLOC_CTX
*mem_ctx
,
1364 const char *full_name
,
1367 void *_talloc_zero_zeronull(const void *ctx
, size_t size
, const char *name
);
1368 void *_talloc_memdup_zeronull(const void *t
, const void *p
, size_t size
, const char *name
);
1369 void *_talloc_array_zeronull(const void *ctx
, size_t el_size
, unsigned count
, const char *name
);
1370 void *_talloc_zero_array_zeronull(const void *ctx
, size_t el_size
, unsigned count
, const char *name
);
1371 void *talloc_zeronull(const void *context
, size_t size
, const char *name
);
1372 NTSTATUS
split_ntfs_stream_name(TALLOC_CTX
*mem_ctx
, const char *fname
,
1373 char **pbase
, char **pstream
);
1374 bool is_valid_policy_hnd(const POLICY_HND
*hnd
);
1375 const char *strip_hostname(const char *s
);
1377 /* The following definitions come from lib/util_file.c */
1379 char *fgets_slash(char *s2
,int maxlen
,XFILE
*f
);
1380 char *fd_load(int fd
, size_t *psize
, size_t maxsize
);
1381 char *file_load(const char *fname
, size_t *size
, size_t maxsize
);
1382 bool unmap_file(void* start
, size_t size
);
1383 void *map_file(char *fname
, size_t size
);
1384 char **file_lines_load(const char *fname
, int *numlines
, size_t maxsize
);
1385 char **fd_lines_load(int fd
, int *numlines
, size_t maxsize
);
1386 char **file_lines_pload(char *syscmd
, int *numlines
);
1387 void file_lines_free(char **lines
);
1388 void file_lines_slashcont(char **lines
);
1389 bool file_save(const char *fname
, void *packet
, size_t length
);
1391 /* The following definitions come from lib/util_nscd.c */
1393 void smb_nscd_flush_user_cache(void);
1394 void smb_nscd_flush_group_cache(void);
1396 /* The following definitions come from lib/util_nttoken.c */
1398 NT_USER_TOKEN
*dup_nt_token(TALLOC_CTX
*mem_ctx
, const NT_USER_TOKEN
*ptoken
);
1400 /* The following definitions come from lib/util_pw.c */
1402 struct passwd
*tcopy_passwd(TALLOC_CTX
*mem_ctx
, const struct passwd
*from
) ;
1403 void flush_pwnam_cache(void);
1404 struct passwd
*getpwnam_alloc(TALLOC_CTX
*mem_ctx
, const char *name
);
1405 struct passwd
*getpwuid_alloc(TALLOC_CTX
*mem_ctx
, uid_t uid
) ;
1407 /* The following definitions come from lib/util_reg.c */
1409 const char *reg_type_lookup(enum winreg_Type type
);
1410 WERROR
reg_pull_multi_sz(TALLOC_CTX
*mem_ctx
, const void *buf
, size_t len
,
1411 uint32
*num_values
, char ***values
);
1413 /* The following definitions come from lib/util_reg_api.c */
1415 WERROR
registry_pull_value(TALLOC_CTX
*mem_ctx
,
1416 struct registry_value
**pvalue
,
1417 enum winreg_Type type
, uint8
*data
,
1418 uint32 size
, uint32 length
);
1419 WERROR
registry_push_value(TALLOC_CTX
*mem_ctx
,
1420 const struct registry_value
*value
,
1421 DATA_BLOB
*presult
);
1423 /* The following definitions come from lib/util_seaccess.c */
1425 void se_map_generic(uint32
*access_mask
, const struct generic_mapping
*mapping
);
1426 void se_map_standard(uint32
*access_mask
, struct standard_mapping
*mapping
);
1427 bool se_access_check(const SEC_DESC
*sd
, const NT_USER_TOKEN
*token
,
1428 uint32 acc_desired
, uint32
*acc_granted
,
1430 NTSTATUS
samr_make_sam_obj_sd(TALLOC_CTX
*ctx
, SEC_DESC
**psd
, size_t *sd_size
);
1432 /* The following definitions come from lib/util_sec.c */
1434 void sec_init(void);
1435 uid_t
sec_initial_uid(void);
1436 gid_t
sec_initial_gid(void);
1437 bool non_root_mode(void);
1438 void gain_root_privilege(void);
1439 void gain_root_group_privilege(void);
1440 void set_effective_uid(uid_t uid
);
1441 void set_effective_gid(gid_t gid
);
1442 void save_re_uid(void);
1443 void restore_re_uid_fromroot(void);
1444 void restore_re_uid(void);
1445 void save_re_gid(void);
1446 void restore_re_gid(void);
1447 int set_re_uid(void);
1448 void become_user_permanently(uid_t uid
, gid_t gid
);
1449 bool is_setuid_root(void) ;
1451 /* The following definitions come from lib/util_sid.c */
1453 const char *sid_type_lookup(uint32 sid_type
) ;
1454 NT_USER_TOKEN
*get_system_token(void) ;
1455 const char *get_global_sam_name(void) ;
1456 char *sid_to_fstring(fstring sidstr_out
, const DOM_SID
*sid
);
1457 char *sid_string_talloc(TALLOC_CTX
*mem_ctx
, const DOM_SID
*sid
);
1458 char *sid_string_dbg(const DOM_SID
*sid
);
1459 char *sid_string_tos(const DOM_SID
*sid
);
1460 bool string_to_sid(DOM_SID
*sidout
, const char *sidstr
);
1461 DOM_SID
*string_sid_talloc(TALLOC_CTX
*mem_ctx
, const char *sidstr
);
1462 bool sid_append_rid(DOM_SID
*sid
, uint32 rid
);
1463 bool sid_compose(DOM_SID
*dst
, const DOM_SID
*domain_sid
, uint32 rid
);
1464 bool sid_split_rid(DOM_SID
*sid
, uint32
*rid
);
1465 bool sid_peek_rid(const DOM_SID
*sid
, uint32
*rid
);
1466 bool sid_peek_check_rid(const DOM_SID
*exp_dom_sid
, const DOM_SID
*sid
, uint32
*rid
);
1467 void sid_copy(DOM_SID
*dst
, const DOM_SID
*src
);
1468 bool sid_linearize(char *outbuf
, size_t len
, const DOM_SID
*sid
);
1469 bool sid_parse(const char *inbuf
, size_t len
, DOM_SID
*sid
);
1470 int sid_compare(const DOM_SID
*sid1
, const DOM_SID
*sid2
);
1471 int sid_compare_domain(const DOM_SID
*sid1
, const DOM_SID
*sid2
);
1472 bool sid_equal(const DOM_SID
*sid1
, const DOM_SID
*sid2
);
1473 bool non_mappable_sid(DOM_SID
*sid
);
1474 char *sid_binstring(const DOM_SID
*sid
);
1475 char *sid_binstring_hex(const DOM_SID
*sid
);
1476 DOM_SID
*sid_dup_talloc(TALLOC_CTX
*ctx
, const DOM_SID
*src
);
1477 NTSTATUS
add_sid_to_array(TALLOC_CTX
*mem_ctx
, const DOM_SID
*sid
,
1478 DOM_SID
**sids
, size_t *num
);
1479 NTSTATUS
add_sid_to_array_unique(TALLOC_CTX
*mem_ctx
, const DOM_SID
*sid
,
1480 DOM_SID
**sids
, size_t *num_sids
);
1481 void del_sid_from_array(const DOM_SID
*sid
, DOM_SID
**sids
, size_t *num
);
1482 bool add_rid_to_array_unique(TALLOC_CTX
*mem_ctx
,
1483 uint32 rid
, uint32
**pp_rids
, size_t *p_num
);
1484 bool is_null_sid(const DOM_SID
*sid
);
1485 bool is_sid_in_token(const NT_USER_TOKEN
*token
, const DOM_SID
*sid
);
1486 NTSTATUS
sid_array_from_info3(TALLOC_CTX
*mem_ctx
,
1487 const struct netr_SamInfo3
*info3
,
1488 DOM_SID
**user_sids
,
1489 size_t *num_user_sids
,
1490 bool include_user_group_rid
,
1491 bool skip_ressource_groups
);
1493 /* The following definitions come from lib/util_sock.c */
1495 bool is_ipaddress_v4(const char *str
);
1496 bool is_ipaddress(const char *str
);
1497 bool is_broadcast_addr(const struct sockaddr_storage
*pss
);
1498 uint32
interpret_addr(const char *str
);
1499 struct in_addr
*interpret_addr2(struct in_addr
*ip
, const char *str
);
1500 bool interpret_string_addr(struct sockaddr_storage
*pss
,
1503 bool is_loopback_ip_v4(struct in_addr ip
);
1504 bool is_loopback_addr(const struct sockaddr_storage
*pss
);
1505 bool is_zero_ip_v4(struct in_addr ip
);
1506 bool is_zero_addr(const struct sockaddr_storage
*pss
);
1507 void zero_ip_v4(struct in_addr
*ip
);
1508 void zero_sockaddr(struct sockaddr_storage
*pss
);
1509 bool same_net_v4(struct in_addr ip1
,struct in_addr ip2
,struct in_addr mask
);
1510 void in_addr_to_sockaddr_storage(struct sockaddr_storage
*ss
,
1512 bool same_net(const struct sockaddr_storage
*ip1
,
1513 const struct sockaddr_storage
*ip2
,
1514 const struct sockaddr_storage
*mask
);
1515 bool sockaddr_equal(const struct sockaddr_storage
*ip1
,
1516 const struct sockaddr_storage
*ip2
);
1517 bool is_address_any(const struct sockaddr_storage
*psa
);
1518 uint16_t get_sockaddr_port(const struct sockaddr_storage
*pss
);
1519 char *print_sockaddr(char *dest
,
1521 const struct sockaddr_storage
*psa
);
1522 char *print_canonical_sockaddr(TALLOC_CTX
*ctx
,
1523 const struct sockaddr_storage
*pss
);
1524 void set_sockaddr_port(struct sockaddr_storage
*psa
, uint16 port
);
1525 const char *client_name(int fd
);
1526 const char *client_addr(int fd
, char *addr
, size_t addrlen
);
1527 const char *client_socket_addr(int fd
, char *addr
, size_t addr_len
);
1528 int client_socket_port(int fd
);
1529 void set_smb_read_error(enum smb_read_errors
*pre
,
1530 enum smb_read_errors newerr
);
1531 void cond_set_smb_read_error(enum smb_read_errors
*pre
,
1532 enum smb_read_errors newerr
);
1533 bool is_a_socket(int fd
);
1534 void set_socket_options(int fd
, const char *options
);
1535 ssize_t
read_udp_v4_socket(int fd
,
1538 struct sockaddr_storage
*psa
);
1539 NTSTATUS
read_socket_with_timeout(int fd
, char *buf
,
1540 size_t mincnt
, size_t maxcnt
,
1541 unsigned int time_out
,
1543 NTSTATUS
read_data(int fd
, char *buffer
, size_t N
);
1544 ssize_t
write_data_iov(int fd
, const struct iovec
*orig_iov
, int iovcnt
);
1545 ssize_t
write_data(int fd
, const char *buffer
, size_t N
);
1546 bool send_keepalive(int client
);
1547 NTSTATUS
read_smb_length_return_keepalive(int fd
, char *inbuf
,
1548 unsigned int timeout
,
1550 NTSTATUS
read_smb_length(int fd
, char *inbuf
, unsigned int timeout
,
1552 NTSTATUS
receive_smb_raw(int fd
, char *buffer
, size_t buflen
, unsigned int timeout
,
1553 size_t maxlen
, size_t *p_len
);
1554 int open_socket_in(int type
,
1557 const struct sockaddr_storage
*psock
,
1559 int open_socket_out(int type
,
1560 const struct sockaddr_storage
*pss
,
1563 bool open_any_socket_out(struct sockaddr_storage
*addrs
, int num_addrs
,
1564 int timeout
, int *fd_index
, int *fd
);
1565 int open_udp_socket(const char *host
, int port
);
1566 const char *get_peer_name(int fd
, bool force_lookup
);
1567 const char *get_peer_addr(int fd
, char *addr
, size_t addr_len
);
1568 int create_pipe_sock(const char *socket_dir
,
1569 const char *socket_name
,
1571 const char *get_mydnsfullname(void);
1572 bool is_myname_or_ipaddr(const char *s
);
1574 /* The following definitions come from lib/util_str.c */
1576 bool next_token(const char **ptr
, char *buff
, const char *sep
, size_t bufsize
);
1577 bool next_token_talloc(TALLOC_CTX
*ctx
,
1581 bool next_token_no_ltrim_talloc(TALLOC_CTX
*ctx
,
1585 int StrCaseCmp(const char *s
, const char *t
);
1586 int StrnCaseCmp(const char *s
, const char *t
, size_t len
);
1587 bool strequal(const char *s1
, const char *s2
);
1588 bool strnequal(const char *s1
,const char *s2
,size_t n
);
1589 bool strcsequal(const char *s1
,const char *s2
);
1590 int strwicmp(const char *psz1
, const char *psz2
);
1591 void strnorm(char *s
, int case_default
);
1592 bool strisnormal(const char *s
, int case_default
);
1593 void string_replace( char *s
, char oldc
, char newc
);
1594 char *push_skip_string(char *buf
);
1595 char *skip_string(const char *base
, size_t len
, char *buf
);
1596 size_t str_charnum(const char *s
);
1597 size_t str_ascii_charnum(const char *s
);
1598 bool trim_char(char *s
,char cfront
,char cback
);
1599 bool trim_string(char *s
,const char *front
,const char *back
);
1600 bool strhasupper(const char *s
);
1601 bool strhaslower(const char *s
);
1602 size_t count_chars(const char *s
,char c
);
1603 char *safe_strcpy_fn(const char *fn
,
1608 char *safe_strcat_fn(const char *fn
,
1613 char *alpha_strcpy_fn(const char *fn
,
1617 const char *other_safe_chars
,
1619 char *StrnCpy_fn(const char *fn
, int line
,char *dest
,const char *src
,size_t n
);
1620 size_t strhex_to_str(char *buf
, size_t buf_len
, const char *strhex
, size_t strhex_len
);
1621 DATA_BLOB
strhex_to_data_blob(TALLOC_CTX
*mem_ctx
, const char *strhex
);
1622 char *hex_encode(TALLOC_CTX
*mem_ctx
, const unsigned char *buff_in
, size_t len
);
1623 bool in_list(const char *s
, const char *list
, bool casesensitive
);
1624 void string_free(char **s
);
1625 bool string_set(char **dest
,const char *src
);
1626 void string_sub2(char *s
,const char *pattern
, const char *insert
, size_t len
,
1627 bool remove_unsafe_characters
, bool replace_once
,
1628 bool allow_trailing_dollar
);
1629 void string_sub_once(char *s
, const char *pattern
,
1630 const char *insert
, size_t len
);
1631 void string_sub(char *s
,const char *pattern
, const char *insert
, size_t len
);
1632 void fstring_sub(char *s
,const char *pattern
,const char *insert
);
1633 char *realloc_string_sub2(char *string
,
1634 const char *pattern
,
1636 bool remove_unsafe_characters
,
1637 bool allow_trailing_dollar
);
1638 char *realloc_string_sub(char *string
,
1639 const char *pattern
,
1640 const char *insert
);
1641 char *talloc_string_sub2(TALLOC_CTX
*mem_ctx
, const char *src
,
1642 const char *pattern
,
1644 bool remove_unsafe_characters
,
1646 bool allow_trailing_dollar
);
1647 char *talloc_string_sub(TALLOC_CTX
*mem_ctx
,
1649 const char *pattern
,
1650 const char *insert
);
1651 void all_string_sub(char *s
,const char *pattern
,const char *insert
, size_t len
);
1652 char *talloc_all_string_sub(TALLOC_CTX
*ctx
,
1654 const char *pattern
,
1655 const char *insert
);
1656 char *octal_string(int i
);
1657 char *string_truncate(char *s
, unsigned int length
);
1658 char *strchr_m(const char *src
, char c
);
1659 char *strrchr_m(const char *s
, char c
);
1660 char *strnrchr_m(const char *s
, char c
, unsigned int n
);
1661 char *strstr_m(const char *src
, const char *findstr
);
1662 void strlower_m(char *s
);
1663 void strupper_m(char *s
);
1664 size_t strlen_m(const char *s
);
1665 size_t strlen_m_term(const char *s
);
1666 size_t strlen_m_term_null(const char *s
);
1667 char *binary_string_rfc2254(char *buf
, int len
);
1668 char *binary_string(char *buf
, int len
);
1669 int fstr_sprintf(fstring s
, const char *fmt
, ...);
1670 char **str_list_make(TALLOC_CTX
*mem_ctx
, const char *string
, const char *sep
);
1671 bool str_list_copy(TALLOC_CTX
*mem_ctx
, char ***dest
, const char **src
);
1672 bool str_list_compare(char **list1
, char **list2
);
1673 int str_list_count( const char **list
);
1674 bool str_list_sub_basic( char **list
, const char *smb_name
,
1675 const char *domain_name
);
1676 bool str_list_substitute(char **list
, const char *pattern
, const char *insert
);
1677 char *ipstr_list_make(char **ipstr_list
,
1678 const struct ip_service
*ip_list
,
1680 int ipstr_list_parse(const char *ipstr_list
, struct ip_service
**ip_list
);
1681 void ipstr_list_free(char* ipstr_list
);
1682 void rfc1738_unescape(char *buf
);
1683 DATA_BLOB
base64_decode_data_blob(const char *s
);
1684 void base64_decode_inplace(char *s
);
1685 char *base64_encode_data_blob(TALLOC_CTX
*mem_ctx
, DATA_BLOB data
);
1686 SMB_BIG_UINT
STR_TO_SMB_BIG_UINT(const char *nptr
, const char **entptr
);
1687 SMB_OFF_T
conv_str_size(const char * str
);
1688 void string_append(char **left
, const char *right
);
1689 bool add_string_to_array(TALLOC_CTX
*mem_ctx
,
1690 const char *str
, const char ***strings
,
1692 void sprintf_append(TALLOC_CTX
*mem_ctx
, char **string
, ssize_t
*len
,
1693 size_t *bufsize
, const char *fmt
, ...);
1694 int asprintf_strupper_m(char **strp
, const char *fmt
, ...);
1695 char *talloc_asprintf_strupper_m(TALLOC_CTX
*t
, const char *fmt
, ...);
1696 char *sstring_sub(const char *src
, char front
, char back
);
1697 bool validate_net_name( const char *name
,
1698 const char *invalid_chars
,
1700 size_t ascii_len_n(const char *src
, size_t n
);
1701 size_t utf16_len(const void *buf
);
1702 size_t utf16_len_n(const void *src
, size_t n
);
1703 char *escape_shell_string(const char *src
);
1705 /* The following definitions come from lib/util_unistr.c */
1707 void gfree_case_tables(void);
1708 void load_case_tables(void);
1709 void init_valid_table(void);
1710 size_t dos_PutUniCode(char *dst
,const char *src
, size_t len
, bool null_terminate
);
1711 char *skip_unibuf(char *src
, size_t len
);
1712 int rpcstr_pull(char* dest
, void *src
, int dest_len
, int src_len
, int flags
);
1713 int rpcstr_pull_talloc(TALLOC_CTX
*ctx
,
1718 int rpcstr_pull_unistr2_fstring(char *dest
, UNISTR2
*src
);
1719 char *rpcstr_pull_unistr2_talloc(TALLOC_CTX
*ctx
, const UNISTR2
*src
);
1720 int rpcstr_push(void *dest
, const char *src
, size_t dest_len
, int flags
);
1721 int rpcstr_push_talloc(TALLOC_CTX
*ctx
, smb_ucs2_t
**dest
, const char *src
);
1722 void unistr2_to_ascii(char *dest
, const UNISTR2
*str
, size_t maxlen
);
1723 void unistr3_to_ascii(char *dest
, const UNISTR3
*str
, size_t maxlen
);
1724 char *unistr2_to_ascii_talloc(TALLOC_CTX
*ctx
, const UNISTR2
*str
);
1725 const char *unistr2_static(const UNISTR2
*str
);
1726 smb_ucs2_t
toupper_w(smb_ucs2_t val
);
1727 smb_ucs2_t
tolower_w( smb_ucs2_t val
);
1728 bool islower_w(smb_ucs2_t c
);
1729 bool isupper_w(smb_ucs2_t c
);
1730 bool isvalid83_w(smb_ucs2_t c
);
1731 size_t strlen_w(const smb_ucs2_t
*src
);
1732 size_t strnlen_w(const smb_ucs2_t
*src
, size_t max
);
1733 smb_ucs2_t
*strchr_w(const smb_ucs2_t
*s
, smb_ucs2_t c
);
1734 smb_ucs2_t
*strchr_wa(const smb_ucs2_t
*s
, char c
);
1735 smb_ucs2_t
*strrchr_w(const smb_ucs2_t
*s
, smb_ucs2_t c
);
1736 smb_ucs2_t
*strnrchr_w(const smb_ucs2_t
*s
, smb_ucs2_t c
, unsigned int n
);
1737 smb_ucs2_t
*strstr_w(const smb_ucs2_t
*s
, const smb_ucs2_t
*ins
);
1738 bool strlower_w(smb_ucs2_t
*s
);
1739 bool strupper_w(smb_ucs2_t
*s
);
1740 void strnorm_w(smb_ucs2_t
*s
, int case_default
);
1741 int strcmp_w(const smb_ucs2_t
*a
, const smb_ucs2_t
*b
);
1742 int strncmp_w(const smb_ucs2_t
*a
, const smb_ucs2_t
*b
, size_t len
);
1743 int strcasecmp_w(const smb_ucs2_t
*a
, const smb_ucs2_t
*b
);
1744 int strncasecmp_w(const smb_ucs2_t
*a
, const smb_ucs2_t
*b
, size_t len
);
1745 bool strequal_w(const smb_ucs2_t
*s1
, const smb_ucs2_t
*s2
);
1746 bool strnequal_w(const smb_ucs2_t
*s1
,const smb_ucs2_t
*s2
,size_t n
);
1747 smb_ucs2_t
*strdup_w(const smb_ucs2_t
*src
);
1748 smb_ucs2_t
*strndup_w(const smb_ucs2_t
*src
, size_t len
);
1749 smb_ucs2_t
*strncpy_w(smb_ucs2_t
*dest
, const smb_ucs2_t
*src
, const size_t max
);
1750 smb_ucs2_t
*strncat_w(smb_ucs2_t
*dest
, const smb_ucs2_t
*src
, const size_t max
);
1751 smb_ucs2_t
*strcat_w(smb_ucs2_t
*dest
, const smb_ucs2_t
*src
);
1752 void string_replace_w(smb_ucs2_t
*s
, smb_ucs2_t oldc
, smb_ucs2_t newc
);
1753 bool trim_string_w(smb_ucs2_t
*s
, const smb_ucs2_t
*front
,
1754 const smb_ucs2_t
*back
);
1755 int strcmp_wa(const smb_ucs2_t
*a
, const char *b
);
1756 int strncmp_wa(const smb_ucs2_t
*a
, const char *b
, size_t len
);
1757 smb_ucs2_t
*strpbrk_wa(const smb_ucs2_t
*s
, const char *p
);
1758 smb_ucs2_t
*strstr_wa(const smb_ucs2_t
*s
, const char *ins
);
1759 int unistrlen(uint16
*s
);
1760 int unistrcpy(uint16
*dst
, uint16
*src
);
1761 UNISTR2
* ucs2_to_unistr2(TALLOC_CTX
*ctx
, UNISTR2
* dst
, smb_ucs2_t
* src
);
1762 int toupper_ascii(int c
);
1763 int tolower_ascii(int c
);
1764 int isupper_ascii(int c
);
1765 int islower_ascii(int c
);
1767 /* The following definitions come from lib/util_uuid.c */
1769 void smb_uuid_pack(const struct GUID uu
, UUID_FLAT
*ptr
);
1770 void smb_uuid_unpack(const UUID_FLAT in
, struct GUID
*uu
);
1771 void smb_uuid_generate_random(struct GUID
*uu
);
1772 const char *smb_uuid_string(TALLOC_CTX
*mem_ctx
, const struct GUID uu
);
1773 bool smb_string_to_uuid(const char *in
, struct GUID
* uu
);
1774 char *guid_binstring(const struct GUID
*guid
);
1776 /* The following definitions come from lib/version.c */
1778 const char *samba_version_string(void);
1780 /* The following definitions come from lib/winbind_util.c */
1782 bool winbind_lookup_name(const char *dom_name
, const char *name
, DOM_SID
*sid
,
1783 enum lsa_SidType
*name_type
);
1784 bool winbind_lookup_sid(TALLOC_CTX
*mem_ctx
, const DOM_SID
*sid
,
1785 const char **domain
, const char **name
,
1786 enum lsa_SidType
*name_type
);
1787 bool winbind_ping(void);
1788 bool winbind_sid_to_uid(uid_t
*puid
, const DOM_SID
*sid
);
1789 bool winbind_uid_to_sid(DOM_SID
*sid
, uid_t uid
);
1790 bool winbind_sid_to_gid(gid_t
*pgid
, const DOM_SID
*sid
);
1791 bool winbind_gid_to_sid(DOM_SID
*sid
, gid_t gid
);
1792 wbcErr
wb_is_trusted_domain(const char *domain
);
1793 bool winbind_lookup_rids(TALLOC_CTX
*mem_ctx
,
1794 const DOM_SID
*domain_sid
,
1795 int num_rids
, uint32
*rids
,
1796 const char **domain_name
,
1797 const char ***names
, enum lsa_SidType
**types
);
1798 bool winbind_allocate_uid(uid_t
*uid
);
1799 bool winbind_allocate_gid(gid_t
*gid
);
1800 bool winbind_lookup_name(const char *dom_name
, const char *name
, DOM_SID
*sid
,
1801 enum lsa_SidType
*name_type
);
1802 bool winbind_lookup_sid(TALLOC_CTX
*mem_ctx
, const DOM_SID
*sid
,
1803 const char **domain
, const char **name
,
1804 enum lsa_SidType
*name_type
);
1805 bool winbind_ping(void);
1806 bool winbind_sid_to_uid(uid_t
*puid
, const DOM_SID
*sid
);
1807 bool winbind_uid_to_sid(DOM_SID
*sid
, uid_t uid
);
1808 bool winbind_sid_to_gid(gid_t
*pgid
, const DOM_SID
*sid
);
1809 bool winbind_gid_to_sid(DOM_SID
*sid
, gid_t gid
);
1810 wbcErr
wb_is_trusted_domain(const char *domain
);
1811 bool winbind_lookup_rids(TALLOC_CTX
*mem_ctx
,
1812 const DOM_SID
*domain_sid
,
1813 int num_rids
, uint32
*rids
,
1814 const char **domain_name
,
1815 const char ***names
, enum lsa_SidType
**types
);
1816 bool winbind_allocate_uid(uid_t
*uid
);
1817 bool winbind_allocate_gid(gid_t
*gid
);
1819 /* The following definitions come from lib/wins_srv.c */
1821 bool wins_srv_is_dead(struct in_addr wins_ip
, struct in_addr src_ip
);
1822 void wins_srv_alive(struct in_addr wins_ip
, struct in_addr src_ip
);
1823 void wins_srv_died(struct in_addr wins_ip
, struct in_addr src_ip
);
1824 unsigned wins_srv_count(void);
1825 char **wins_srv_tags(void);
1826 void wins_srv_tags_free(char **list
);
1827 struct in_addr
wins_srv_ip_tag(const char *tag
, struct in_addr src_ip
);
1828 unsigned wins_srv_count_tag(const char *tag
);
1830 /* The following definitions come from lib/xfile.c */
1832 int x_setvbuf(XFILE
*f
, char *buf
, int mode
, size_t size
);
1833 XFILE
*x_fopen(const char *fname
, int flags
, mode_t mode
);
1834 XFILE
*x_fdup(const XFILE
*f
);
1835 int x_fclose(XFILE
*f
);
1836 size_t x_fwrite(const void *p
, size_t size
, size_t nmemb
, XFILE
*f
);
1837 int x_fileno(const XFILE
*f
);
1838 int x_fflush(XFILE
*f
);
1839 void x_setbuffer(XFILE
*f
, char *buf
, size_t size
);
1840 void x_setbuf(XFILE
*f
, char *buf
);
1841 void x_setlinebuf(XFILE
*f
);
1842 int x_feof(XFILE
*f
);
1843 int x_ferror(XFILE
*f
);
1844 int x_fgetc(XFILE
*f
);
1845 size_t x_fread(void *p
, size_t size
, size_t nmemb
, XFILE
*f
);
1846 char *x_fgets(char *s
, int size
, XFILE
*stream
) ;
1847 off_t
x_tseek(XFILE
*f
, off_t offset
, int whence
);
1849 /* The following definitions come from libads/ads_status.c */
1851 ADS_STATUS
ads_build_error(enum ads_error_type etype
,
1852 int rc
, int minor_status
);
1853 ADS_STATUS
ads_build_nt_error(enum ads_error_type etype
,
1854 NTSTATUS nt_status
);
1855 NTSTATUS
ads_ntstatus(ADS_STATUS status
);
1856 const char *ads_errstr(ADS_STATUS status
);
1857 NTSTATUS
gss_err_to_ntstatus(uint32 maj
, uint32 min
);
1859 /* The following definitions come from libads/ads_struct.c */
1861 char *ads_build_path(const char *realm
, const char *sep
, const char *field
, int reverse
);
1862 char *ads_build_dn(const char *realm
);
1863 char *ads_build_domain(const char *dn
);
1864 ADS_STRUCT
*ads_init(const char *realm
,
1865 const char *workgroup
,
1866 const char *ldap_server
);
1867 void ads_destroy(ADS_STRUCT
**ads
);
1869 /* The following definitions come from libads/ads_utils.c */
1871 uint32
ads_acb2uf(uint32 acb
);
1872 uint32
ads_uf2acb(uint32 uf
);
1873 uint32
ads_uf2atype(uint32 uf
);
1874 uint32
ads_gtype2atype(uint32 gtype
);
1875 enum lsa_SidType
ads_atype_map(uint32 atype
);
1877 /* The following definitions come from libads/authdata.c */
1879 struct PAC_LOGON_INFO
*get_logon_info_from_pac(struct PAC_DATA
*pac_data
);
1880 NTSTATUS
kerberos_return_pac(TALLOC_CTX
*mem_ctx
,
1884 time_t *expire_time
,
1885 time_t *renew_till_time
,
1886 const char *cache_name
,
1888 bool add_netbios_addr
,
1889 time_t renewable_time
,
1890 struct PAC_DATA
**pac_ret
);
1891 NTSTATUS
kerberos_return_info3_from_pac(TALLOC_CTX
*mem_ctx
,
1895 time_t *expire_time
,
1896 time_t *renew_till_time
,
1897 const char *cache_name
,
1899 bool add_netbios_addr
,
1900 time_t renewable_time
,
1901 struct netr_SamInfo3
**info3
);
1903 /* The following definitions come from libads/cldap.c */
1905 bool ads_cldap_netlogon(TALLOC_CTX
*mem_ctx
,
1908 uint32_t *nt_version
,
1909 union nbt_cldap_netlogon
**reply
);
1910 bool ads_cldap_netlogon_5(TALLOC_CTX
*mem_ctx
,
1913 struct nbt_cldap_netlogon_5
*reply5
);
1914 bool pull_mailslot_cldap_reply(TALLOC_CTX
*mem_ctx
,
1915 const DATA_BLOB
*blob
,
1916 union nbt_cldap_netlogon
*r
,
1917 uint32_t *nt_version
);
1919 /* The following definitions come from libads/disp_sec.c */
1921 void ads_disp_sd(ADS_STRUCT
*ads
, TALLOC_CTX
*mem_ctx
, SEC_DESC
*sd
);
1923 /* The following definitions come from libads/dns.c */
1925 NTSTATUS
ads_dns_lookup_ns(TALLOC_CTX
*ctx
,
1926 const char *dnsdomain
,
1927 struct dns_rr_ns
**nslist
,
1929 bool sitename_store(const char *realm
, const char *sitename
);
1930 char *sitename_fetch(const char *realm
);
1931 bool stored_sitename_changed(const char *realm
, const char *sitename
);
1932 NTSTATUS
ads_dns_query_dcs(TALLOC_CTX
*ctx
,
1934 const char *sitename
,
1935 struct dns_rr_srv
**dclist
,
1937 NTSTATUS
ads_dns_query_gcs(TALLOC_CTX
*ctx
,
1939 const char *sitename
,
1940 struct dns_rr_srv
**dclist
,
1942 NTSTATUS
ads_dns_query_kdcs(TALLOC_CTX
*ctx
,
1943 const char *dns_forest_name
,
1944 const char *sitename
,
1945 struct dns_rr_srv
**dclist
,
1947 NTSTATUS
ads_dns_query_pdc(TALLOC_CTX
*ctx
,
1948 const char *dns_domain_name
,
1949 struct dns_rr_srv
**dclist
,
1951 NTSTATUS
ads_dns_query_dcs_guid(TALLOC_CTX
*ctx
,
1952 const char *dns_forest_name
,
1953 const struct GUID
*domain_guid
,
1954 struct dns_rr_srv
**dclist
,
1957 /* The following definitions come from libads/kerberos.c */
1959 int kerberos_kinit_password_ext(const char *principal
,
1960 const char *password
,
1962 time_t *expire_time
,
1963 time_t *renew_till_time
,
1964 const char *cache_name
,
1966 bool add_netbios_addr
,
1967 time_t renewable_time
,
1968 NTSTATUS
*ntstatus
);
1969 int ads_kinit_password(ADS_STRUCT
*ads
);
1970 int ads_kdestroy(const char *cc_name
);
1971 char* kerberos_standard_des_salt( void );
1972 bool kerberos_secrets_store_des_salt( const char* salt
);
1973 char* kerberos_secrets_fetch_des_salt( void );
1974 char *kerberos_get_default_realm_from_ccache( void );
1975 bool kerberos_secrets_store_salting_principal(const char *service
,
1977 const char *principal
);
1978 int kerberos_kinit_password(const char *principal
,
1979 const char *password
,
1981 const char *cache_name
);
1982 bool create_local_private_krb5_conf_for_domain(const char *realm
,
1984 const char *sitename
,
1985 struct sockaddr_storage
*pss
);
1987 /* The following definitions come from libads/kerberos_keytab.c */
1989 int ads_keytab_add_entry(ADS_STRUCT
*ads
, const char *srvPrinc
);
1990 int ads_keytab_flush(ADS_STRUCT
*ads
);
1991 int ads_keytab_create_default(ADS_STRUCT
*ads
);
1992 int ads_keytab_list(const char *keytab_name
);
1994 /* The following definitions come from libads/kerberos_verify.c */
1996 NTSTATUS
ads_verify_ticket(TALLOC_CTX
*mem_ctx
,
1999 const DATA_BLOB
*ticket
,
2001 struct PAC_DATA
**pac_data
,
2003 DATA_BLOB
*session_key
,
2004 bool use_replay_cache
);
2006 /* The following definitions come from libads/krb5_errs.c */
2009 /* The following definitions come from libads/krb5_setpw.c */
2011 ADS_STATUS
ads_krb5_set_password(const char *kdc_host
, const char *princ
,
2012 const char *newpw
, int time_offset
);
2013 ADS_STATUS
kerberos_set_password(const char *kpasswd_server
,
2014 const char *auth_principal
, const char *auth_password
,
2015 const char *target_principal
, const char *new_password
,
2017 ADS_STATUS
ads_set_machine_password(ADS_STRUCT
*ads
,
2018 const char *machine_account
,
2019 const char *password
);
2021 /* The following definitions come from libads/ldap.c */
2023 bool ads_sitename_match(ADS_STRUCT
*ads
);
2024 bool ads_closest_dc(ADS_STRUCT
*ads
);
2025 bool ads_try_connect(ADS_STRUCT
*ads
, const char *server
);
2026 ADS_STATUS
ads_connect(ADS_STRUCT
*ads
);
2027 void ads_disconnect(ADS_STRUCT
*ads
);
2028 ADS_STATUS
ads_do_search_all_fn(ADS_STRUCT
*ads
, const char *bind_path
,
2029 int scope
, const char *expr
, const char **attrs
,
2030 bool (*fn
)(ADS_STRUCT
*, char *, void **, void *),
2032 void ads_memfree(ADS_STRUCT
*ads
, void *mem
);
2033 char *ads_parent_dn(const char *dn
);
2034 ADS_MODLIST
ads_init_mods(TALLOC_CTX
*ctx
);
2035 ADS_STATUS
ads_mod_str(TALLOC_CTX
*ctx
, ADS_MODLIST
*mods
,
2036 const char *name
, const char *val
);
2037 ADS_STATUS
ads_mod_strlist(TALLOC_CTX
*ctx
, ADS_MODLIST
*mods
,
2038 const char *name
, const char **vals
);
2039 ADS_STATUS
ads_gen_mod(ADS_STRUCT
*ads
, const char *mod_dn
, ADS_MODLIST mods
);
2040 ADS_STATUS
ads_gen_add(ADS_STRUCT
*ads
, const char *new_dn
, ADS_MODLIST mods
);
2041 ADS_STATUS
ads_del_dn(ADS_STRUCT
*ads
, char *del_dn
);
2042 char *ads_ou_string(ADS_STRUCT
*ads
, const char *org_unit
);
2043 char *ads_default_ou_string(ADS_STRUCT
*ads
, const char *wknguid
);
2044 ADS_STATUS
ads_add_strlist(TALLOC_CTX
*ctx
, ADS_MODLIST
*mods
,
2045 const char *name
, const char **vals
);
2046 uint32
ads_get_kvno(ADS_STRUCT
*ads
, const char *machine_name
);
2047 ADS_STATUS
ads_clear_service_principal_names(ADS_STRUCT
*ads
, const char *machine_name
);
2048 ADS_STATUS
ads_add_service_principal_name(ADS_STRUCT
*ads
, const char *machine_name
,
2049 const char *my_fqdn
, const char *spn
);
2050 ADS_STATUS
ads_create_machine_acct(ADS_STRUCT
*ads
, const char *machine_name
,
2051 const char *org_unit
);
2052 ADS_STATUS
ads_move_machine_acct(ADS_STRUCT
*ads
, const char *machine_name
,
2053 const char *org_unit
, bool *moved
);
2054 int ads_count_replies(ADS_STRUCT
*ads
, void *res
);
2055 ADS_STATUS
ads_USN(ADS_STRUCT
*ads
, uint32
*usn
);
2056 ADS_STATUS
ads_current_time(ADS_STRUCT
*ads
);
2057 ADS_STATUS
ads_domain_func_level(ADS_STRUCT
*ads
, uint32
*val
);
2058 ADS_STATUS
ads_domain_sid(ADS_STRUCT
*ads
, DOM_SID
*sid
);
2059 ADS_STATUS
ads_site_dn(ADS_STRUCT
*ads
, TALLOC_CTX
*mem_ctx
, const char **site_name
);
2060 ADS_STATUS
ads_site_dn_for_machine(ADS_STRUCT
*ads
, TALLOC_CTX
*mem_ctx
, const char *computer_name
, const char **site_dn
);
2061 ADS_STATUS
ads_upn_suffixes(ADS_STRUCT
*ads
, TALLOC_CTX
*mem_ctx
, char ***suffixes
, size_t *num_suffixes
);
2062 ADS_STATUS
ads_get_joinable_ous(ADS_STRUCT
*ads
,
2063 TALLOC_CTX
*mem_ctx
,
2066 ADS_STATUS
ads_get_sid_from_extended_dn(TALLOC_CTX
*mem_ctx
,
2067 const char *extended_dn
,
2068 enum ads_extended_dn_flags flags
,
2070 char* ads_get_dnshostname( ADS_STRUCT
*ads
, TALLOC_CTX
*ctx
, const char *machine_name
);
2071 char* ads_get_upn( ADS_STRUCT
*ads
, TALLOC_CTX
*ctx
, const char *machine_name
);
2072 char* ads_get_samaccountname( ADS_STRUCT
*ads
, TALLOC_CTX
*ctx
, const char *machine_name
);
2073 ADS_STATUS
ads_join_realm(ADS_STRUCT
*ads
, const char *machine_name
,
2074 uint32 account_type
, const char *org_unit
);
2075 ADS_STATUS
ads_leave_realm(ADS_STRUCT
*ads
, const char *hostname
);
2076 ADS_STATUS
ads_find_samaccount(ADS_STRUCT
*ads
,
2077 TALLOC_CTX
*mem_ctx
,
2078 const char *samaccountname
,
2080 const char **dn_ret
);
2081 ADS_STATUS
ads_config_path(ADS_STRUCT
*ads
,
2082 TALLOC_CTX
*mem_ctx
,
2083 char **config_path
);
2084 const char *ads_get_extended_right_name_by_guid(ADS_STRUCT
*ads
,
2085 const char *config_path
,
2086 TALLOC_CTX
*mem_ctx
,
2087 const struct GUID
*rights_guid
);
2088 ADS_STATUS
ads_check_ou_dn(TALLOC_CTX
*mem_ctx
,
2090 const char **account_ou
);
2092 /* The following definitions come from libads/ldap_printer.c */
2094 ADS_STATUS
ads_mod_printer_entry(ADS_STRUCT
*ads
, char *prt_dn
,
2095 TALLOC_CTX
*ctx
, const ADS_MODLIST
*mods
);
2096 ADS_STATUS
ads_add_printer_entry(ADS_STRUCT
*ads
, char *prt_dn
,
2097 TALLOC_CTX
*ctx
, ADS_MODLIST
*mods
);
2098 WERROR
get_remote_printer_publishing_data(struct rpc_pipe_client
*cli
,
2099 TALLOC_CTX
*mem_ctx
,
2101 const char *printer
);
2102 bool get_local_printer_publishing_data(TALLOC_CTX
*mem_ctx
,
2104 NT_PRINTER_DATA
*data
);
2106 /* The following definitions come from libads/ldap_schema.c */
2108 ADS_STATUS
ads_get_attrnames_by_oids(ADS_STRUCT
*ads
, TALLOC_CTX
*mem_ctx
,
2109 const char *schema_path
,
2110 const char **OIDs
, size_t num_OIDs
,
2111 char ***OIDs_out
, char ***names
, size_t *count
);
2112 const char *ads_get_attrname_by_guid(ADS_STRUCT
*ads
,
2113 const char *schema_path
,
2114 TALLOC_CTX
*mem_ctx
,
2115 const struct GUID
*schema_guid
);
2116 const char *ads_get_attrname_by_oid(ADS_STRUCT
*ads
, const char *schema_path
, TALLOC_CTX
*mem_ctx
, const char * OID
);
2117 ADS_STATUS
ads_schema_path(ADS_STRUCT
*ads
, TALLOC_CTX
*mem_ctx
, char **schema_path
);
2118 ADS_STATUS
ads_check_posix_schema_mapping(TALLOC_CTX
*mem_ctx
,
2120 enum wb_posix_mapping map_type
,
2121 struct posix_schema
**s
) ;
2123 /* The following definitions come from libads/ldap_user.c */
2125 ADS_STATUS
ads_add_user_acct(ADS_STRUCT
*ads
, const char *user
,
2126 const char *container
, const char *fullname
);
2127 ADS_STATUS
ads_add_group_acct(ADS_STRUCT
*ads
, const char *group
,
2128 const char *container
, const char *comment
);
2130 /* The following definitions come from libads/ldap_utils.c */
2132 ADS_STATUS
ads_ranged_search(ADS_STRUCT
*ads
,
2133 TALLOC_CTX
*mem_ctx
,
2138 const char *range_attr
,
2140 size_t *num_strings
);
2141 ADS_STATUS
ads_ranged_search_internal(ADS_STRUCT
*ads
,
2142 TALLOC_CTX
*mem_ctx
,
2148 const char *range_attr
,
2150 size_t *num_strings
,
2155 /* The following definitions come from libads/ndr.c */
2157 void ndr_print_ads_auth_flags(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
2158 void ndr_print_ads_struct(struct ndr_print
*ndr
, const char *name
, const struct ads_struct
*r
);
2160 /* The following definitions come from libads/sasl.c */
2162 ADS_STATUS
ads_sasl_bind(ADS_STRUCT
*ads
);
2164 /* The following definitions come from libads/sasl_wrapping.c */
2166 ADS_STATUS
ads_setup_sasl_wrapping(ADS_STRUCT
*ads
,
2167 const struct ads_saslwrap_ops
*ops
,
2168 void *private_data
);
2169 ADS_STATUS
ads_setup_sasl_wrapping(ADS_STRUCT
*ads
,
2170 const struct ads_saslwrap_ops
*ops
,
2171 void *private_data
);
2173 /* The following definitions come from libads/util.c */
2175 ADS_STATUS
ads_change_trust_account_password(ADS_STRUCT
*ads
, char *host_principal
);
2176 ADS_STATUS
ads_guess_service_principal(ADS_STRUCT
*ads
,
2177 char **returned_principal
);
2179 /* The following definitions come from libcli/nbt/nbtname.c */
2181 _PUBLIC_
void ndr_print_nbt_string(struct ndr_print
*ndr
, const char *name
, const char *s
);
2182 _PUBLIC_
enum ndr_err_code
ndr_pull_nbt_string(struct ndr_pull
*ndr
, int ndr_flags
, const char **s
);
2183 _PUBLIC_
enum ndr_err_code
ndr_push_nbt_string(struct ndr_push
*ndr
, int ndr_flags
, const char *s
);
2184 _PUBLIC_
enum ndr_err_code
ndr_pull_nbt_name(struct ndr_pull
*ndr
, int ndr_flags
, struct nbt_name
*r
);
2185 _PUBLIC_
enum ndr_err_code
ndr_push_nbt_name(struct ndr_push
*ndr
, int ndr_flags
, const struct nbt_name
*r
);
2186 _PUBLIC_ NTSTATUS
nbt_name_dup(TALLOC_CTX
*mem_ctx
, struct nbt_name
*name
, struct nbt_name
*newname
);
2187 _PUBLIC_ NTSTATUS
nbt_name_to_blob(TALLOC_CTX
*mem_ctx
, DATA_BLOB
*blob
, struct nbt_name
*name
);
2188 _PUBLIC_ NTSTATUS
nbt_name_from_blob(TALLOC_CTX
*mem_ctx
, const DATA_BLOB
*blob
, struct nbt_name
*name
);
2189 _PUBLIC_
void nbt_choose_called_name(TALLOC_CTX
*mem_ctx
,
2190 struct nbt_name
*n
, const char *name
, int type
);
2191 _PUBLIC_
char *nbt_name_string(TALLOC_CTX
*mem_ctx
, const struct nbt_name
*name
);
2192 _PUBLIC_
enum ndr_err_code
ndr_pull_wrepl_nbt_name(struct ndr_pull
*ndr
, int ndr_flags
, const struct nbt_name
**_r
);
2193 _PUBLIC_
enum ndr_err_code
ndr_push_wrepl_nbt_name(struct ndr_push
*ndr
, int ndr_flags
, const struct nbt_name
*r
);
2194 _PUBLIC_
void ndr_print_wrepl_nbt_name(struct ndr_print
*ndr
, const char *name
, const struct nbt_name
*r
);
2196 /* The following definitions come from libgpo/gpo_fetch.c */
2198 NTSTATUS
gpo_explode_filesyspath(TALLOC_CTX
*mem_ctx
,
2199 const char *file_sys_path
,
2204 NTSTATUS
gpo_fetch_files(TALLOC_CTX
*mem_ctx
,
2205 struct cli_state
*cli
,
2206 struct GROUP_POLICY_OBJECT
*gpo
);
2207 NTSTATUS
gpo_get_sysvol_gpt_version(TALLOC_CTX
*mem_ctx
,
2208 const char *unix_path
,
2209 uint32_t *sysvol_version
,
2210 char **display_name
);
2212 /* The following definitions come from libgpo/gpo_filesync.c */
2214 NTSTATUS
gpo_copy_file(TALLOC_CTX
*mem_ctx
,
2215 struct cli_state
*cli
,
2216 const char *nt_path
,
2217 const char *unix_path
);
2218 NTSTATUS
gpo_sync_directories(TALLOC_CTX
*mem_ctx
,
2219 struct cli_state
*cli
,
2220 const char *nt_path
,
2221 const char *local_path
);
2223 /* The following definitions come from libgpo/gpo_ini.c */
2225 NTSTATUS
parse_gpt_ini(TALLOC_CTX
*mem_ctx
,
2226 const char *filename
,
2228 char **display_name
);
2230 /* The following definitions come from libgpo/gpo_ldap.c */
2232 bool ads_parse_gp_ext(TALLOC_CTX
*mem_ctx
,
2233 const char *extension_raw
,
2234 struct GP_EXT
**gp_ext
);
2235 ADS_STATUS
ads_get_gpo_link(ADS_STRUCT
*ads
,
2236 TALLOC_CTX
*mem_ctx
,
2237 const char *link_dn
,
2238 struct GP_LINK
*gp_link_struct
);
2239 ADS_STATUS
ads_add_gpo_link(ADS_STRUCT
*ads
,
2240 TALLOC_CTX
*mem_ctx
,
2241 const char *link_dn
,
2244 ADS_STATUS
ads_delete_gpo_link(ADS_STRUCT
*ads
,
2245 TALLOC_CTX
*mem_ctx
,
2246 const char *link_dn
,
2247 const char *gpo_dn
);
2248 ADS_STATUS
ads_get_gpo(ADS_STRUCT
*ads
,
2249 TALLOC_CTX
*mem_ctx
,
2251 const char *display_name
,
2252 const char *guid_name
,
2253 struct GROUP_POLICY_OBJECT
*gpo
);
2254 ADS_STATUS
ads_get_sid_token(ADS_STRUCT
*ads
,
2255 TALLOC_CTX
*mem_ctx
,
2257 struct nt_user_token
**token
);
2258 ADS_STATUS
ads_get_gpo_list(ADS_STRUCT
*ads
,
2259 TALLOC_CTX
*mem_ctx
,
2262 const struct nt_user_token
*token
,
2263 struct GROUP_POLICY_OBJECT
**gpo_list
);
2265 /* The following definitions come from libgpo/gpo_sec.c */
2267 NTSTATUS
gpo_apply_security_filtering(const struct GROUP_POLICY_OBJECT
*gpo
,
2268 const struct nt_user_token
*token
);
2270 /* The following definitions come from libgpo/gpo_util.c */
2272 const char *cse_gpo_guid_string_to_name(const char *guid
);
2273 const char *cse_gpo_name_to_guid_string(const char *name
);
2274 const char *cse_snapin_gpo_guid_string_to_name(const char *guid
);
2275 void dump_gp_ext(struct GP_EXT
*gp_ext
, int debuglevel
);
2276 void dump_gpo(ADS_STRUCT
*ads
,
2277 TALLOC_CTX
*mem_ctx
,
2278 struct GROUP_POLICY_OBJECT
*gpo
,
2280 void dump_gpo_list(ADS_STRUCT
*ads
,
2281 TALLOC_CTX
*mem_ctx
,
2282 struct GROUP_POLICY_OBJECT
*gpo_list
,
2284 void dump_gplink(ADS_STRUCT
*ads
, TALLOC_CTX
*mem_ctx
, struct GP_LINK
*gp_link
);
2285 NTSTATUS
process_extension(ADS_STRUCT
*ads
,
2286 TALLOC_CTX
*mem_ctx
,
2288 const struct nt_user_token
*token
,
2289 struct GROUP_POLICY_OBJECT
*gpo
,
2290 const char *extension_guid
,
2291 const char *snapin_guid
);
2292 ADS_STATUS
gpo_process_a_gpo(ADS_STRUCT
*ads
,
2293 TALLOC_CTX
*mem_ctx
,
2294 const struct nt_user_token
*token
,
2295 struct GROUP_POLICY_OBJECT
*gpo
,
2296 const char *extension_guid_filter
,
2298 ADS_STATUS
gpo_process_gpo_list(ADS_STRUCT
*ads
,
2299 TALLOC_CTX
*mem_ctx
,
2300 const struct nt_user_token
*token
,
2301 struct GROUP_POLICY_OBJECT
*gpo_list
,
2302 const char *extensions_guid
,
2304 NTSTATUS
check_refresh_gpo(ADS_STRUCT
*ads
,
2305 TALLOC_CTX
*mem_ctx
,
2307 struct GROUP_POLICY_OBJECT
*gpo
,
2308 struct cli_state
**cli_out
);
2309 NTSTATUS
check_refresh_gpo_list(ADS_STRUCT
*ads
,
2310 TALLOC_CTX
*mem_ctx
,
2312 struct GROUP_POLICY_OBJECT
*gpo_list
);
2313 NTSTATUS
gp_find_file(TALLOC_CTX
*mem_ctx
,
2315 const char *filename
,
2317 const char **filename_out
);
2319 /* The following definitions come from librpc/gen_ndr/ndr_dfs.c */
2321 _PUBLIC_
void ndr_print_dfs_ManagerVersion(struct ndr_print
*ndr
, const char *name
, enum dfs_ManagerVersion r
);
2322 _PUBLIC_
void ndr_print_dfs_Info0(struct ndr_print
*ndr
, const char *name
, const struct dfs_Info0
*r
);
2323 _PUBLIC_
void ndr_print_dfs_Info1(struct ndr_print
*ndr
, const char *name
, const struct dfs_Info1
*r
);
2324 _PUBLIC_
enum ndr_err_code
ndr_push_dfs_VolumeState(struct ndr_push
*ndr
, int ndr_flags
, uint32_t r
);
2325 _PUBLIC_
enum ndr_err_code
ndr_pull_dfs_VolumeState(struct ndr_pull
*ndr
, int ndr_flags
, uint32_t *r
);
2326 _PUBLIC_
void ndr_print_dfs_VolumeState(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
2327 _PUBLIC_
void ndr_print_dfs_Info2(struct ndr_print
*ndr
, const char *name
, const struct dfs_Info2
*r
);
2328 _PUBLIC_
enum ndr_err_code
ndr_push_dfs_StorageState(struct ndr_push
*ndr
, int ndr_flags
, uint32_t r
);
2329 _PUBLIC_
enum ndr_err_code
ndr_pull_dfs_StorageState(struct ndr_pull
*ndr
, int ndr_flags
, uint32_t *r
);
2330 _PUBLIC_
void ndr_print_dfs_StorageState(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
2331 _PUBLIC_
void ndr_print_dfs_StorageInfo(struct ndr_print
*ndr
, const char *name
, const struct dfs_StorageInfo
*r
);
2332 _PUBLIC_
void ndr_print_dfs_Info3(struct ndr_print
*ndr
, const char *name
, const struct dfs_Info3
*r
);
2333 _PUBLIC_
void ndr_print_dfs_Info4(struct ndr_print
*ndr
, const char *name
, const struct dfs_Info4
*r
);
2334 _PUBLIC_
enum ndr_err_code
ndr_push_dfs_PropertyFlags(struct ndr_push
*ndr
, int ndr_flags
, uint32_t r
);
2335 _PUBLIC_
enum ndr_err_code
ndr_pull_dfs_PropertyFlags(struct ndr_pull
*ndr
, int ndr_flags
, uint32_t *r
);
2336 _PUBLIC_
void ndr_print_dfs_PropertyFlags(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
2337 _PUBLIC_
void ndr_print_dfs_Info5(struct ndr_print
*ndr
, const char *name
, const struct dfs_Info5
*r
);
2338 _PUBLIC_
void ndr_print_dfs_Target_PriorityClass(struct ndr_print
*ndr
, const char *name
, enum dfs_Target_PriorityClass r
);
2339 _PUBLIC_
void ndr_print_dfs_Target_Priority(struct ndr_print
*ndr
, const char *name
, const struct dfs_Target_Priority
*r
);
2340 _PUBLIC_
void ndr_print_dfs_StorageInfo2(struct ndr_print
*ndr
, const char *name
, const struct dfs_StorageInfo2
*r
);
2341 _PUBLIC_
void ndr_print_dfs_Info6(struct ndr_print
*ndr
, const char *name
, const struct dfs_Info6
*r
);
2342 _PUBLIC_
void ndr_print_dfs_Info7(struct ndr_print
*ndr
, const char *name
, const struct dfs_Info7
*r
);
2343 _PUBLIC_
void ndr_print_dfs_Info100(struct ndr_print
*ndr
, const char *name
, const struct dfs_Info100
*r
);
2344 _PUBLIC_
void ndr_print_dfs_Info101(struct ndr_print
*ndr
, const char *name
, const struct dfs_Info101
*r
);
2345 _PUBLIC_
void ndr_print_dfs_Info102(struct ndr_print
*ndr
, const char *name
, const struct dfs_Info102
*r
);
2346 _PUBLIC_
void ndr_print_dfs_Info103(struct ndr_print
*ndr
, const char *name
, const struct dfs_Info103
*r
);
2347 _PUBLIC_
void ndr_print_dfs_Info104(struct ndr_print
*ndr
, const char *name
, const struct dfs_Info104
*r
);
2348 _PUBLIC_
void ndr_print_dfs_Info105(struct ndr_print
*ndr
, const char *name
, const struct dfs_Info105
*r
);
2349 _PUBLIC_
void ndr_print_dfs_Info106(struct ndr_print
*ndr
, const char *name
, const struct dfs_Info106
*r
);
2350 _PUBLIC_
void ndr_print_dfs_Info200(struct ndr_print
*ndr
, const char *name
, const struct dfs_Info200
*r
);
2351 _PUBLIC_
void ndr_print_dfs_VolumeFlavor(struct ndr_print
*ndr
, const char *name
, enum dfs_VolumeFlavor r
);
2352 _PUBLIC_
void ndr_print_dfs_Info300(struct ndr_print
*ndr
, const char *name
, const struct dfs_Info300
*r
);
2353 _PUBLIC_
void ndr_print_dfs_Info(struct ndr_print
*ndr
, const char *name
, const union dfs_Info
*r
);
2354 _PUBLIC_
void ndr_print_dfs_EnumArray1(struct ndr_print
*ndr
, const char *name
, const struct dfs_EnumArray1
*r
);
2355 _PUBLIC_
void ndr_print_dfs_EnumArray2(struct ndr_print
*ndr
, const char *name
, const struct dfs_EnumArray2
*r
);
2356 _PUBLIC_
void ndr_print_dfs_EnumArray3(struct ndr_print
*ndr
, const char *name
, const struct dfs_EnumArray3
*r
);
2357 _PUBLIC_
void ndr_print_dfs_EnumArray4(struct ndr_print
*ndr
, const char *name
, const struct dfs_EnumArray4
*r
);
2358 _PUBLIC_
void ndr_print_dfs_EnumArray5(struct ndr_print
*ndr
, const char *name
, const struct dfs_EnumArray5
*r
);
2359 _PUBLIC_
void ndr_print_dfs_EnumArray6(struct ndr_print
*ndr
, const char *name
, const struct dfs_EnumArray6
*r
);
2360 _PUBLIC_
void ndr_print_dfs_EnumArray200(struct ndr_print
*ndr
, const char *name
, const struct dfs_EnumArray200
*r
);
2361 _PUBLIC_
void ndr_print_dfs_EnumArray300(struct ndr_print
*ndr
, const char *name
, const struct dfs_EnumArray300
*r
);
2362 _PUBLIC_
void ndr_print_dfs_EnumInfo(struct ndr_print
*ndr
, const char *name
, const union dfs_EnumInfo
*r
);
2363 _PUBLIC_
void ndr_print_dfs_EnumStruct(struct ndr_print
*ndr
, const char *name
, const struct dfs_EnumStruct
*r
);
2364 _PUBLIC_
void ndr_print_dfs_UnknownStruct(struct ndr_print
*ndr
, const char *name
, const struct dfs_UnknownStruct
*r
);
2365 _PUBLIC_
enum ndr_err_code
ndr_push_dfs_GetManagerVersion(struct ndr_push
*ndr
, int flags
, const struct dfs_GetManagerVersion
*r
);
2366 _PUBLIC_
enum ndr_err_code
ndr_pull_dfs_GetManagerVersion(struct ndr_pull
*ndr
, int flags
, struct dfs_GetManagerVersion
*r
);
2367 _PUBLIC_
void ndr_print_dfs_GetManagerVersion(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dfs_GetManagerVersion
*r
);
2368 _PUBLIC_
void ndr_print_dfs_Add(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dfs_Add
*r
);
2369 _PUBLIC_
void ndr_print_dfs_Remove(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dfs_Remove
*r
);
2370 _PUBLIC_
void ndr_print_dfs_SetInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dfs_SetInfo
*r
);
2371 _PUBLIC_
void ndr_print_dfs_GetInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dfs_GetInfo
*r
);
2372 _PUBLIC_
void ndr_print_dfs_Enum(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dfs_Enum
*r
);
2373 _PUBLIC_
void ndr_print_dfs_Rename(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dfs_Rename
*r
);
2374 _PUBLIC_
void ndr_print_dfs_Move(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dfs_Move
*r
);
2375 _PUBLIC_
void ndr_print_dfs_ManagerGetConfigInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dfs_ManagerGetConfigInfo
*r
);
2376 _PUBLIC_
void ndr_print_dfs_ManagerSendSiteInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dfs_ManagerSendSiteInfo
*r
);
2377 _PUBLIC_
void ndr_print_dfs_AddFtRoot(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dfs_AddFtRoot
*r
);
2378 _PUBLIC_
void ndr_print_dfs_RemoveFtRoot(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dfs_RemoveFtRoot
*r
);
2379 _PUBLIC_
void ndr_print_dfs_AddStdRoot(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dfs_AddStdRoot
*r
);
2380 _PUBLIC_
void ndr_print_dfs_RemoveStdRoot(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dfs_RemoveStdRoot
*r
);
2381 _PUBLIC_
void ndr_print_dfs_ManagerInitialize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dfs_ManagerInitialize
*r
);
2382 _PUBLIC_
void ndr_print_dfs_AddStdRootForced(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dfs_AddStdRootForced
*r
);
2383 _PUBLIC_
void ndr_print_dfs_GetDcAddress(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dfs_GetDcAddress
*r
);
2384 _PUBLIC_
void ndr_print_dfs_SetDcAddress(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dfs_SetDcAddress
*r
);
2385 _PUBLIC_
void ndr_print_dfs_FlushFtTable(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dfs_FlushFtTable
*r
);
2386 _PUBLIC_
void ndr_print_dfs_Add2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dfs_Add2
*r
);
2387 _PUBLIC_
void ndr_print_dfs_Remove2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dfs_Remove2
*r
);
2388 _PUBLIC_
enum ndr_err_code
ndr_push_dfs_EnumEx(struct ndr_push
*ndr
, int flags
, const struct dfs_EnumEx
*r
);
2389 _PUBLIC_
enum ndr_err_code
ndr_pull_dfs_EnumEx(struct ndr_pull
*ndr
, int flags
, struct dfs_EnumEx
*r
);
2390 _PUBLIC_
void ndr_print_dfs_EnumEx(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dfs_EnumEx
*r
);
2391 _PUBLIC_
void ndr_print_dfs_SetInfo2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dfs_SetInfo2
*r
);
2393 /* The following definitions come from librpc/gen_ndr/ndr_dssetup.c */
2395 _PUBLIC_
void ndr_print_dssetup_DsRole(struct ndr_print
*ndr
, const char *name
, enum dssetup_DsRole r
);
2396 _PUBLIC_
void ndr_print_dssetup_DsRoleFlags(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
2397 _PUBLIC_
void ndr_print_dssetup_DsRolePrimaryDomInfoBasic(struct ndr_print
*ndr
, const char *name
, const struct dssetup_DsRolePrimaryDomInfoBasic
*r
);
2398 _PUBLIC_
void ndr_print_dssetup_DsUpgrade(struct ndr_print
*ndr
, const char *name
, enum dssetup_DsUpgrade r
);
2399 _PUBLIC_
void ndr_print_dssetup_DsPrevious(struct ndr_print
*ndr
, const char *name
, enum dssetup_DsPrevious r
);
2400 _PUBLIC_
void ndr_print_dssetup_DsRoleUpgradeStatus(struct ndr_print
*ndr
, const char *name
, const struct dssetup_DsRoleUpgradeStatus
*r
);
2401 _PUBLIC_
void ndr_print_dssetup_DsRoleOp(struct ndr_print
*ndr
, const char *name
, enum dssetup_DsRoleOp r
);
2402 _PUBLIC_
void ndr_print_dssetup_DsRoleOpStatus(struct ndr_print
*ndr
, const char *name
, const struct dssetup_DsRoleOpStatus
*r
);
2403 _PUBLIC_
void ndr_print_dssetup_DsRoleInfoLevel(struct ndr_print
*ndr
, const char *name
, enum dssetup_DsRoleInfoLevel r
);
2404 _PUBLIC_
void ndr_print_dssetup_DsRoleInfo(struct ndr_print
*ndr
, const char *name
, const union dssetup_DsRoleInfo
*r
);
2405 _PUBLIC_
void ndr_print_dssetup_DsRoleGetPrimaryDomainInformation(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dssetup_DsRoleGetPrimaryDomainInformation
*r
);
2406 _PUBLIC_
void ndr_print_dssetup_DsRoleDnsNameToFlatName(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dssetup_DsRoleDnsNameToFlatName
*r
);
2407 _PUBLIC_
void ndr_print_dssetup_DsRoleDcAsDc(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dssetup_DsRoleDcAsDc
*r
);
2408 _PUBLIC_
void ndr_print_dssetup_DsRoleDcAsReplica(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dssetup_DsRoleDcAsReplica
*r
);
2409 _PUBLIC_
void ndr_print_dssetup_DsRoleDemoteDc(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dssetup_DsRoleDemoteDc
*r
);
2410 _PUBLIC_
void ndr_print_dssetup_DsRoleGetDcOperationProgress(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dssetup_DsRoleGetDcOperationProgress
*r
);
2411 _PUBLIC_
void ndr_print_dssetup_DsRoleGetDcOperationResults(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dssetup_DsRoleGetDcOperationResults
*r
);
2412 _PUBLIC_
void ndr_print_dssetup_DsRoleCancel(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dssetup_DsRoleCancel
*r
);
2413 _PUBLIC_
void ndr_print_dssetup_DsRoleServerSaveStateForUpgrade(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dssetup_DsRoleServerSaveStateForUpgrade
*r
);
2414 _PUBLIC_
void ndr_print_dssetup_DsRoleUpgradeDownlevelServer(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dssetup_DsRoleUpgradeDownlevelServer
*r
);
2415 _PUBLIC_
void ndr_print_dssetup_DsRoleAbortDownlevelServerUpgrade(struct ndr_print
*ndr
, const char *name
, int flags
, const struct dssetup_DsRoleAbortDownlevelServerUpgrade
*r
);
2417 /* The following definitions come from librpc/gen_ndr/ndr_echo.c */
2419 _PUBLIC_
void ndr_print_echo_info1(struct ndr_print
*ndr
, const char *name
, const struct echo_info1
*r
);
2420 _PUBLIC_
void ndr_print_echo_info2(struct ndr_print
*ndr
, const char *name
, const struct echo_info2
*r
);
2421 _PUBLIC_
void ndr_print_echo_info3(struct ndr_print
*ndr
, const char *name
, const struct echo_info3
*r
);
2422 _PUBLIC_
void ndr_print_STRUCT_echo_info4(struct ndr_print
*ndr
, const char *name
, const struct echo_info4
*r
);
2423 _PUBLIC_
void ndr_print_echo_info5(struct ndr_print
*ndr
, const char *name
, const struct echo_info5
*r
);
2424 _PUBLIC_
void ndr_print_echo_info6(struct ndr_print
*ndr
, const char *name
, const struct echo_info6
*r
);
2425 _PUBLIC_
void ndr_print_echo_info7(struct ndr_print
*ndr
, const char *name
, const struct echo_info7
*r
);
2426 _PUBLIC_
void ndr_print_echo_Info(struct ndr_print
*ndr
, const char *name
, const union echo_Info
*r
);
2427 _PUBLIC_
void ndr_print_echo_Enum1(struct ndr_print
*ndr
, const char *name
, enum echo_Enum1 r
);
2428 _PUBLIC_
void ndr_print_echo_Enum1_32(struct ndr_print
*ndr
, const char *name
, enum echo_Enum1_32 r
);
2429 _PUBLIC_
void ndr_print_echo_Enum2(struct ndr_print
*ndr
, const char *name
, const struct echo_Enum2
*r
);
2430 _PUBLIC_
void ndr_print_echo_Enum3(struct ndr_print
*ndr
, const char *name
, const union echo_Enum3
*r
);
2431 _PUBLIC_
void ndr_print_echo_Surrounding(struct ndr_print
*ndr
, const char *name
, const struct echo_Surrounding
*r
);
2432 _PUBLIC_
void ndr_print_echo_AddOne(struct ndr_print
*ndr
, const char *name
, int flags
, const struct echo_AddOne
*r
);
2433 _PUBLIC_
void ndr_print_echo_EchoData(struct ndr_print
*ndr
, const char *name
, int flags
, const struct echo_EchoData
*r
);
2434 _PUBLIC_
void ndr_print_echo_SinkData(struct ndr_print
*ndr
, const char *name
, int flags
, const struct echo_SinkData
*r
);
2435 _PUBLIC_
void ndr_print_echo_SourceData(struct ndr_print
*ndr
, const char *name
, int flags
, const struct echo_SourceData
*r
);
2436 _PUBLIC_
void ndr_print_echo_TestCall(struct ndr_print
*ndr
, const char *name
, int flags
, const struct echo_TestCall
*r
);
2437 _PUBLIC_
void ndr_print_echo_TestCall2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct echo_TestCall2
*r
);
2438 _PUBLIC_
void ndr_print_echo_TestSleep(struct ndr_print
*ndr
, const char *name
, int flags
, const struct echo_TestSleep
*r
);
2439 _PUBLIC_
void ndr_print_echo_TestEnum(struct ndr_print
*ndr
, const char *name
, int flags
, const struct echo_TestEnum
*r
);
2440 _PUBLIC_
void ndr_print_echo_TestSurrounding(struct ndr_print
*ndr
, const char *name
, int flags
, const struct echo_TestSurrounding
*r
);
2441 _PUBLIC_
void ndr_print_echo_TestDoublePointer(struct ndr_print
*ndr
, const char *name
, int flags
, const struct echo_TestDoublePointer
*r
);
2443 /* The following definitions come from librpc/gen_ndr/ndr_eventlog.c */
2445 _PUBLIC_
void ndr_print_eventlog_OpenUnknown0(struct ndr_print
*ndr
, const char *name
, const struct eventlog_OpenUnknown0
*r
);
2446 _PUBLIC_
enum ndr_err_code
ndr_push_eventlog_Record(struct ndr_push
*ndr
, int ndr_flags
, const struct eventlog_Record
*r
);
2447 _PUBLIC_
enum ndr_err_code
ndr_pull_eventlog_Record(struct ndr_pull
*ndr
, int ndr_flags
, struct eventlog_Record
*r
);
2448 _PUBLIC_
void ndr_print_eventlog_Record(struct ndr_print
*ndr
, const char *name
, const struct eventlog_Record
*r
);
2449 _PUBLIC_
void ndr_print_eventlog_ClearEventLogW(struct ndr_print
*ndr
, const char *name
, int flags
, const struct eventlog_ClearEventLogW
*r
);
2450 _PUBLIC_
void ndr_print_eventlog_BackupEventLogW(struct ndr_print
*ndr
, const char *name
, int flags
, const struct eventlog_BackupEventLogW
*r
);
2451 _PUBLIC_
void ndr_print_eventlog_CloseEventLog(struct ndr_print
*ndr
, const char *name
, int flags
, const struct eventlog_CloseEventLog
*r
);
2452 _PUBLIC_
void ndr_print_eventlog_DeregisterEventSource(struct ndr_print
*ndr
, const char *name
, int flags
, const struct eventlog_DeregisterEventSource
*r
);
2453 _PUBLIC_
void ndr_print_eventlog_GetNumRecords(struct ndr_print
*ndr
, const char *name
, int flags
, const struct eventlog_GetNumRecords
*r
);
2454 _PUBLIC_
void ndr_print_eventlog_GetOldestRecord(struct ndr_print
*ndr
, const char *name
, int flags
, const struct eventlog_GetOldestRecord
*r
);
2455 _PUBLIC_
void ndr_print_eventlog_ChangeNotify(struct ndr_print
*ndr
, const char *name
, int flags
, const struct eventlog_ChangeNotify
*r
);
2456 _PUBLIC_
void ndr_print_eventlog_OpenEventLogW(struct ndr_print
*ndr
, const char *name
, int flags
, const struct eventlog_OpenEventLogW
*r
);
2457 _PUBLIC_
void ndr_print_eventlog_RegisterEventSourceW(struct ndr_print
*ndr
, const char *name
, int flags
, const struct eventlog_RegisterEventSourceW
*r
);
2458 _PUBLIC_
void ndr_print_eventlog_OpenBackupEventLogW(struct ndr_print
*ndr
, const char *name
, int flags
, const struct eventlog_OpenBackupEventLogW
*r
);
2459 _PUBLIC_
void ndr_print_eventlog_ReadEventLogW(struct ndr_print
*ndr
, const char *name
, int flags
, const struct eventlog_ReadEventLogW
*r
);
2460 _PUBLIC_
void ndr_print_eventlog_ReportEventW(struct ndr_print
*ndr
, const char *name
, int flags
, const struct eventlog_ReportEventW
*r
);
2461 _PUBLIC_
void ndr_print_eventlog_ClearEventLogA(struct ndr_print
*ndr
, const char *name
, int flags
, const struct eventlog_ClearEventLogA
*r
);
2462 _PUBLIC_
void ndr_print_eventlog_BackupEventLogA(struct ndr_print
*ndr
, const char *name
, int flags
, const struct eventlog_BackupEventLogA
*r
);
2463 _PUBLIC_
void ndr_print_eventlog_OpenEventLogA(struct ndr_print
*ndr
, const char *name
, int flags
, const struct eventlog_OpenEventLogA
*r
);
2464 _PUBLIC_
void ndr_print_eventlog_RegisterEventSourceA(struct ndr_print
*ndr
, const char *name
, int flags
, const struct eventlog_RegisterEventSourceA
*r
);
2465 _PUBLIC_
void ndr_print_eventlog_OpenBackupEventLogA(struct ndr_print
*ndr
, const char *name
, int flags
, const struct eventlog_OpenBackupEventLogA
*r
);
2466 _PUBLIC_
void ndr_print_eventlog_ReadEventLogA(struct ndr_print
*ndr
, const char *name
, int flags
, const struct eventlog_ReadEventLogA
*r
);
2467 _PUBLIC_
void ndr_print_eventlog_ReportEventA(struct ndr_print
*ndr
, const char *name
, int flags
, const struct eventlog_ReportEventA
*r
);
2468 _PUBLIC_
void ndr_print_eventlog_RegisterClusterSvc(struct ndr_print
*ndr
, const char *name
, int flags
, const struct eventlog_RegisterClusterSvc
*r
);
2469 _PUBLIC_
void ndr_print_eventlog_DeregisterClusterSvc(struct ndr_print
*ndr
, const char *name
, int flags
, const struct eventlog_DeregisterClusterSvc
*r
);
2470 _PUBLIC_
void ndr_print_eventlog_WriteClusterEvents(struct ndr_print
*ndr
, const char *name
, int flags
, const struct eventlog_WriteClusterEvents
*r
);
2471 _PUBLIC_
void ndr_print_eventlog_GetLogIntormation(struct ndr_print
*ndr
, const char *name
, int flags
, const struct eventlog_GetLogIntormation
*r
);
2472 _PUBLIC_
void ndr_print_eventlog_FlushEventLog(struct ndr_print
*ndr
, const char *name
, int flags
, const struct eventlog_FlushEventLog
*r
);
2474 /* The following definitions come from librpc/gen_ndr/ndr_initshutdown.c */
2476 _PUBLIC_
void ndr_print_initshutdown_String_sub(struct ndr_print
*ndr
, const char *name
, const struct initshutdown_String_sub
*r
);
2477 _PUBLIC_
enum ndr_err_code
ndr_push_initshutdown_String(struct ndr_push
*ndr
, int ndr_flags
, const struct initshutdown_String
*r
);
2478 _PUBLIC_
enum ndr_err_code
ndr_pull_initshutdown_String(struct ndr_pull
*ndr
, int ndr_flags
, struct initshutdown_String
*r
);
2479 _PUBLIC_
void ndr_print_initshutdown_String(struct ndr_print
*ndr
, const char *name
, const struct initshutdown_String
*r
);
2480 _PUBLIC_
void ndr_print_initshutdown_Init(struct ndr_print
*ndr
, const char *name
, int flags
, const struct initshutdown_Init
*r
);
2481 _PUBLIC_
void ndr_print_initshutdown_Abort(struct ndr_print
*ndr
, const char *name
, int flags
, const struct initshutdown_Abort
*r
);
2482 _PUBLIC_
void ndr_print_initshutdown_InitEx(struct ndr_print
*ndr
, const char *name
, int flags
, const struct initshutdown_InitEx
*r
);
2484 /* The following definitions come from librpc/gen_ndr/ndr_krb5pac.c */
2486 _PUBLIC_
void ndr_print_PAC_LOGON_NAME(struct ndr_print
*ndr
, const char *name
, const struct PAC_LOGON_NAME
*r
);
2487 _PUBLIC_
enum ndr_err_code
ndr_push_PAC_SIGNATURE_DATA(struct ndr_push
*ndr
, int ndr_flags
, const struct PAC_SIGNATURE_DATA
*r
);
2488 _PUBLIC_
enum ndr_err_code
ndr_pull_PAC_SIGNATURE_DATA(struct ndr_pull
*ndr
, int ndr_flags
, struct PAC_SIGNATURE_DATA
*r
);
2489 _PUBLIC_
void ndr_print_PAC_SIGNATURE_DATA(struct ndr_print
*ndr
, const char *name
, const struct PAC_SIGNATURE_DATA
*r
);
2490 _PUBLIC_
void ndr_print_PAC_LOGON_INFO(struct ndr_print
*ndr
, const char *name
, const struct PAC_LOGON_INFO
*r
);
2491 _PUBLIC_
enum ndr_err_code
ndr_push_PAC_LOGON_INFO_CTR(struct ndr_push
*ndr
, int ndr_flags
, const struct PAC_LOGON_INFO_CTR
*r
);
2492 _PUBLIC_
enum ndr_err_code
ndr_pull_PAC_LOGON_INFO_CTR(struct ndr_pull
*ndr
, int ndr_flags
, struct PAC_LOGON_INFO_CTR
*r
);
2493 _PUBLIC_
void ndr_print_PAC_LOGON_INFO_CTR(struct ndr_print
*ndr
, const char *name
, const struct PAC_LOGON_INFO_CTR
*r
);
2494 _PUBLIC_
enum ndr_err_code
ndr_push_PAC_TYPE(struct ndr_push
*ndr
, int ndr_flags
, enum PAC_TYPE r
);
2495 _PUBLIC_
enum ndr_err_code
ndr_pull_PAC_TYPE(struct ndr_pull
*ndr
, int ndr_flags
, enum PAC_TYPE
*r
);
2496 _PUBLIC_
void ndr_print_PAC_TYPE(struct ndr_print
*ndr
, const char *name
, enum PAC_TYPE r
);
2497 _PUBLIC_
void ndr_print_DATA_BLOB_REM(struct ndr_print
*ndr
, const char *name
, const struct DATA_BLOB_REM
*r
);
2498 _PUBLIC_
enum ndr_err_code
ndr_push_PAC_INFO(struct ndr_push
*ndr
, int ndr_flags
, const union PAC_INFO
*r
);
2499 _PUBLIC_
enum ndr_err_code
ndr_pull_PAC_INFO(struct ndr_pull
*ndr
, int ndr_flags
, union PAC_INFO
*r
);
2500 _PUBLIC_
void ndr_print_PAC_INFO(struct ndr_print
*ndr
, const char *name
, const union PAC_INFO
*r
);
2501 _PUBLIC_
size_t ndr_size_PAC_INFO(const union PAC_INFO
*r
, uint32_t level
, int flags
);
2502 _PUBLIC_
enum ndr_err_code
ndr_push_PAC_DATA(struct ndr_push
*ndr
, int ndr_flags
, const struct PAC_DATA
*r
);
2503 _PUBLIC_
enum ndr_err_code
ndr_pull_PAC_DATA(struct ndr_pull
*ndr
, int ndr_flags
, struct PAC_DATA
*r
);
2504 _PUBLIC_
void ndr_print_PAC_DATA(struct ndr_print
*ndr
, const char *name
, const struct PAC_DATA
*r
);
2505 _PUBLIC_
enum ndr_err_code
ndr_push_PAC_BUFFER_RAW(struct ndr_push
*ndr
, int ndr_flags
, const struct PAC_BUFFER_RAW
*r
);
2506 _PUBLIC_
enum ndr_err_code
ndr_pull_PAC_BUFFER_RAW(struct ndr_pull
*ndr
, int ndr_flags
, struct PAC_BUFFER_RAW
*r
);
2507 _PUBLIC_
void ndr_print_PAC_BUFFER_RAW(struct ndr_print
*ndr
, const char *name
, const struct PAC_BUFFER_RAW
*r
);
2508 _PUBLIC_
enum ndr_err_code
ndr_push_PAC_DATA_RAW(struct ndr_push
*ndr
, int ndr_flags
, const struct PAC_DATA_RAW
*r
);
2509 _PUBLIC_
enum ndr_err_code
ndr_pull_PAC_DATA_RAW(struct ndr_pull
*ndr
, int ndr_flags
, struct PAC_DATA_RAW
*r
);
2510 _PUBLIC_
void ndr_print_PAC_DATA_RAW(struct ndr_print
*ndr
, const char *name
, const struct PAC_DATA_RAW
*r
);
2511 _PUBLIC_
enum ndr_err_code
ndr_push_netsamlogoncache_entry(struct ndr_push
*ndr
, int ndr_flags
, const struct netsamlogoncache_entry
*r
);
2512 _PUBLIC_
enum ndr_err_code
ndr_pull_netsamlogoncache_entry(struct ndr_pull
*ndr
, int ndr_flags
, struct netsamlogoncache_entry
*r
);
2513 _PUBLIC_
void ndr_print_netsamlogoncache_entry(struct ndr_print
*ndr
, const char *name
, const struct netsamlogoncache_entry
*r
);
2514 _PUBLIC_
void ndr_print_decode_pac(struct ndr_print
*ndr
, const char *name
, int flags
, const struct decode_pac
*r
);
2515 _PUBLIC_
void ndr_print_decode_pac_raw(struct ndr_print
*ndr
, const char *name
, int flags
, const struct decode_pac_raw
*r
);
2516 _PUBLIC_
void ndr_print_decode_login_info(struct ndr_print
*ndr
, const char *name
, int flags
, const struct decode_login_info
*r
);
2518 /* The following definitions come from librpc/gen_ndr/ndr_lsa.c */
2520 _PUBLIC_
enum ndr_err_code
ndr_push_lsa_String(struct ndr_push
*ndr
, int ndr_flags
, const struct lsa_String
*r
);
2521 _PUBLIC_
enum ndr_err_code
ndr_pull_lsa_String(struct ndr_pull
*ndr
, int ndr_flags
, struct lsa_String
*r
);
2522 _PUBLIC_
void ndr_print_lsa_String(struct ndr_print
*ndr
, const char *name
, const struct lsa_String
*r
);
2523 _PUBLIC_
enum ndr_err_code
ndr_push_lsa_StringLarge(struct ndr_push
*ndr
, int ndr_flags
, const struct lsa_StringLarge
*r
);
2524 _PUBLIC_
enum ndr_err_code
ndr_pull_lsa_StringLarge(struct ndr_pull
*ndr
, int ndr_flags
, struct lsa_StringLarge
*r
);
2525 _PUBLIC_
void ndr_print_lsa_StringLarge(struct ndr_print
*ndr
, const char *name
, const struct lsa_StringLarge
*r
);
2526 _PUBLIC_
enum ndr_err_code
ndr_push_lsa_Strings(struct ndr_push
*ndr
, int ndr_flags
, const struct lsa_Strings
*r
);
2527 _PUBLIC_
enum ndr_err_code
ndr_pull_lsa_Strings(struct ndr_pull
*ndr
, int ndr_flags
, struct lsa_Strings
*r
);
2528 _PUBLIC_
void ndr_print_lsa_Strings(struct ndr_print
*ndr
, const char *name
, const struct lsa_Strings
*r
);
2529 _PUBLIC_
enum ndr_err_code
ndr_push_lsa_AsciiString(struct ndr_push
*ndr
, int ndr_flags
, const struct lsa_AsciiString
*r
);
2530 _PUBLIC_
enum ndr_err_code
ndr_pull_lsa_AsciiString(struct ndr_pull
*ndr
, int ndr_flags
, struct lsa_AsciiString
*r
);
2531 _PUBLIC_
void ndr_print_lsa_AsciiString(struct ndr_print
*ndr
, const char *name
, const struct lsa_AsciiString
*r
);
2532 _PUBLIC_
enum ndr_err_code
ndr_push_lsa_AsciiStringLarge(struct ndr_push
*ndr
, int ndr_flags
, const struct lsa_AsciiStringLarge
*r
);
2533 _PUBLIC_
enum ndr_err_code
ndr_pull_lsa_AsciiStringLarge(struct ndr_pull
*ndr
, int ndr_flags
, struct lsa_AsciiStringLarge
*r
);
2534 _PUBLIC_
void ndr_print_lsa_AsciiStringLarge(struct ndr_print
*ndr
, const char *name
, const struct lsa_AsciiStringLarge
*r
);
2535 _PUBLIC_
enum ndr_err_code
ndr_push_lsa_BinaryString(struct ndr_push
*ndr
, int ndr_flags
, const struct lsa_BinaryString
*r
);
2536 _PUBLIC_
enum ndr_err_code
ndr_pull_lsa_BinaryString(struct ndr_pull
*ndr
, int ndr_flags
, struct lsa_BinaryString
*r
);
2537 _PUBLIC_
void ndr_print_lsa_BinaryString(struct ndr_print
*ndr
, const char *name
, const struct lsa_BinaryString
*r
);
2538 _PUBLIC_
void ndr_print_lsa_LUID(struct ndr_print
*ndr
, const char *name
, const struct lsa_LUID
*r
);
2539 _PUBLIC_
void ndr_print_lsa_PrivEntry(struct ndr_print
*ndr
, const char *name
, const struct lsa_PrivEntry
*r
);
2540 _PUBLIC_
void ndr_print_lsa_PrivArray(struct ndr_print
*ndr
, const char *name
, const struct lsa_PrivArray
*r
);
2541 _PUBLIC_
void ndr_print_lsa_QosInfo(struct ndr_print
*ndr
, const char *name
, const struct lsa_QosInfo
*r
);
2542 _PUBLIC_
void ndr_print_lsa_ObjectAttribute(struct ndr_print
*ndr
, const char *name
, const struct lsa_ObjectAttribute
*r
);
2543 _PUBLIC_
enum ndr_err_code
ndr_push_lsa_PolicyAccessMask(struct ndr_push
*ndr
, int ndr_flags
, uint32_t r
);
2544 _PUBLIC_
enum ndr_err_code
ndr_pull_lsa_PolicyAccessMask(struct ndr_pull
*ndr
, int ndr_flags
, uint32_t *r
);
2545 _PUBLIC_
void ndr_print_lsa_PolicyAccessMask(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
2546 _PUBLIC_
void ndr_print_lsa_AuditLogInfo(struct ndr_print
*ndr
, const char *name
, const struct lsa_AuditLogInfo
*r
);
2547 _PUBLIC_
void ndr_print_lsa_PolicyAuditPolicy(struct ndr_print
*ndr
, const char *name
, enum lsa_PolicyAuditPolicy r
);
2548 _PUBLIC_
void ndr_print_lsa_AuditEventsInfo(struct ndr_print
*ndr
, const char *name
, const struct lsa_AuditEventsInfo
*r
);
2549 _PUBLIC_
void ndr_print_lsa_DomainInfo(struct ndr_print
*ndr
, const char *name
, const struct lsa_DomainInfo
*r
);
2550 _PUBLIC_
void ndr_print_lsa_PDAccountInfo(struct ndr_print
*ndr
, const char *name
, const struct lsa_PDAccountInfo
*r
);
2551 _PUBLIC_
void ndr_print_lsa_ServerRole(struct ndr_print
*ndr
, const char *name
, const struct lsa_ServerRole
*r
);
2552 _PUBLIC_
void ndr_print_lsa_ReplicaSourceInfo(struct ndr_print
*ndr
, const char *name
, const struct lsa_ReplicaSourceInfo
*r
);
2553 _PUBLIC_
void ndr_print_lsa_DefaultQuotaInfo(struct ndr_print
*ndr
, const char *name
, const struct lsa_DefaultQuotaInfo
*r
);
2554 _PUBLIC_
void ndr_print_lsa_ModificationInfo(struct ndr_print
*ndr
, const char *name
, const struct lsa_ModificationInfo
*r
);
2555 _PUBLIC_
void ndr_print_lsa_AuditFullSetInfo(struct ndr_print
*ndr
, const char *name
, const struct lsa_AuditFullSetInfo
*r
);
2556 _PUBLIC_
void ndr_print_lsa_AuditFullQueryInfo(struct ndr_print
*ndr
, const char *name
, const struct lsa_AuditFullQueryInfo
*r
);
2557 _PUBLIC_
void ndr_print_lsa_DnsDomainInfo(struct ndr_print
*ndr
, const char *name
, const struct lsa_DnsDomainInfo
*r
);
2558 _PUBLIC_
void ndr_print_lsa_PolicyInfo(struct ndr_print
*ndr
, const char *name
, enum lsa_PolicyInfo r
);
2559 _PUBLIC_
void ndr_print_lsa_PolicyInformation(struct ndr_print
*ndr
, const char *name
, const union lsa_PolicyInformation
*r
);
2560 _PUBLIC_
void ndr_print_lsa_SidPtr(struct ndr_print
*ndr
, const char *name
, const struct lsa_SidPtr
*r
);
2561 _PUBLIC_
enum ndr_err_code
ndr_push_lsa_SidArray(struct ndr_push
*ndr
, int ndr_flags
, const struct lsa_SidArray
*r
);
2562 _PUBLIC_
enum ndr_err_code
ndr_pull_lsa_SidArray(struct ndr_pull
*ndr
, int ndr_flags
, struct lsa_SidArray
*r
);
2563 _PUBLIC_
void ndr_print_lsa_SidArray(struct ndr_print
*ndr
, const char *name
, const struct lsa_SidArray
*r
);
2564 _PUBLIC_
void ndr_print_lsa_DomainList(struct ndr_print
*ndr
, const char *name
, const struct lsa_DomainList
*r
);
2565 _PUBLIC_
void ndr_print_lsa_SidType(struct ndr_print
*ndr
, const char *name
, enum lsa_SidType r
);
2566 _PUBLIC_
void ndr_print_lsa_TranslatedSid(struct ndr_print
*ndr
, const char *name
, const struct lsa_TranslatedSid
*r
);
2567 _PUBLIC_
void ndr_print_lsa_TransSidArray(struct ndr_print
*ndr
, const char *name
, const struct lsa_TransSidArray
*r
);
2568 _PUBLIC_
void ndr_print_lsa_RefDomainList(struct ndr_print
*ndr
, const char *name
, const struct lsa_RefDomainList
*r
);
2569 _PUBLIC_
void ndr_print_lsa_LookupNamesLevel(struct ndr_print
*ndr
, const char *name
, enum lsa_LookupNamesLevel r
);
2570 _PUBLIC_
void ndr_print_lsa_TranslatedName(struct ndr_print
*ndr
, const char *name
, const struct lsa_TranslatedName
*r
);
2571 _PUBLIC_
void ndr_print_lsa_TransNameArray(struct ndr_print
*ndr
, const char *name
, const struct lsa_TransNameArray
*r
);
2572 _PUBLIC_
void ndr_print_lsa_LUIDAttribute(struct ndr_print
*ndr
, const char *name
, const struct lsa_LUIDAttribute
*r
);
2573 _PUBLIC_
void ndr_print_lsa_PrivilegeSet(struct ndr_print
*ndr
, const char *name
, const struct lsa_PrivilegeSet
*r
);
2574 _PUBLIC_
void ndr_print_lsa_DATA_BUF(struct ndr_print
*ndr
, const char *name
, const struct lsa_DATA_BUF
*r
);
2575 _PUBLIC_
void ndr_print_lsa_DATA_BUF2(struct ndr_print
*ndr
, const char *name
, const struct lsa_DATA_BUF2
*r
);
2576 _PUBLIC_
void ndr_print_lsa_TrustDomInfoEnum(struct ndr_print
*ndr
, const char *name
, enum lsa_TrustDomInfoEnum r
);
2577 _PUBLIC_
void ndr_print_lsa_TrustDomainInfoName(struct ndr_print
*ndr
, const char *name
, const struct lsa_TrustDomainInfoName
*r
);
2578 _PUBLIC_
void ndr_print_lsa_TrustDomainInfoPosixOffset(struct ndr_print
*ndr
, const char *name
, const struct lsa_TrustDomainInfoPosixOffset
*r
);
2579 _PUBLIC_
void ndr_print_lsa_TrustDomainInfoPassword(struct ndr_print
*ndr
, const char *name
, const struct lsa_TrustDomainInfoPassword
*r
);
2580 _PUBLIC_
void ndr_print_lsa_TrustDomainInfoBasic(struct ndr_print
*ndr
, const char *name
, const struct lsa_TrustDomainInfoBasic
*r
);
2581 _PUBLIC_
void ndr_print_lsa_TrustDomainInfoInfoEx(struct ndr_print
*ndr
, const char *name
, const struct lsa_TrustDomainInfoInfoEx
*r
);
2582 _PUBLIC_
void ndr_print_lsa_TrustDomainInfoBuffer(struct ndr_print
*ndr
, const char *name
, const struct lsa_TrustDomainInfoBuffer
*r
);
2583 _PUBLIC_
void ndr_print_lsa_TrustDomainInfoAuthInfo(struct ndr_print
*ndr
, const char *name
, const struct lsa_TrustDomainInfoAuthInfo
*r
);
2584 _PUBLIC_
void ndr_print_lsa_TrustDomainInfoFullInfo(struct ndr_print
*ndr
, const char *name
, const struct lsa_TrustDomainInfoFullInfo
*r
);
2585 _PUBLIC_
void ndr_print_lsa_TrustDomainInfo11(struct ndr_print
*ndr
, const char *name
, const struct lsa_TrustDomainInfo11
*r
);
2586 _PUBLIC_
void ndr_print_lsa_TrustDomainInfoInfoAll(struct ndr_print
*ndr
, const char *name
, const struct lsa_TrustDomainInfoInfoAll
*r
);
2587 _PUBLIC_
void ndr_print_lsa_TrustedDomainInfo(struct ndr_print
*ndr
, const char *name
, const union lsa_TrustedDomainInfo
*r
);
2588 _PUBLIC_
void ndr_print_lsa_DATA_BUF_PTR(struct ndr_print
*ndr
, const char *name
, const struct lsa_DATA_BUF_PTR
*r
);
2589 _PUBLIC_
void ndr_print_lsa_RightSet(struct ndr_print
*ndr
, const char *name
, const struct lsa_RightSet
*r
);
2590 _PUBLIC_
void ndr_print_lsa_DomainListEx(struct ndr_print
*ndr
, const char *name
, const struct lsa_DomainListEx
*r
);
2591 _PUBLIC_
void ndr_print_lsa_DomainInfoKerberos(struct ndr_print
*ndr
, const char *name
, const struct lsa_DomainInfoKerberos
*r
);
2592 _PUBLIC_
void ndr_print_lsa_DomainInfoEfs(struct ndr_print
*ndr
, const char *name
, const struct lsa_DomainInfoEfs
*r
);
2593 _PUBLIC_
void ndr_print_lsa_DomainInformationPolicy(struct ndr_print
*ndr
, const char *name
, const union lsa_DomainInformationPolicy
*r
);
2594 _PUBLIC_
void ndr_print_lsa_TranslatedName2(struct ndr_print
*ndr
, const char *name
, const struct lsa_TranslatedName2
*r
);
2595 _PUBLIC_
void ndr_print_lsa_TransNameArray2(struct ndr_print
*ndr
, const char *name
, const struct lsa_TransNameArray2
*r
);
2596 _PUBLIC_
void ndr_print_lsa_TranslatedSid2(struct ndr_print
*ndr
, const char *name
, const struct lsa_TranslatedSid2
*r
);
2597 _PUBLIC_
void ndr_print_lsa_TransSidArray2(struct ndr_print
*ndr
, const char *name
, const struct lsa_TransSidArray2
*r
);
2598 _PUBLIC_
void ndr_print_lsa_TranslatedSid3(struct ndr_print
*ndr
, const char *name
, const struct lsa_TranslatedSid3
*r
);
2599 _PUBLIC_
void ndr_print_lsa_TransSidArray3(struct ndr_print
*ndr
, const char *name
, const struct lsa_TransSidArray3
*r
);
2600 _PUBLIC_
void ndr_print_lsa_ForestTrustBinaryData(struct ndr_print
*ndr
, const char *name
, const struct lsa_ForestTrustBinaryData
*r
);
2601 _PUBLIC_
void ndr_print_lsa_ForestTrustDomainInfo(struct ndr_print
*ndr
, const char *name
, const struct lsa_ForestTrustDomainInfo
*r
);
2602 _PUBLIC_
void ndr_print_lsa_ForestTrustData(struct ndr_print
*ndr
, const char *name
, const union lsa_ForestTrustData
*r
);
2603 _PUBLIC_
void ndr_print_lsa_ForestTrustRecordType(struct ndr_print
*ndr
, const char *name
, enum lsa_ForestTrustRecordType r
);
2604 _PUBLIC_
void ndr_print_lsa_ForestTrustRecord(struct ndr_print
*ndr
, const char *name
, const struct lsa_ForestTrustRecord
*r
);
2605 _PUBLIC_
enum ndr_err_code
ndr_push_lsa_ForestTrustInformation(struct ndr_push
*ndr
, int ndr_flags
, const struct lsa_ForestTrustInformation
*r
);
2606 _PUBLIC_
enum ndr_err_code
ndr_pull_lsa_ForestTrustInformation(struct ndr_pull
*ndr
, int ndr_flags
, struct lsa_ForestTrustInformation
*r
);
2607 _PUBLIC_
void ndr_print_lsa_ForestTrustInformation(struct ndr_print
*ndr
, const char *name
, const struct lsa_ForestTrustInformation
*r
);
2608 _PUBLIC_
void ndr_print_lsa_Close(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_Close
*r
);
2609 _PUBLIC_
enum ndr_err_code
ndr_push_lsa_Delete(struct ndr_push
*ndr
, int flags
, const struct lsa_Delete
*r
);
2610 _PUBLIC_
enum ndr_err_code
ndr_pull_lsa_Delete(struct ndr_pull
*ndr
, int flags
, struct lsa_Delete
*r
);
2611 _PUBLIC_
void ndr_print_lsa_Delete(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_Delete
*r
);
2612 _PUBLIC_
enum ndr_err_code
ndr_push_lsa_EnumPrivs(struct ndr_push
*ndr
, int flags
, const struct lsa_EnumPrivs
*r
);
2613 _PUBLIC_
enum ndr_err_code
ndr_pull_lsa_EnumPrivs(struct ndr_pull
*ndr
, int flags
, struct lsa_EnumPrivs
*r
);
2614 _PUBLIC_
void ndr_print_lsa_EnumPrivs(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_EnumPrivs
*r
);
2615 _PUBLIC_
void ndr_print_lsa_QuerySecurity(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_QuerySecurity
*r
);
2616 _PUBLIC_
void ndr_print_lsa_SetSecObj(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_SetSecObj
*r
);
2617 _PUBLIC_
void ndr_print_lsa_ChangePassword(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_ChangePassword
*r
);
2618 _PUBLIC_
enum ndr_err_code
ndr_push_lsa_OpenPolicy(struct ndr_push
*ndr
, int flags
, const struct lsa_OpenPolicy
*r
);
2619 _PUBLIC_
enum ndr_err_code
ndr_pull_lsa_OpenPolicy(struct ndr_pull
*ndr
, int flags
, struct lsa_OpenPolicy
*r
);
2620 _PUBLIC_
void ndr_print_lsa_OpenPolicy(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_OpenPolicy
*r
);
2621 _PUBLIC_
void ndr_print_lsa_QueryInfoPolicy(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_QueryInfoPolicy
*r
);
2622 _PUBLIC_
void ndr_print_lsa_SetInfoPolicy(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_SetInfoPolicy
*r
);
2623 _PUBLIC_
void ndr_print_lsa_ClearAuditLog(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_ClearAuditLog
*r
);
2624 _PUBLIC_
enum ndr_err_code
ndr_push_lsa_CreateAccount(struct ndr_push
*ndr
, int flags
, const struct lsa_CreateAccount
*r
);
2625 _PUBLIC_
enum ndr_err_code
ndr_pull_lsa_CreateAccount(struct ndr_pull
*ndr
, int flags
, struct lsa_CreateAccount
*r
);
2626 _PUBLIC_
void ndr_print_lsa_CreateAccount(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_CreateAccount
*r
);
2627 _PUBLIC_
enum ndr_err_code
ndr_push_lsa_EnumAccounts(struct ndr_push
*ndr
, int flags
, const struct lsa_EnumAccounts
*r
);
2628 _PUBLIC_
enum ndr_err_code
ndr_pull_lsa_EnumAccounts(struct ndr_pull
*ndr
, int flags
, struct lsa_EnumAccounts
*r
);
2629 _PUBLIC_
void ndr_print_lsa_EnumAccounts(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_EnumAccounts
*r
);
2630 _PUBLIC_
enum ndr_err_code
ndr_push_lsa_CreateTrustedDomain(struct ndr_push
*ndr
, int flags
, const struct lsa_CreateTrustedDomain
*r
);
2631 _PUBLIC_
enum ndr_err_code
ndr_pull_lsa_CreateTrustedDomain(struct ndr_pull
*ndr
, int flags
, struct lsa_CreateTrustedDomain
*r
);
2632 _PUBLIC_
void ndr_print_lsa_CreateTrustedDomain(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_CreateTrustedDomain
*r
);
2633 _PUBLIC_
void ndr_print_lsa_EnumTrustDom(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_EnumTrustDom
*r
);
2634 _PUBLIC_
enum ndr_err_code
ndr_push_lsa_LookupNames(struct ndr_push
*ndr
, int flags
, const struct lsa_LookupNames
*r
);
2635 _PUBLIC_
enum ndr_err_code
ndr_pull_lsa_LookupNames(struct ndr_pull
*ndr
, int flags
, struct lsa_LookupNames
*r
);
2636 _PUBLIC_
void ndr_print_lsa_LookupNames(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_LookupNames
*r
);
2637 _PUBLIC_
enum ndr_err_code
ndr_push_lsa_LookupSids(struct ndr_push
*ndr
, int flags
, const struct lsa_LookupSids
*r
);
2638 _PUBLIC_
enum ndr_err_code
ndr_pull_lsa_LookupSids(struct ndr_pull
*ndr
, int flags
, struct lsa_LookupSids
*r
);
2639 _PUBLIC_
void ndr_print_lsa_LookupSids(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_LookupSids
*r
);
2640 _PUBLIC_
enum ndr_err_code
ndr_push_lsa_CreateSecret(struct ndr_push
*ndr
, int flags
, const struct lsa_CreateSecret
*r
);
2641 _PUBLIC_
enum ndr_err_code
ndr_pull_lsa_CreateSecret(struct ndr_pull
*ndr
, int flags
, struct lsa_CreateSecret
*r
);
2642 _PUBLIC_
void ndr_print_lsa_CreateSecret(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_CreateSecret
*r
);
2643 _PUBLIC_
void ndr_print_lsa_OpenAccount(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_OpenAccount
*r
);
2644 _PUBLIC_
void ndr_print_lsa_EnumPrivsAccount(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_EnumPrivsAccount
*r
);
2645 _PUBLIC_
void ndr_print_lsa_AddPrivilegesToAccount(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_AddPrivilegesToAccount
*r
);
2646 _PUBLIC_
void ndr_print_lsa_RemovePrivilegesFromAccount(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_RemovePrivilegesFromAccount
*r
);
2647 _PUBLIC_
void ndr_print_lsa_GetQuotasForAccount(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_GetQuotasForAccount
*r
);
2648 _PUBLIC_
void ndr_print_lsa_SetQuotasForAccount(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_SetQuotasForAccount
*r
);
2649 _PUBLIC_
void ndr_print_lsa_GetSystemAccessAccount(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_GetSystemAccessAccount
*r
);
2650 _PUBLIC_
void ndr_print_lsa_SetSystemAccessAccount(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_SetSystemAccessAccount
*r
);
2651 _PUBLIC_
void ndr_print_lsa_OpenTrustedDomain(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_OpenTrustedDomain
*r
);
2652 _PUBLIC_
void ndr_print_lsa_QueryTrustedDomainInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_QueryTrustedDomainInfo
*r
);
2653 _PUBLIC_
void ndr_print_lsa_SetInformationTrustedDomain(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_SetInformationTrustedDomain
*r
);
2654 _PUBLIC_
enum ndr_err_code
ndr_push_lsa_OpenSecret(struct ndr_push
*ndr
, int flags
, const struct lsa_OpenSecret
*r
);
2655 _PUBLIC_
enum ndr_err_code
ndr_pull_lsa_OpenSecret(struct ndr_pull
*ndr
, int flags
, struct lsa_OpenSecret
*r
);
2656 _PUBLIC_
void ndr_print_lsa_OpenSecret(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_OpenSecret
*r
);
2657 _PUBLIC_
enum ndr_err_code
ndr_push_lsa_SetSecret(struct ndr_push
*ndr
, int flags
, const struct lsa_SetSecret
*r
);
2658 _PUBLIC_
enum ndr_err_code
ndr_pull_lsa_SetSecret(struct ndr_pull
*ndr
, int flags
, struct lsa_SetSecret
*r
);
2659 _PUBLIC_
void ndr_print_lsa_SetSecret(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_SetSecret
*r
);
2660 _PUBLIC_
enum ndr_err_code
ndr_push_lsa_QuerySecret(struct ndr_push
*ndr
, int flags
, const struct lsa_QuerySecret
*r
);
2661 _PUBLIC_
enum ndr_err_code
ndr_pull_lsa_QuerySecret(struct ndr_pull
*ndr
, int flags
, struct lsa_QuerySecret
*r
);
2662 _PUBLIC_
void ndr_print_lsa_QuerySecret(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_QuerySecret
*r
);
2663 _PUBLIC_
void ndr_print_lsa_LookupPrivValue(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_LookupPrivValue
*r
);
2664 _PUBLIC_
void ndr_print_lsa_LookupPrivName(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_LookupPrivName
*r
);
2665 _PUBLIC_
void ndr_print_lsa_LookupPrivDisplayName(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_LookupPrivDisplayName
*r
);
2666 _PUBLIC_
void ndr_print_lsa_DeleteObject(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_DeleteObject
*r
);
2667 _PUBLIC_
void ndr_print_lsa_EnumAccountsWithUserRight(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_EnumAccountsWithUserRight
*r
);
2668 _PUBLIC_
void ndr_print_lsa_EnumAccountRights(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_EnumAccountRights
*r
);
2669 _PUBLIC_
void ndr_print_lsa_AddAccountRights(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_AddAccountRights
*r
);
2670 _PUBLIC_
void ndr_print_lsa_RemoveAccountRights(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_RemoveAccountRights
*r
);
2671 _PUBLIC_
void ndr_print_lsa_QueryTrustedDomainInfoBySid(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_QueryTrustedDomainInfoBySid
*r
);
2672 _PUBLIC_
void ndr_print_lsa_SetTrustedDomainInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_SetTrustedDomainInfo
*r
);
2673 _PUBLIC_
void ndr_print_lsa_DeleteTrustedDomain(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_DeleteTrustedDomain
*r
);
2674 _PUBLIC_
void ndr_print_lsa_StorePrivateData(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_StorePrivateData
*r
);
2675 _PUBLIC_
void ndr_print_lsa_RetrievePrivateData(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_RetrievePrivateData
*r
);
2676 _PUBLIC_
enum ndr_err_code
ndr_push_lsa_OpenPolicy2(struct ndr_push
*ndr
, int flags
, const struct lsa_OpenPolicy2
*r
);
2677 _PUBLIC_
enum ndr_err_code
ndr_pull_lsa_OpenPolicy2(struct ndr_pull
*ndr
, int flags
, struct lsa_OpenPolicy2
*r
);
2678 _PUBLIC_
void ndr_print_lsa_OpenPolicy2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_OpenPolicy2
*r
);
2679 _PUBLIC_
void ndr_print_lsa_GetUserName(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_GetUserName
*r
);
2680 _PUBLIC_
void ndr_print_lsa_QueryInfoPolicy2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_QueryInfoPolicy2
*r
);
2681 _PUBLIC_
void ndr_print_lsa_SetInfoPolicy2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_SetInfoPolicy2
*r
);
2682 _PUBLIC_
void ndr_print_lsa_QueryTrustedDomainInfoByName(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_QueryTrustedDomainInfoByName
*r
);
2683 _PUBLIC_
void ndr_print_lsa_SetTrustedDomainInfoByName(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_SetTrustedDomainInfoByName
*r
);
2684 _PUBLIC_
void ndr_print_lsa_EnumTrustedDomainsEx(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_EnumTrustedDomainsEx
*r
);
2685 _PUBLIC_
void ndr_print_lsa_CreateTrustedDomainEx(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_CreateTrustedDomainEx
*r
);
2686 _PUBLIC_
void ndr_print_lsa_CloseTrustedDomainEx(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_CloseTrustedDomainEx
*r
);
2687 _PUBLIC_
void ndr_print_lsa_QueryDomainInformationPolicy(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_QueryDomainInformationPolicy
*r
);
2688 _PUBLIC_
void ndr_print_lsa_SetDomainInformationPolicy(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_SetDomainInformationPolicy
*r
);
2689 _PUBLIC_
void ndr_print_lsa_OpenTrustedDomainByName(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_OpenTrustedDomainByName
*r
);
2690 _PUBLIC_
void ndr_print_lsa_TestCall(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_TestCall
*r
);
2691 _PUBLIC_
enum ndr_err_code
ndr_push_lsa_LookupSids2(struct ndr_push
*ndr
, int flags
, const struct lsa_LookupSids2
*r
);
2692 _PUBLIC_
enum ndr_err_code
ndr_pull_lsa_LookupSids2(struct ndr_pull
*ndr
, int flags
, struct lsa_LookupSids2
*r
);
2693 _PUBLIC_
void ndr_print_lsa_LookupSids2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_LookupSids2
*r
);
2694 _PUBLIC_
enum ndr_err_code
ndr_push_lsa_LookupNames2(struct ndr_push
*ndr
, int flags
, const struct lsa_LookupNames2
*r
);
2695 _PUBLIC_
enum ndr_err_code
ndr_pull_lsa_LookupNames2(struct ndr_pull
*ndr
, int flags
, struct lsa_LookupNames2
*r
);
2696 _PUBLIC_
void ndr_print_lsa_LookupNames2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_LookupNames2
*r
);
2697 _PUBLIC_
void ndr_print_lsa_CreateTrustedDomainEx2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_CreateTrustedDomainEx2
*r
);
2698 _PUBLIC_
void ndr_print_lsa_CREDRWRITE(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_CREDRWRITE
*r
);
2699 _PUBLIC_
void ndr_print_lsa_CREDRREAD(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_CREDRREAD
*r
);
2700 _PUBLIC_
void ndr_print_lsa_CREDRENUMERATE(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_CREDRENUMERATE
*r
);
2701 _PUBLIC_
void ndr_print_lsa_CREDRWRITEDOMAINCREDENTIALS(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_CREDRWRITEDOMAINCREDENTIALS
*r
);
2702 _PUBLIC_
void ndr_print_lsa_CREDRREADDOMAINCREDENTIALS(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_CREDRREADDOMAINCREDENTIALS
*r
);
2703 _PUBLIC_
void ndr_print_lsa_CREDRDELETE(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_CREDRDELETE
*r
);
2704 _PUBLIC_
void ndr_print_lsa_CREDRGETTARGETINFO(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_CREDRGETTARGETINFO
*r
);
2705 _PUBLIC_
void ndr_print_lsa_CREDRPROFILELOADED(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_CREDRPROFILELOADED
*r
);
2706 _PUBLIC_
enum ndr_err_code
ndr_push_lsa_LookupNames3(struct ndr_push
*ndr
, int flags
, const struct lsa_LookupNames3
*r
);
2707 _PUBLIC_
enum ndr_err_code
ndr_pull_lsa_LookupNames3(struct ndr_pull
*ndr
, int flags
, struct lsa_LookupNames3
*r
);
2708 _PUBLIC_
void ndr_print_lsa_LookupNames3(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_LookupNames3
*r
);
2709 _PUBLIC_
void ndr_print_lsa_CREDRGETSESSIONTYPES(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_CREDRGETSESSIONTYPES
*r
);
2710 _PUBLIC_
void ndr_print_lsa_LSARREGISTERAUDITEVENT(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_LSARREGISTERAUDITEVENT
*r
);
2711 _PUBLIC_
void ndr_print_lsa_LSARGENAUDITEVENT(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_LSARGENAUDITEVENT
*r
);
2712 _PUBLIC_
void ndr_print_lsa_LSARUNREGISTERAUDITEVENT(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_LSARUNREGISTERAUDITEVENT
*r
);
2713 _PUBLIC_
void ndr_print_lsa_lsaRQueryForestTrustInformation(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_lsaRQueryForestTrustInformation
*r
);
2714 _PUBLIC_
void ndr_print_lsa_LSARSETFORESTTRUSTINFORMATION(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_LSARSETFORESTTRUSTINFORMATION
*r
);
2715 _PUBLIC_
void ndr_print_lsa_CREDRRENAME(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_CREDRRENAME
*r
);
2716 _PUBLIC_
enum ndr_err_code
ndr_push_lsa_LookupSids3(struct ndr_push
*ndr
, int flags
, const struct lsa_LookupSids3
*r
);
2717 _PUBLIC_
enum ndr_err_code
ndr_pull_lsa_LookupSids3(struct ndr_pull
*ndr
, int flags
, struct lsa_LookupSids3
*r
);
2718 _PUBLIC_
void ndr_print_lsa_LookupSids3(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_LookupSids3
*r
);
2719 _PUBLIC_
void ndr_print_lsa_LookupNames4(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_LookupNames4
*r
);
2720 _PUBLIC_
void ndr_print_lsa_LSAROPENPOLICYSCE(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_LSAROPENPOLICYSCE
*r
);
2721 _PUBLIC_
void ndr_print_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_LSARADTREGISTERSECURITYEVENTSOURCE
*r
);
2722 _PUBLIC_
void ndr_print_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE
*r
);
2723 _PUBLIC_
void ndr_print_lsa_LSARADTREPORTSECURITYEVENT(struct ndr_print
*ndr
, const char *name
, int flags
, const struct lsa_LSARADTREPORTSECURITYEVENT
*r
);
2725 /* The following definitions come from librpc/gen_ndr/ndr_misc.c */
2727 _PUBLIC_
enum ndr_err_code
ndr_push_GUID(struct ndr_push
*ndr
, int ndr_flags
, const struct GUID
*r
);
2728 _PUBLIC_
enum ndr_err_code
ndr_pull_GUID(struct ndr_pull
*ndr
, int ndr_flags
, struct GUID
*r
);
2729 _PUBLIC_
size_t ndr_size_GUID(const struct GUID
*r
, int flags
);
2730 _PUBLIC_
enum ndr_err_code
ndr_push_ndr_syntax_id(struct ndr_push
*ndr
, int ndr_flags
, const struct ndr_syntax_id
*r
);
2731 _PUBLIC_
enum ndr_err_code
ndr_pull_ndr_syntax_id(struct ndr_pull
*ndr
, int ndr_flags
, struct ndr_syntax_id
*r
);
2732 _PUBLIC_
void ndr_print_ndr_syntax_id(struct ndr_print
*ndr
, const char *name
, const struct ndr_syntax_id
*r
);
2733 _PUBLIC_
enum ndr_err_code
ndr_push_policy_handle(struct ndr_push
*ndr
, int ndr_flags
, const struct policy_handle
*r
);
2734 _PUBLIC_
enum ndr_err_code
ndr_pull_policy_handle(struct ndr_pull
*ndr
, int ndr_flags
, struct policy_handle
*r
);
2735 _PUBLIC_
void ndr_print_policy_handle(struct ndr_print
*ndr
, const char *name
, const struct policy_handle
*r
);
2736 _PUBLIC_
enum ndr_err_code
ndr_push_netr_SchannelType(struct ndr_push
*ndr
, int ndr_flags
, enum netr_SchannelType r
);
2737 _PUBLIC_
enum ndr_err_code
ndr_pull_netr_SchannelType(struct ndr_pull
*ndr
, int ndr_flags
, enum netr_SchannelType
*r
);
2738 _PUBLIC_
void ndr_print_netr_SchannelType(struct ndr_print
*ndr
, const char *name
, enum netr_SchannelType r
);
2739 _PUBLIC_
enum ndr_err_code
ndr_push_netr_SamDatabaseID(struct ndr_push
*ndr
, int ndr_flags
, enum netr_SamDatabaseID r
);
2740 _PUBLIC_
enum ndr_err_code
ndr_pull_netr_SamDatabaseID(struct ndr_pull
*ndr
, int ndr_flags
, enum netr_SamDatabaseID
*r
);
2741 _PUBLIC_
void ndr_print_netr_SamDatabaseID(struct ndr_print
*ndr
, const char *name
, enum netr_SamDatabaseID r
);
2742 _PUBLIC_
enum ndr_err_code
ndr_push_samr_RejectReason(struct ndr_push
*ndr
, int ndr_flags
, enum samr_RejectReason r
);
2743 _PUBLIC_
enum ndr_err_code
ndr_pull_samr_RejectReason(struct ndr_pull
*ndr
, int ndr_flags
, enum samr_RejectReason
*r
);
2744 _PUBLIC_
void ndr_print_samr_RejectReason(struct ndr_print
*ndr
, const char *name
, enum samr_RejectReason r
);
2746 /* The following definitions come from librpc/gen_ndr/ndr_nbt.c */
2748 _PUBLIC_
void ndr_print_nbt_operation(struct ndr_print
*ndr
, const char *name
, uint16_t r
);
2749 _PUBLIC_
void ndr_print_nbt_name_type(struct ndr_print
*ndr
, const char *name
, enum nbt_name_type r
);
2750 _PUBLIC_
void ndr_print_nbt_name(struct ndr_print
*ndr
, const char *name
, const struct nbt_name
*r
);
2751 _PUBLIC_
void ndr_print_nbt_qclass(struct ndr_print
*ndr
, const char *name
, enum nbt_qclass r
);
2752 _PUBLIC_
void ndr_print_nbt_qtype(struct ndr_print
*ndr
, const char *name
, enum nbt_qtype r
);
2753 _PUBLIC_
void ndr_print_nbt_name_question(struct ndr_print
*ndr
, const char *name
, const struct nbt_name_question
*r
);
2754 _PUBLIC_
void ndr_print_nb_flags(struct ndr_print
*ndr
, const char *name
, uint16_t r
);
2755 _PUBLIC_
void ndr_print_nbt_rdata_address(struct ndr_print
*ndr
, const char *name
, const struct nbt_rdata_address
*r
);
2756 _PUBLIC_
void ndr_print_nbt_rdata_netbios(struct ndr_print
*ndr
, const char *name
, const struct nbt_rdata_netbios
*r
);
2757 _PUBLIC_
void ndr_print_nbt_statistics(struct ndr_print
*ndr
, const char *name
, const struct nbt_statistics
*r
);
2758 _PUBLIC_
void ndr_print_nbt_status_name(struct ndr_print
*ndr
, const char *name
, const struct nbt_status_name
*r
);
2759 _PUBLIC_
void ndr_print_nbt_rdata_status(struct ndr_print
*ndr
, const char *name
, const struct nbt_rdata_status
*r
);
2760 _PUBLIC_
void ndr_print_nbt_rdata_data(struct ndr_print
*ndr
, const char *name
, const struct nbt_rdata_data
*r
);
2761 _PUBLIC_
void ndr_print_nbt_rdata(struct ndr_print
*ndr
, const char *name
, const union nbt_rdata
*r
);
2762 _PUBLIC_
void ndr_print_nbt_res_rec(struct ndr_print
*ndr
, const char *name
, const struct nbt_res_rec
*r
);
2763 _PUBLIC_
enum ndr_err_code
ndr_push_nbt_name_packet(struct ndr_push
*ndr
, int ndr_flags
, const struct nbt_name_packet
*r
);
2764 _PUBLIC_
enum ndr_err_code
ndr_pull_nbt_name_packet(struct ndr_pull
*ndr
, int ndr_flags
, struct nbt_name_packet
*r
);
2765 _PUBLIC_
void ndr_print_nbt_name_packet(struct ndr_print
*ndr
, const char *name
, const struct nbt_name_packet
*r
);
2766 _PUBLIC_
void ndr_print_dgram_msg_type(struct ndr_print
*ndr
, const char *name
, enum dgram_msg_type r
);
2767 _PUBLIC_
void ndr_print_dgram_flags(struct ndr_print
*ndr
, const char *name
, uint8_t r
);
2768 _PUBLIC_
void ndr_print_smb_command(struct ndr_print
*ndr
, const char *name
, enum smb_command r
);
2769 _PUBLIC_
void ndr_print_smb_trans_body(struct ndr_print
*ndr
, const char *name
, const struct smb_trans_body
*r
);
2770 _PUBLIC_
void ndr_print_smb_body(struct ndr_print
*ndr
, const char *name
, const union smb_body
*r
);
2771 _PUBLIC_
enum ndr_err_code
ndr_push_dgram_smb_packet(struct ndr_push
*ndr
, int ndr_flags
, const struct dgram_smb_packet
*r
);
2772 _PUBLIC_
enum ndr_err_code
ndr_pull_dgram_smb_packet(struct ndr_pull
*ndr
, int ndr_flags
, struct dgram_smb_packet
*r
);
2773 _PUBLIC_
void ndr_print_dgram_smb_packet(struct ndr_print
*ndr
, const char *name
, const struct dgram_smb_packet
*r
);
2774 _PUBLIC_
void ndr_print_dgram_message_body(struct ndr_print
*ndr
, const char *name
, const union dgram_message_body
*r
);
2775 _PUBLIC_
void ndr_print_dgram_message(struct ndr_print
*ndr
, const char *name
, const struct dgram_message
*r
);
2776 _PUBLIC_
void ndr_print_dgram_err_code(struct ndr_print
*ndr
, const char *name
, enum dgram_err_code r
);
2777 _PUBLIC_
void ndr_print_dgram_data(struct ndr_print
*ndr
, const char *name
, const union dgram_data
*r
);
2778 _PUBLIC_
enum ndr_err_code
ndr_push_nbt_dgram_packet(struct ndr_push
*ndr
, int ndr_flags
, const struct nbt_dgram_packet
*r
);
2779 _PUBLIC_
enum ndr_err_code
ndr_pull_nbt_dgram_packet(struct ndr_pull
*ndr
, int ndr_flags
, struct nbt_dgram_packet
*r
);
2780 _PUBLIC_
void ndr_print_nbt_dgram_packet(struct ndr_print
*ndr
, const char *name
, const struct nbt_dgram_packet
*r
);
2781 _PUBLIC_
void ndr_print_nbt_netlogon_command(struct ndr_print
*ndr
, const char *name
, enum nbt_netlogon_command r
);
2782 _PUBLIC_
void ndr_print_nbt_netlogon_version(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
2783 _PUBLIC_
void ndr_print_nbt_netlogon_query_for_pdc(struct ndr_print
*ndr
, const char *name
, const struct nbt_netlogon_query_for_pdc
*r
);
2784 _PUBLIC_
void ndr_print_nbt_netlogon_query_for_pdc2(struct ndr_print
*ndr
, const char *name
, const struct nbt_netlogon_query_for_pdc2
*r
);
2785 _PUBLIC_
void ndr_print_nbt_netlogon_response_from_pdc(struct ndr_print
*ndr
, const char *name
, const struct nbt_netlogon_response_from_pdc
*r
);
2786 _PUBLIC_
void ndr_print_nbt_server_type(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
2787 _PUBLIC_
void ndr_print_nbt_dc_sock_addr(struct ndr_print
*ndr
, const char *name
, const struct nbt_dc_sock_addr
*r
);
2788 _PUBLIC_
void ndr_print_nbt_netlogon_response_from_pdc2(struct ndr_print
*ndr
, const char *name
, const struct nbt_netlogon_response_from_pdc2
*r
);
2789 _PUBLIC_
void ndr_print_nbt_db_change(struct ndr_print
*ndr
, const char *name
, const struct nbt_db_change
*r
);
2790 _PUBLIC_
void ndr_print_nbt_netlogon_announce_uas(struct ndr_print
*ndr
, const char *name
, const struct nbt_netlogon_announce_uas
*r
);
2791 _PUBLIC_
void ndr_print_nbt_netlogon_request(struct ndr_print
*ndr
, const char *name
, const union nbt_netlogon_request
*r
);
2792 _PUBLIC_
enum ndr_err_code
ndr_push_nbt_netlogon_packet(struct ndr_push
*ndr
, int ndr_flags
, const struct nbt_netlogon_packet
*r
);
2793 _PUBLIC_
enum ndr_err_code
ndr_pull_nbt_netlogon_packet(struct ndr_pull
*ndr
, int ndr_flags
, struct nbt_netlogon_packet
*r
);
2794 _PUBLIC_
void ndr_print_nbt_netlogon_packet(struct ndr_print
*ndr
, const char *name
, const struct nbt_netlogon_packet
*r
);
2795 _PUBLIC_
void ndr_print_nbt_cldap_netlogon_1(struct ndr_print
*ndr
, const char *name
, const struct nbt_cldap_netlogon_1
*r
);
2796 _PUBLIC_
void ndr_print_nbt_cldap_netlogon_3(struct ndr_print
*ndr
, const char *name
, const struct nbt_cldap_netlogon_3
*r
);
2797 _PUBLIC_
enum ndr_err_code
ndr_push_nbt_cldap_netlogon_5(struct ndr_push
*ndr
, int ndr_flags
, const struct nbt_cldap_netlogon_5
*r
);
2798 _PUBLIC_
enum ndr_err_code
ndr_pull_nbt_cldap_netlogon_5(struct ndr_pull
*ndr
, int ndr_flags
, struct nbt_cldap_netlogon_5
*r
);
2799 _PUBLIC_
void ndr_print_nbt_cldap_netlogon_5(struct ndr_print
*ndr
, const char *name
, const struct nbt_cldap_netlogon_5
*r
);
2800 _PUBLIC_
void ndr_print_nbt_cldap_netlogon_13(struct ndr_print
*ndr
, const char *name
, const struct nbt_cldap_netlogon_13
*r
);
2801 _PUBLIC_
enum ndr_err_code
ndr_push_nbt_cldap_netlogon_15(struct ndr_push
*ndr
, int ndr_flags
, const struct nbt_cldap_netlogon_15
*r
);
2802 _PUBLIC_
enum ndr_err_code
ndr_pull_nbt_cldap_netlogon_15(struct ndr_pull
*ndr
, int ndr_flags
, struct nbt_cldap_netlogon_15
*r
);
2803 _PUBLIC_
void ndr_print_nbt_cldap_netlogon_15(struct ndr_print
*ndr
, const char *name
, const struct nbt_cldap_netlogon_15
*r
);
2804 _PUBLIC_
enum ndr_err_code
ndr_push_nbt_cldap_netlogon_29(struct ndr_push
*ndr
, int ndr_flags
, const struct nbt_cldap_netlogon_29
*r
);
2805 _PUBLIC_
enum ndr_err_code
ndr_pull_nbt_cldap_netlogon_29(struct ndr_pull
*ndr
, int ndr_flags
, struct nbt_cldap_netlogon_29
*r
);
2806 _PUBLIC_
void ndr_print_nbt_cldap_netlogon_29(struct ndr_print
*ndr
, const char *name
, const struct nbt_cldap_netlogon_29
*r
);
2807 _PUBLIC_
enum ndr_err_code
ndr_push_nbt_cldap_netlogon(struct ndr_push
*ndr
, int ndr_flags
, const union nbt_cldap_netlogon
*r
);
2808 _PUBLIC_
enum ndr_err_code
ndr_pull_nbt_cldap_netlogon(struct ndr_pull
*ndr
, int ndr_flags
, union nbt_cldap_netlogon
*r
);
2809 _PUBLIC_
void ndr_print_nbt_cldap_netlogon(struct ndr_print
*ndr
, const char *name
, const union nbt_cldap_netlogon
*r
);
2810 _PUBLIC_
void ndr_print_nbt_ntlogon_command(struct ndr_print
*ndr
, const char *name
, enum nbt_ntlogon_command r
);
2811 _PUBLIC_
void ndr_print_nbt_ntlogon_sam_logon(struct ndr_print
*ndr
, const char *name
, const struct nbt_ntlogon_sam_logon
*r
);
2812 _PUBLIC_
void ndr_print_nbt_ntlogon_sam_logon_reply(struct ndr_print
*ndr
, const char *name
, const struct nbt_ntlogon_sam_logon_reply
*r
);
2813 _PUBLIC_
void ndr_print_nbt_ntlogon_request(struct ndr_print
*ndr
, const char *name
, const union nbt_ntlogon_request
*r
);
2814 _PUBLIC_
enum ndr_err_code
ndr_push_nbt_ntlogon_packet(struct ndr_push
*ndr
, int ndr_flags
, const struct nbt_ntlogon_packet
*r
);
2815 _PUBLIC_
enum ndr_err_code
ndr_pull_nbt_ntlogon_packet(struct ndr_pull
*ndr
, int ndr_flags
, struct nbt_ntlogon_packet
*r
);
2816 _PUBLIC_
void ndr_print_nbt_ntlogon_packet(struct ndr_print
*ndr
, const char *name
, const struct nbt_ntlogon_packet
*r
);
2817 _PUBLIC_
void ndr_print_nbt_browse_opcode(struct ndr_print
*ndr
, const char *name
, enum nbt_browse_opcode r
);
2818 _PUBLIC_
void ndr_print_nbt_browse_host_announcement(struct ndr_print
*ndr
, const char *name
, const struct nbt_browse_host_announcement
*r
);
2819 _PUBLIC_
void ndr_print_nbt_browse_announcement_request(struct ndr_print
*ndr
, const char *name
, const struct nbt_browse_announcement_request
*r
);
2820 _PUBLIC_
void ndr_print_nbt_browse_election_request(struct ndr_print
*ndr
, const char *name
, const struct nbt_browse_election_request
*r
);
2821 _PUBLIC_
void ndr_print_nbt_browse_backup_list_request(struct ndr_print
*ndr
, const char *name
, const struct nbt_browse_backup_list_request
*r
);
2822 _PUBLIC_
void ndr_print_nbt_browse_backup_list_response(struct ndr_print
*ndr
, const char *name
, const struct nbt_browse_backup_list_response
*r
);
2823 _PUBLIC_
void ndr_print_nbt_browse_become_backup(struct ndr_print
*ndr
, const char *name
, const struct nbt_browse_become_backup
*r
);
2824 _PUBLIC_
void ndr_print_nbt_browse_domain_announcement(struct ndr_print
*ndr
, const char *name
, const struct nbt_browse_domain_announcement
*r
);
2825 _PUBLIC_
void ndr_print_nbt_browse_master_announcement(struct ndr_print
*ndr
, const char *name
, const struct nbt_browse_master_announcement
*r
);
2826 _PUBLIC_
void ndr_print_nbt_browse_reset_state(struct ndr_print
*ndr
, const char *name
, const struct nbt_browse_reset_state
*r
);
2827 _PUBLIC_
void ndr_print_nbt_browse_local_master_announcement(struct ndr_print
*ndr
, const char *name
, const struct nbt_browse_local_master_announcement
*r
);
2828 _PUBLIC_
void ndr_print_nbt_browse_payload(struct ndr_print
*ndr
, const char *name
, const union nbt_browse_payload
*r
);
2829 _PUBLIC_
enum ndr_err_code
ndr_push_nbt_browse_packet(struct ndr_push
*ndr
, int ndr_flags
, const struct nbt_browse_packet
*r
);
2830 _PUBLIC_
enum ndr_err_code
ndr_pull_nbt_browse_packet(struct ndr_pull
*ndr
, int ndr_flags
, struct nbt_browse_packet
*r
);
2831 _PUBLIC_
void ndr_print_nbt_browse_packet(struct ndr_print
*ndr
, const char *name
, const struct nbt_browse_packet
*r
);
2833 /* The following definitions come from librpc/gen_ndr/ndr_netlogon.c */
2835 _PUBLIC_
void ndr_print_netr_UasInfo(struct ndr_print
*ndr
, const char *name
, const struct netr_UasInfo
*r
);
2836 _PUBLIC_
void ndr_print_netr_UasLogoffInfo(struct ndr_print
*ndr
, const char *name
, const struct netr_UasLogoffInfo
*r
);
2837 _PUBLIC_
enum ndr_err_code
ndr_push_netr_AcctLockStr(struct ndr_push
*ndr
, int ndr_flags
, const struct netr_AcctLockStr
*r
);
2838 _PUBLIC_
enum ndr_err_code
ndr_pull_netr_AcctLockStr(struct ndr_pull
*ndr
, int ndr_flags
, struct netr_AcctLockStr
*r
);
2839 _PUBLIC_
void ndr_print_netr_AcctLockStr(struct ndr_print
*ndr
, const char *name
, const struct netr_AcctLockStr
*r
);
2840 _PUBLIC_
enum ndr_err_code
ndr_push_netr_LogonParameterControl(struct ndr_push
*ndr
, int ndr_flags
, uint32_t r
);
2841 _PUBLIC_
enum ndr_err_code
ndr_pull_netr_LogonParameterControl(struct ndr_pull
*ndr
, int ndr_flags
, uint32_t *r
);
2842 _PUBLIC_
void ndr_print_netr_LogonParameterControl(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
2843 _PUBLIC_
void ndr_print_netr_IdentityInfo(struct ndr_print
*ndr
, const char *name
, const struct netr_IdentityInfo
*r
);
2844 _PUBLIC_
void ndr_print_netr_PasswordInfo(struct ndr_print
*ndr
, const char *name
, const struct netr_PasswordInfo
*r
);
2845 _PUBLIC_
void ndr_print_netr_ChallengeResponse(struct ndr_print
*ndr
, const char *name
, const struct netr_ChallengeResponse
*r
);
2846 _PUBLIC_
void ndr_print_netr_NetworkInfo(struct ndr_print
*ndr
, const char *name
, const struct netr_NetworkInfo
*r
);
2847 _PUBLIC_
enum ndr_err_code
ndr_push_netr_LogonInfo(struct ndr_push
*ndr
, int ndr_flags
, const union netr_LogonInfo
*r
);
2848 _PUBLIC_
enum ndr_err_code
ndr_pull_netr_LogonInfo(struct ndr_pull
*ndr
, int ndr_flags
, union netr_LogonInfo
*r
);
2849 _PUBLIC_
void ndr_print_netr_LogonInfo(struct ndr_print
*ndr
, const char *name
, const union netr_LogonInfo
*r
);
2850 _PUBLIC_
enum ndr_err_code
ndr_push_netr_UserSessionKey(struct ndr_push
*ndr
, int ndr_flags
, const struct netr_UserSessionKey
*r
);
2851 _PUBLIC_
enum ndr_err_code
ndr_pull_netr_UserSessionKey(struct ndr_pull
*ndr
, int ndr_flags
, struct netr_UserSessionKey
*r
);
2852 _PUBLIC_
void ndr_print_netr_UserSessionKey(struct ndr_print
*ndr
, const char *name
, const struct netr_UserSessionKey
*r
);
2853 _PUBLIC_
enum ndr_err_code
ndr_push_netr_LMSessionKey(struct ndr_push
*ndr
, int ndr_flags
, const struct netr_LMSessionKey
*r
);
2854 _PUBLIC_
enum ndr_err_code
ndr_pull_netr_LMSessionKey(struct ndr_pull
*ndr
, int ndr_flags
, struct netr_LMSessionKey
*r
);
2855 _PUBLIC_
void ndr_print_netr_LMSessionKey(struct ndr_print
*ndr
, const char *name
, const struct netr_LMSessionKey
*r
);
2856 _PUBLIC_
enum ndr_err_code
ndr_push_netr_UserFlags(struct ndr_push
*ndr
, int ndr_flags
, uint32_t r
);
2857 _PUBLIC_
enum ndr_err_code
ndr_pull_netr_UserFlags(struct ndr_pull
*ndr
, int ndr_flags
, uint32_t *r
);
2858 _PUBLIC_
void ndr_print_netr_UserFlags(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
2859 _PUBLIC_
void ndr_print_netr_SamBaseInfo(struct ndr_print
*ndr
, const char *name
, const struct netr_SamBaseInfo
*r
);
2860 _PUBLIC_
void ndr_print_netr_SamInfo2(struct ndr_print
*ndr
, const char *name
, const struct netr_SamInfo2
*r
);
2861 _PUBLIC_
void ndr_print_netr_SidAttr(struct ndr_print
*ndr
, const char *name
, const struct netr_SidAttr
*r
);
2862 _PUBLIC_
enum ndr_err_code
ndr_push_netr_SamInfo3(struct ndr_push
*ndr
, int ndr_flags
, const struct netr_SamInfo3
*r
);
2863 _PUBLIC_
enum ndr_err_code
ndr_pull_netr_SamInfo3(struct ndr_pull
*ndr
, int ndr_flags
, struct netr_SamInfo3
*r
);
2864 _PUBLIC_
void ndr_print_netr_SamInfo3(struct ndr_print
*ndr
, const char *name
, const struct netr_SamInfo3
*r
);
2865 _PUBLIC_
void ndr_print_netr_SamInfo6(struct ndr_print
*ndr
, const char *name
, const struct netr_SamInfo6
*r
);
2866 _PUBLIC_
void ndr_print_netr_PacInfo(struct ndr_print
*ndr
, const char *name
, const struct netr_PacInfo
*r
);
2867 _PUBLIC_
enum ndr_err_code
ndr_push_netr_Validation(struct ndr_push
*ndr
, int ndr_flags
, const union netr_Validation
*r
);
2868 _PUBLIC_
enum ndr_err_code
ndr_pull_netr_Validation(struct ndr_pull
*ndr
, int ndr_flags
, union netr_Validation
*r
);
2869 _PUBLIC_
void ndr_print_netr_Validation(struct ndr_print
*ndr
, const char *name
, const union netr_Validation
*r
);
2870 _PUBLIC_
enum ndr_err_code
ndr_push_netr_Credential(struct ndr_push
*ndr
, int ndr_flags
, const struct netr_Credential
*r
);
2871 _PUBLIC_
enum ndr_err_code
ndr_pull_netr_Credential(struct ndr_pull
*ndr
, int ndr_flags
, struct netr_Credential
*r
);
2872 _PUBLIC_
void ndr_print_netr_Credential(struct ndr_print
*ndr
, const char *name
, const struct netr_Credential
*r
);
2873 _PUBLIC_
enum ndr_err_code
ndr_push_netr_Authenticator(struct ndr_push
*ndr
, int ndr_flags
, const struct netr_Authenticator
*r
);
2874 _PUBLIC_
enum ndr_err_code
ndr_pull_netr_Authenticator(struct ndr_pull
*ndr
, int ndr_flags
, struct netr_Authenticator
*r
);
2875 _PUBLIC_
void ndr_print_netr_Authenticator(struct ndr_print
*ndr
, const char *name
, const struct netr_Authenticator
*r
);
2876 _PUBLIC_
void ndr_print_netr_LogonLevel(struct ndr_print
*ndr
, const char *name
, enum netr_LogonLevel r
);
2877 _PUBLIC_
void ndr_print_netr_DELTA_DELETE_USER(struct ndr_print
*ndr
, const char *name
, const struct netr_DELTA_DELETE_USER
*r
);
2878 _PUBLIC_
void ndr_print_netr_USER_KEY16(struct ndr_print
*ndr
, const char *name
, const struct netr_USER_KEY16
*r
);
2879 _PUBLIC_
void ndr_print_netr_PasswordHistory(struct ndr_print
*ndr
, const char *name
, const struct netr_PasswordHistory
*r
);
2880 _PUBLIC_
void ndr_print_netr_USER_KEYS2(struct ndr_print
*ndr
, const char *name
, const struct netr_USER_KEYS2
*r
);
2881 _PUBLIC_
void ndr_print_netr_USER_KEY_UNION(struct ndr_print
*ndr
, const char *name
, const struct netr_USER_KEY_UNION
*r
);
2882 _PUBLIC_
enum ndr_err_code
ndr_push_netr_USER_KEYS(struct ndr_push
*ndr
, int ndr_flags
, const struct netr_USER_KEYS
*r
);
2883 _PUBLIC_
enum ndr_err_code
ndr_pull_netr_USER_KEYS(struct ndr_pull
*ndr
, int ndr_flags
, struct netr_USER_KEYS
*r
);
2884 _PUBLIC_
void ndr_print_netr_USER_KEYS(struct ndr_print
*ndr
, const char *name
, const struct netr_USER_KEYS
*r
);
2885 _PUBLIC_
void ndr_print_netr_USER_PRIVATE_INFO(struct ndr_print
*ndr
, const char *name
, const struct netr_USER_PRIVATE_INFO
*r
);
2886 _PUBLIC_
void ndr_print_netr_DELTA_USER(struct ndr_print
*ndr
, const char *name
, const struct netr_DELTA_USER
*r
);
2887 _PUBLIC_
void ndr_print_netr_DELTA_DOMAIN(struct ndr_print
*ndr
, const char *name
, const struct netr_DELTA_DOMAIN
*r
);
2888 _PUBLIC_
void ndr_print_netr_DELTA_GROUP(struct ndr_print
*ndr
, const char *name
, const struct netr_DELTA_GROUP
*r
);
2889 _PUBLIC_
void ndr_print_netr_DELTA_RENAME(struct ndr_print
*ndr
, const char *name
, const struct netr_DELTA_RENAME
*r
);
2890 _PUBLIC_
void ndr_print_netr_DELTA_GROUP_MEMBER(struct ndr_print
*ndr
, const char *name
, const struct netr_DELTA_GROUP_MEMBER
*r
);
2891 _PUBLIC_
void ndr_print_netr_DELTA_ALIAS(struct ndr_print
*ndr
, const char *name
, const struct netr_DELTA_ALIAS
*r
);
2892 _PUBLIC_
void ndr_print_netr_DELTA_ALIAS_MEMBER(struct ndr_print
*ndr
, const char *name
, const struct netr_DELTA_ALIAS_MEMBER
*r
);
2893 _PUBLIC_
void ndr_print_netr_QUOTA_LIMITS(struct ndr_print
*ndr
, const char *name
, const struct netr_QUOTA_LIMITS
*r
);
2894 _PUBLIC_
void ndr_print_netr_DELTA_POLICY(struct ndr_print
*ndr
, const char *name
, const struct netr_DELTA_POLICY
*r
);
2895 _PUBLIC_
void ndr_print_netr_DELTA_TRUSTED_DOMAIN(struct ndr_print
*ndr
, const char *name
, const struct netr_DELTA_TRUSTED_DOMAIN
*r
);
2896 _PUBLIC_
void ndr_print_netr_DELTA_DELETE_TRUST(struct ndr_print
*ndr
, const char *name
, const struct netr_DELTA_DELETE_TRUST
*r
);
2897 _PUBLIC_
void ndr_print_netr_DELTA_ACCOUNT(struct ndr_print
*ndr
, const char *name
, const struct netr_DELTA_ACCOUNT
*r
);
2898 _PUBLIC_
void ndr_print_netr_DELTA_DELETE_ACCOUNT(struct ndr_print
*ndr
, const char *name
, const struct netr_DELTA_DELETE_ACCOUNT
*r
);
2899 _PUBLIC_
void ndr_print_netr_DELTA_DELETE_SECRET(struct ndr_print
*ndr
, const char *name
, const struct netr_DELTA_DELETE_SECRET
*r
);
2900 _PUBLIC_
void ndr_print_netr_CIPHER_VALUE(struct ndr_print
*ndr
, const char *name
, const struct netr_CIPHER_VALUE
*r
);
2901 _PUBLIC_
void ndr_print_netr_DELTA_SECRET(struct ndr_print
*ndr
, const char *name
, const struct netr_DELTA_SECRET
*r
);
2902 _PUBLIC_
void ndr_print_netr_DeltaEnum(struct ndr_print
*ndr
, const char *name
, enum netr_DeltaEnum r
);
2903 _PUBLIC_
void ndr_print_netr_DELTA_UNION(struct ndr_print
*ndr
, const char *name
, const union netr_DELTA_UNION
*r
);
2904 _PUBLIC_
void ndr_print_netr_DELTA_ID_UNION(struct ndr_print
*ndr
, const char *name
, const union netr_DELTA_ID_UNION
*r
);
2905 _PUBLIC_
void ndr_print_netr_DELTA_ENUM(struct ndr_print
*ndr
, const char *name
, const struct netr_DELTA_ENUM
*r
);
2906 _PUBLIC_
void ndr_print_netr_DELTA_ENUM_ARRAY(struct ndr_print
*ndr
, const char *name
, const struct netr_DELTA_ENUM_ARRAY
*r
);
2907 _PUBLIC_
void ndr_print_netr_UAS_INFO_0(struct ndr_print
*ndr
, const char *name
, const struct netr_UAS_INFO_0
*r
);
2908 _PUBLIC_
void ndr_print_netr_AccountBuffer(struct ndr_print
*ndr
, const char *name
, const struct netr_AccountBuffer
*r
);
2909 _PUBLIC_
void ndr_print_netr_InfoFlags(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
2910 _PUBLIC_
void ndr_print_netr_NETLOGON_INFO_1(struct ndr_print
*ndr
, const char *name
, const struct netr_NETLOGON_INFO_1
*r
);
2911 _PUBLIC_
void ndr_print_netr_NETLOGON_INFO_2(struct ndr_print
*ndr
, const char *name
, const struct netr_NETLOGON_INFO_2
*r
);
2912 _PUBLIC_
void ndr_print_netr_NETLOGON_INFO_3(struct ndr_print
*ndr
, const char *name
, const struct netr_NETLOGON_INFO_3
*r
);
2913 _PUBLIC_
void ndr_print_netr_CONTROL_QUERY_INFORMATION(struct ndr_print
*ndr
, const char *name
, const union netr_CONTROL_QUERY_INFORMATION
*r
);
2914 _PUBLIC_
void ndr_print_netr_LogonControlCode(struct ndr_print
*ndr
, const char *name
, enum netr_LogonControlCode r
);
2915 _PUBLIC_
void ndr_print_netr_CONTROL_DATA_INFORMATION(struct ndr_print
*ndr
, const char *name
, const union netr_CONTROL_DATA_INFORMATION
*r
);
2916 _PUBLIC_
void ndr_print_netr_NegotiateFlags(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
2917 _PUBLIC_
void ndr_print_netr_Blob(struct ndr_print
*ndr
, const char *name
, const struct netr_Blob
*r
);
2918 _PUBLIC_
void ndr_print_netr_DsRGetDCName_flags(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
2919 _PUBLIC_
void ndr_print_netr_DsRGetDCNameInfo_AddressType(struct ndr_print
*ndr
, const char *name
, enum netr_DsRGetDCNameInfo_AddressType r
);
2920 _PUBLIC_
void ndr_print_netr_DsR_DcFlags(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
2921 _PUBLIC_
enum ndr_err_code
ndr_push_netr_DsRGetDCNameInfo(struct ndr_push
*ndr
, int ndr_flags
, const struct netr_DsRGetDCNameInfo
*r
);
2922 _PUBLIC_
enum ndr_err_code
ndr_pull_netr_DsRGetDCNameInfo(struct ndr_pull
*ndr
, int ndr_flags
, struct netr_DsRGetDCNameInfo
*r
);
2923 _PUBLIC_
void ndr_print_netr_DsRGetDCNameInfo(struct ndr_print
*ndr
, const char *name
, const struct netr_DsRGetDCNameInfo
*r
);
2924 _PUBLIC_
void ndr_print_netr_BinaryString(struct ndr_print
*ndr
, const char *name
, const struct netr_BinaryString
*r
);
2925 _PUBLIC_
void ndr_print_netr_DomainQuery1(struct ndr_print
*ndr
, const char *name
, const struct netr_DomainQuery1
*r
);
2926 _PUBLIC_
void ndr_print_netr_DomainQuery(struct ndr_print
*ndr
, const char *name
, const union netr_DomainQuery
*r
);
2927 _PUBLIC_
void ndr_print_netr_DomainTrustInfo(struct ndr_print
*ndr
, const char *name
, const struct netr_DomainTrustInfo
*r
);
2928 _PUBLIC_
void ndr_print_netr_DomainInfo1(struct ndr_print
*ndr
, const char *name
, const struct netr_DomainInfo1
*r
);
2929 _PUBLIC_
void ndr_print_netr_DomainInfo(struct ndr_print
*ndr
, const char *name
, const union netr_DomainInfo
*r
);
2930 _PUBLIC_
void ndr_print_netr_CryptPassword(struct ndr_print
*ndr
, const char *name
, const struct netr_CryptPassword
*r
);
2931 _PUBLIC_
void ndr_print_netr_DsRAddressToSitenamesWCtr(struct ndr_print
*ndr
, const char *name
, const struct netr_DsRAddressToSitenamesWCtr
*r
);
2932 _PUBLIC_
void ndr_print_netr_DsRAddress(struct ndr_print
*ndr
, const char *name
, const struct netr_DsRAddress
*r
);
2933 _PUBLIC_
void ndr_print_netr_TrustFlags(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
2934 _PUBLIC_
void ndr_print_netr_TrustType(struct ndr_print
*ndr
, const char *name
, enum netr_TrustType r
);
2935 _PUBLIC_
void ndr_print_netr_TrustAttributes(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
2936 _PUBLIC_
void ndr_print_netr_DomainTrust(struct ndr_print
*ndr
, const char *name
, const struct netr_DomainTrust
*r
);
2937 _PUBLIC_
void ndr_print_netr_DomainTrustList(struct ndr_print
*ndr
, const char *name
, const struct netr_DomainTrustList
*r
);
2938 _PUBLIC_
void ndr_print_netr_DsRAddressToSitenamesExWCtr(struct ndr_print
*ndr
, const char *name
, const struct netr_DsRAddressToSitenamesExWCtr
*r
);
2939 _PUBLIC_
void ndr_print_DcSitesCtr(struct ndr_print
*ndr
, const char *name
, const struct DcSitesCtr
*r
);
2940 _PUBLIC_
void ndr_print_netr_LogonUasLogon(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_LogonUasLogon
*r
);
2941 _PUBLIC_
void ndr_print_netr_LogonUasLogoff(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_LogonUasLogoff
*r
);
2942 _PUBLIC_
void ndr_print_netr_LogonSamLogon(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_LogonSamLogon
*r
);
2943 _PUBLIC_
void ndr_print_netr_LogonSamLogoff(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_LogonSamLogoff
*r
);
2944 _PUBLIC_
void ndr_print_netr_ServerReqChallenge(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_ServerReqChallenge
*r
);
2945 _PUBLIC_
void ndr_print_netr_ServerAuthenticate(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_ServerAuthenticate
*r
);
2946 _PUBLIC_
void ndr_print_netr_ServerPasswordSet(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_ServerPasswordSet
*r
);
2947 _PUBLIC_
void ndr_print_netr_DatabaseDeltas(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_DatabaseDeltas
*r
);
2948 _PUBLIC_
void ndr_print_netr_DatabaseSync(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_DatabaseSync
*r
);
2949 _PUBLIC_
void ndr_print_netr_AccountDeltas(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_AccountDeltas
*r
);
2950 _PUBLIC_
void ndr_print_netr_AccountSync(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_AccountSync
*r
);
2951 _PUBLIC_
void ndr_print_netr_GetDcName(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_GetDcName
*r
);
2952 _PUBLIC_
void ndr_print_netr_LogonControl(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_LogonControl
*r
);
2953 _PUBLIC_
void ndr_print_netr_GetAnyDCName(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_GetAnyDCName
*r
);
2954 _PUBLIC_
void ndr_print_netr_LogonControl2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_LogonControl2
*r
);
2955 _PUBLIC_
void ndr_print_netr_ServerAuthenticate2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_ServerAuthenticate2
*r
);
2956 _PUBLIC_
void ndr_print_netr_DatabaseSync2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_DatabaseSync2
*r
);
2957 _PUBLIC_
void ndr_print_netr_DatabaseRedo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_DatabaseRedo
*r
);
2958 _PUBLIC_
void ndr_print_netr_LogonControl2Ex(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_LogonControl2Ex
*r
);
2959 _PUBLIC_
void ndr_print_netr_NetrEnumerateTrustedDomains(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_NetrEnumerateTrustedDomains
*r
);
2960 _PUBLIC_
void ndr_print_netr_DsRGetDCName(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_DsRGetDCName
*r
);
2961 _PUBLIC_
void ndr_print_netr_NETRLOGONDUMMYROUTINE1(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_NETRLOGONDUMMYROUTINE1
*r
);
2962 _PUBLIC_
void ndr_print_netr_NETRLOGONSETSERVICEBITS(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_NETRLOGONSETSERVICEBITS
*r
);
2963 _PUBLIC_
void ndr_print_netr_LogonGetTrustRid(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_LogonGetTrustRid
*r
);
2964 _PUBLIC_
void ndr_print_netr_NETRLOGONCOMPUTESERVERDIGEST(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_NETRLOGONCOMPUTESERVERDIGEST
*r
);
2965 _PUBLIC_
void ndr_print_netr_NETRLOGONCOMPUTECLIENTDIGEST(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_NETRLOGONCOMPUTECLIENTDIGEST
*r
);
2966 _PUBLIC_
void ndr_print_netr_ServerAuthenticate3(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_ServerAuthenticate3
*r
);
2967 _PUBLIC_
void ndr_print_netr_DsRGetDCNameEx(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_DsRGetDCNameEx
*r
);
2968 _PUBLIC_
void ndr_print_netr_DsRGetSiteName(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_DsRGetSiteName
*r
);
2969 _PUBLIC_
void ndr_print_netr_LogonGetDomainInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_LogonGetDomainInfo
*r
);
2970 _PUBLIC_
void ndr_print_netr_ServerPasswordSet2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_ServerPasswordSet2
*r
);
2971 _PUBLIC_
void ndr_print_netr_ServerPasswordGet(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_ServerPasswordGet
*r
);
2972 _PUBLIC_
void ndr_print_netr_NETRLOGONSENDTOSAM(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_NETRLOGONSENDTOSAM
*r
);
2973 _PUBLIC_
void ndr_print_netr_DsRAddressToSitenamesW(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_DsRAddressToSitenamesW
*r
);
2974 _PUBLIC_
void ndr_print_netr_DsRGetDCNameEx2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_DsRGetDCNameEx2
*r
);
2975 _PUBLIC_
void ndr_print_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN
*r
);
2976 _PUBLIC_
void ndr_print_netr_NetrEnumerateTrustedDomainsEx(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_NetrEnumerateTrustedDomainsEx
*r
);
2977 _PUBLIC_
void ndr_print_netr_DsRAddressToSitenamesExW(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_DsRAddressToSitenamesExW
*r
);
2978 _PUBLIC_
void ndr_print_netr_DsrGetDcSiteCoverageW(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_DsrGetDcSiteCoverageW
*r
);
2979 _PUBLIC_
void ndr_print_netr_LogonSamLogonEx(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_LogonSamLogonEx
*r
);
2980 _PUBLIC_
void ndr_print_netr_DsrEnumerateDomainTrusts(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_DsrEnumerateDomainTrusts
*r
);
2981 _PUBLIC_
void ndr_print_netr_DsrDeregisterDNSHostRecords(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_DsrDeregisterDNSHostRecords
*r
);
2982 _PUBLIC_
void ndr_print_netr_ServerTrustPasswordsGet(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_ServerTrustPasswordsGet
*r
);
2983 _PUBLIC_
void ndr_print_netr_DsRGetForestTrustInformation(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_DsRGetForestTrustInformation
*r
);
2984 _PUBLIC_
void ndr_print_netr_GetForestTrustInformation(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_GetForestTrustInformation
*r
);
2985 _PUBLIC_
void ndr_print_netr_LogonSamLogonWithFlags(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_LogonSamLogonWithFlags
*r
);
2986 _PUBLIC_
void ndr_print_netr_NETRSERVERGETTRUSTINFO(struct ndr_print
*ndr
, const char *name
, int flags
, const struct netr_NETRSERVERGETTRUSTINFO
*r
);
2988 /* The following definitions come from librpc/gen_ndr/ndr_notify.c */
2990 _PUBLIC_
enum ndr_err_code
ndr_push_notify_entry(struct ndr_push
*ndr
, int ndr_flags
, const struct notify_entry
*r
);
2991 _PUBLIC_
enum ndr_err_code
ndr_pull_notify_entry(struct ndr_pull
*ndr
, int ndr_flags
, struct notify_entry
*r
);
2992 _PUBLIC_
void ndr_print_notify_entry(struct ndr_print
*ndr
, const char *name
, const struct notify_entry
*r
);
2993 _PUBLIC_
void ndr_print_notify_depth(struct ndr_print
*ndr
, const char *name
, const struct notify_depth
*r
);
2994 _PUBLIC_
enum ndr_err_code
ndr_push_notify_array(struct ndr_push
*ndr
, int ndr_flags
, const struct notify_array
*r
);
2995 _PUBLIC_
enum ndr_err_code
ndr_pull_notify_array(struct ndr_pull
*ndr
, int ndr_flags
, struct notify_array
*r
);
2996 _PUBLIC_
void ndr_print_notify_array(struct ndr_print
*ndr
, const char *name
, const struct notify_array
*r
);
2997 _PUBLIC_
enum ndr_err_code
ndr_push_notify_event(struct ndr_push
*ndr
, int ndr_flags
, const struct notify_event
*r
);
2998 _PUBLIC_
enum ndr_err_code
ndr_pull_notify_event(struct ndr_pull
*ndr
, int ndr_flags
, struct notify_event
*r
);
2999 _PUBLIC_
void ndr_print_notify_event(struct ndr_print
*ndr
, const char *name
, const struct notify_event
*r
);
3001 /* The following definitions come from librpc/gen_ndr/ndr_ntsvcs.c */
3003 _PUBLIC_
void ndr_print_PNP_HwProfInfo(struct ndr_print
*ndr
, const char *name
, const struct PNP_HwProfInfo
*r
);
3004 _PUBLIC_
void ndr_print_PNP_Disconnect(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_Disconnect
*r
);
3005 _PUBLIC_
void ndr_print_PNP_Connect(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_Connect
*r
);
3006 _PUBLIC_
void ndr_print_PNP_GetVersion(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetVersion
*r
);
3007 _PUBLIC_
void ndr_print_PNP_GetGlobalState(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetGlobalState
*r
);
3008 _PUBLIC_
void ndr_print_PNP_InitDetection(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_InitDetection
*r
);
3009 _PUBLIC_
void ndr_print_PNP_ReportLogOn(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_ReportLogOn
*r
);
3010 _PUBLIC_
void ndr_print_PNP_ValidateDeviceInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_ValidateDeviceInstance
*r
);
3011 _PUBLIC_
void ndr_print_PNP_GetRootDeviceInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetRootDeviceInstance
*r
);
3012 _PUBLIC_
void ndr_print_PNP_GetRelatedDeviceInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetRelatedDeviceInstance
*r
);
3013 _PUBLIC_
void ndr_print_PNP_EnumerateSubKeys(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_EnumerateSubKeys
*r
);
3014 _PUBLIC_
void ndr_print_PNP_GetDeviceList(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceList
*r
);
3015 _PUBLIC_
void ndr_print_PNP_GetDeviceListSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceListSize
*r
);
3016 _PUBLIC_
void ndr_print_PNP_GetDepth(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDepth
*r
);
3017 _PUBLIC_
void ndr_print_PNP_GetDeviceRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceRegProp
*r
);
3018 _PUBLIC_
void ndr_print_PNP_SetDeviceRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetDeviceRegProp
*r
);
3019 _PUBLIC_
void ndr_print_PNP_GetClassInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassInstance
*r
);
3020 _PUBLIC_
void ndr_print_PNP_CreateKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_CreateKey
*r
);
3021 _PUBLIC_
void ndr_print_PNP_DeleteRegistryKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DeleteRegistryKey
*r
);
3022 _PUBLIC_
void ndr_print_PNP_GetClassCount(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassCount
*r
);
3023 _PUBLIC_
void ndr_print_PNP_GetClassName(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassName
*r
);
3024 _PUBLIC_
void ndr_print_PNP_DeleteClassKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DeleteClassKey
*r
);
3025 _PUBLIC_
void ndr_print_PNP_GetInterfaceDeviceAlias(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetInterfaceDeviceAlias
*r
);
3026 _PUBLIC_
void ndr_print_PNP_GetInterfaceDeviceList(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetInterfaceDeviceList
*r
);
3027 _PUBLIC_
void ndr_print_PNP_GetInterfaceDeviceListSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetInterfaceDeviceListSize
*r
);
3028 _PUBLIC_
void ndr_print_PNP_RegisterDeviceClassAssociation(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RegisterDeviceClassAssociation
*r
);
3029 _PUBLIC_
void ndr_print_PNP_UnregisterDeviceClassAssociation(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_UnregisterDeviceClassAssociation
*r
);
3030 _PUBLIC_
void ndr_print_PNP_GetClassRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassRegProp
*r
);
3031 _PUBLIC_
void ndr_print_PNP_SetClassRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetClassRegProp
*r
);
3032 _PUBLIC_
void ndr_print_PNP_CreateDevInst(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_CreateDevInst
*r
);
3033 _PUBLIC_
void ndr_print_PNP_DeviceInstanceAction(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DeviceInstanceAction
*r
);
3034 _PUBLIC_
void ndr_print_PNP_GetDeviceStatus(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceStatus
*r
);
3035 _PUBLIC_
void ndr_print_PNP_SetDeviceProblem(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetDeviceProblem
*r
);
3036 _PUBLIC_
void ndr_print_PNP_DisableDevInst(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DisableDevInst
*r
);
3037 _PUBLIC_
void ndr_print_PNP_UninstallDevInst(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_UninstallDevInst
*r
);
3038 _PUBLIC_
void ndr_print_PNP_AddID(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_AddID
*r
);
3039 _PUBLIC_
void ndr_print_PNP_RegisterDriver(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RegisterDriver
*r
);
3040 _PUBLIC_
void ndr_print_PNP_QueryRemove(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryRemove
*r
);
3041 _PUBLIC_
void ndr_print_PNP_RequestDeviceEject(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RequestDeviceEject
*r
);
3042 _PUBLIC_
void ndr_print_PNP_IsDockStationPresent(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_IsDockStationPresent
*r
);
3043 _PUBLIC_
void ndr_print_PNP_RequestEjectPC(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RequestEjectPC
*r
);
3044 _PUBLIC_
void ndr_print_PNP_HwProfFlags(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_HwProfFlags
*r
);
3045 _PUBLIC_
void ndr_print_PNP_GetHwProfInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetHwProfInfo
*r
);
3046 _PUBLIC_
void ndr_print_PNP_AddEmptyLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_AddEmptyLogConf
*r
);
3047 _PUBLIC_
void ndr_print_PNP_FreeLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_FreeLogConf
*r
);
3048 _PUBLIC_
void ndr_print_PNP_GetFirstLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetFirstLogConf
*r
);
3049 _PUBLIC_
void ndr_print_PNP_GetNextLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetNextLogConf
*r
);
3050 _PUBLIC_
void ndr_print_PNP_GetLogConfPriority(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetLogConfPriority
*r
);
3051 _PUBLIC_
void ndr_print_PNP_AddResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_AddResDes
*r
);
3052 _PUBLIC_
void ndr_print_PNP_FreeResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_FreeResDes
*r
);
3053 _PUBLIC_
void ndr_print_PNP_GetNextResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetNextResDes
*r
);
3054 _PUBLIC_
void ndr_print_PNP_GetResDesData(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetResDesData
*r
);
3055 _PUBLIC_
void ndr_print_PNP_GetResDesDataSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetResDesDataSize
*r
);
3056 _PUBLIC_
void ndr_print_PNP_ModifyResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_ModifyResDes
*r
);
3057 _PUBLIC_
void ndr_print_PNP_DetectResourceLimit(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DetectResourceLimit
*r
);
3058 _PUBLIC_
void ndr_print_PNP_QueryResConfList(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryResConfList
*r
);
3059 _PUBLIC_
void ndr_print_PNP_SetHwProf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetHwProf
*r
);
3060 _PUBLIC_
void ndr_print_PNP_QueryArbitratorFreeData(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryArbitratorFreeData
*r
);
3061 _PUBLIC_
void ndr_print_PNP_QueryArbitratorFreeSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryArbitratorFreeSize
*r
);
3062 _PUBLIC_
void ndr_print_PNP_RunDetection(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RunDetection
*r
);
3063 _PUBLIC_
void ndr_print_PNP_RegisterNotification(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RegisterNotification
*r
);
3064 _PUBLIC_
void ndr_print_PNP_UnregisterNotification(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_UnregisterNotification
*r
);
3065 _PUBLIC_
void ndr_print_PNP_GetCustomDevProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetCustomDevProp
*r
);
3066 _PUBLIC_
void ndr_print_PNP_GetVersionInternal(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetVersionInternal
*r
);
3067 _PUBLIC_
void ndr_print_PNP_GetBlockedDriverInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetBlockedDriverInfo
*r
);
3068 _PUBLIC_
void ndr_print_PNP_GetServerSideDeviceInstallFlags(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetServerSideDeviceInstallFlags
*r
);
3070 /* The following definitions come from librpc/gen_ndr/ndr_samr.c */
3072 _PUBLIC_
enum ndr_err_code
ndr_push_samr_AcctFlags(struct ndr_push
*ndr
, int ndr_flags
, uint32_t r
);
3073 _PUBLIC_
enum ndr_err_code
ndr_pull_samr_AcctFlags(struct ndr_pull
*ndr
, int ndr_flags
, uint32_t *r
);
3074 _PUBLIC_
void ndr_print_samr_AcctFlags(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
3075 _PUBLIC_
void ndr_print_samr_ConnectAccessMask(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
3076 _PUBLIC_
void ndr_print_samr_UserAccessMask(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
3077 _PUBLIC_
void ndr_print_samr_DomainAccessMask(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
3078 _PUBLIC_
void ndr_print_samr_GroupAccessMask(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
3079 _PUBLIC_
void ndr_print_samr_AliasAccessMask(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
3080 _PUBLIC_
void ndr_print_samr_SamEntry(struct ndr_print
*ndr
, const char *name
, const struct samr_SamEntry
*r
);
3081 _PUBLIC_
void ndr_print_samr_SamArray(struct ndr_print
*ndr
, const char *name
, const struct samr_SamArray
*r
);
3082 _PUBLIC_
void ndr_print_samr_Role(struct ndr_print
*ndr
, const char *name
, enum samr_Role r
);
3083 _PUBLIC_
enum ndr_err_code
ndr_push_samr_PasswordProperties(struct ndr_push
*ndr
, int ndr_flags
, uint32_t r
);
3084 _PUBLIC_
enum ndr_err_code
ndr_pull_samr_PasswordProperties(struct ndr_pull
*ndr
, int ndr_flags
, uint32_t *r
);
3085 _PUBLIC_
void ndr_print_samr_PasswordProperties(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
3086 _PUBLIC_
void ndr_print_samr_DomInfo1(struct ndr_print
*ndr
, const char *name
, const struct samr_DomInfo1
*r
);
3087 _PUBLIC_
void ndr_print_samr_DomInfo2(struct ndr_print
*ndr
, const char *name
, const struct samr_DomInfo2
*r
);
3088 _PUBLIC_
void ndr_print_samr_DomInfo3(struct ndr_print
*ndr
, const char *name
, const struct samr_DomInfo3
*r
);
3089 _PUBLIC_
void ndr_print_samr_DomInfo4(struct ndr_print
*ndr
, const char *name
, const struct samr_DomInfo4
*r
);
3090 _PUBLIC_
void ndr_print_samr_DomInfo5(struct ndr_print
*ndr
, const char *name
, const struct samr_DomInfo5
*r
);
3091 _PUBLIC_
void ndr_print_samr_DomInfo6(struct ndr_print
*ndr
, const char *name
, const struct samr_DomInfo6
*r
);
3092 _PUBLIC_
void ndr_print_samr_DomInfo7(struct ndr_print
*ndr
, const char *name
, const struct samr_DomInfo7
*r
);
3093 _PUBLIC_
void ndr_print_samr_DomInfo8(struct ndr_print
*ndr
, const char *name
, const struct samr_DomInfo8
*r
);
3094 _PUBLIC_
void ndr_print_samr_DomInfo9(struct ndr_print
*ndr
, const char *name
, const struct samr_DomInfo9
*r
);
3095 _PUBLIC_
void ndr_print_samr_DomInfo11(struct ndr_print
*ndr
, const char *name
, const struct samr_DomInfo11
*r
);
3096 _PUBLIC_
void ndr_print_samr_DomInfo12(struct ndr_print
*ndr
, const char *name
, const struct samr_DomInfo12
*r
);
3097 _PUBLIC_
void ndr_print_samr_DomInfo13(struct ndr_print
*ndr
, const char *name
, const struct samr_DomInfo13
*r
);
3098 _PUBLIC_
void ndr_print_samr_DomainInfo(struct ndr_print
*ndr
, const char *name
, const union samr_DomainInfo
*r
);
3099 _PUBLIC_
void ndr_print_samr_Ids(struct ndr_print
*ndr
, const char *name
, const struct samr_Ids
*r
);
3100 _PUBLIC_
enum ndr_err_code
ndr_push_samr_GroupAttrs(struct ndr_push
*ndr
, int ndr_flags
, uint32_t r
);
3101 _PUBLIC_
enum ndr_err_code
ndr_pull_samr_GroupAttrs(struct ndr_pull
*ndr
, int ndr_flags
, uint32_t *r
);
3102 _PUBLIC_
void ndr_print_samr_GroupAttrs(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
3103 _PUBLIC_
void ndr_print_samr_GroupInfoAll(struct ndr_print
*ndr
, const char *name
, const struct samr_GroupInfoAll
*r
);
3104 _PUBLIC_
void ndr_print_samr_GroupInfoAttributes(struct ndr_print
*ndr
, const char *name
, const struct samr_GroupInfoAttributes
*r
);
3105 _PUBLIC_
void ndr_print_samr_GroupInfoEnum(struct ndr_print
*ndr
, const char *name
, enum samr_GroupInfoEnum r
);
3106 _PUBLIC_
void ndr_print_samr_GroupInfo(struct ndr_print
*ndr
, const char *name
, const union samr_GroupInfo
*r
);
3107 _PUBLIC_
void ndr_print_samr_RidTypeArray(struct ndr_print
*ndr
, const char *name
, const struct samr_RidTypeArray
*r
);
3108 _PUBLIC_
void ndr_print_samr_AliasInfoAll(struct ndr_print
*ndr
, const char *name
, const struct samr_AliasInfoAll
*r
);
3109 _PUBLIC_
void ndr_print_samr_AliasInfoEnum(struct ndr_print
*ndr
, const char *name
, enum samr_AliasInfoEnum r
);
3110 _PUBLIC_
void ndr_print_samr_AliasInfo(struct ndr_print
*ndr
, const char *name
, const union samr_AliasInfo
*r
);
3111 _PUBLIC_
void ndr_print_samr_UserInfo1(struct ndr_print
*ndr
, const char *name
, const struct samr_UserInfo1
*r
);
3112 _PUBLIC_
void ndr_print_samr_UserInfo2(struct ndr_print
*ndr
, const char *name
, const struct samr_UserInfo2
*r
);
3113 _PUBLIC_
enum ndr_err_code
ndr_push_samr_LogonHours(struct ndr_push
*ndr
, int ndr_flags
, const struct samr_LogonHours
*r
);
3114 _PUBLIC_
enum ndr_err_code
ndr_pull_samr_LogonHours(struct ndr_pull
*ndr
, int ndr_flags
, struct samr_LogonHours
*r
);
3115 _PUBLIC_
void ndr_print_samr_LogonHours(struct ndr_print
*ndr
, const char *name
, const struct samr_LogonHours
*r
);
3116 _PUBLIC_
void ndr_print_samr_UserInfo3(struct ndr_print
*ndr
, const char *name
, const struct samr_UserInfo3
*r
);
3117 _PUBLIC_
void ndr_print_samr_UserInfo4(struct ndr_print
*ndr
, const char *name
, const struct samr_UserInfo4
*r
);
3118 _PUBLIC_
void ndr_print_samr_UserInfo5(struct ndr_print
*ndr
, const char *name
, const struct samr_UserInfo5
*r
);
3119 _PUBLIC_
void ndr_print_samr_UserInfo6(struct ndr_print
*ndr
, const char *name
, const struct samr_UserInfo6
*r
);
3120 _PUBLIC_
void ndr_print_samr_UserInfo7(struct ndr_print
*ndr
, const char *name
, const struct samr_UserInfo7
*r
);
3121 _PUBLIC_
void ndr_print_samr_UserInfo8(struct ndr_print
*ndr
, const char *name
, const struct samr_UserInfo8
*r
);
3122 _PUBLIC_
void ndr_print_samr_UserInfo9(struct ndr_print
*ndr
, const char *name
, const struct samr_UserInfo9
*r
);
3123 _PUBLIC_
void ndr_print_samr_UserInfo10(struct ndr_print
*ndr
, const char *name
, const struct samr_UserInfo10
*r
);
3124 _PUBLIC_
void ndr_print_samr_UserInfo11(struct ndr_print
*ndr
, const char *name
, const struct samr_UserInfo11
*r
);
3125 _PUBLIC_
void ndr_print_samr_UserInfo12(struct ndr_print
*ndr
, const char *name
, const struct samr_UserInfo12
*r
);
3126 _PUBLIC_
void ndr_print_samr_UserInfo13(struct ndr_print
*ndr
, const char *name
, const struct samr_UserInfo13
*r
);
3127 _PUBLIC_
void ndr_print_samr_UserInfo14(struct ndr_print
*ndr
, const char *name
, const struct samr_UserInfo14
*r
);
3128 _PUBLIC_
void ndr_print_samr_UserInfo16(struct ndr_print
*ndr
, const char *name
, const struct samr_UserInfo16
*r
);
3129 _PUBLIC_
void ndr_print_samr_UserInfo17(struct ndr_print
*ndr
, const char *name
, const struct samr_UserInfo17
*r
);
3130 _PUBLIC_
enum ndr_err_code
ndr_push_samr_Password(struct ndr_push
*ndr
, int ndr_flags
, const struct samr_Password
*r
);
3131 _PUBLIC_
enum ndr_err_code
ndr_pull_samr_Password(struct ndr_pull
*ndr
, int ndr_flags
, struct samr_Password
*r
);
3132 _PUBLIC_
void ndr_print_samr_Password(struct ndr_print
*ndr
, const char *name
, const struct samr_Password
*r
);
3133 _PUBLIC_
void ndr_print_samr_UserInfo18(struct ndr_print
*ndr
, const char *name
, const struct samr_UserInfo18
*r
);
3134 _PUBLIC_
void ndr_print_samr_UserInfo20(struct ndr_print
*ndr
, const char *name
, const struct samr_UserInfo20
*r
);
3135 _PUBLIC_
void ndr_print_samr_FieldsPresent(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
3136 _PUBLIC_
void ndr_print_samr_UserInfo21(struct ndr_print
*ndr
, const char *name
, const struct samr_UserInfo21
*r
);
3137 _PUBLIC_
enum ndr_err_code
ndr_push_samr_CryptPassword(struct ndr_push
*ndr
, int ndr_flags
, const struct samr_CryptPassword
*r
);
3138 _PUBLIC_
enum ndr_err_code
ndr_pull_samr_CryptPassword(struct ndr_pull
*ndr
, int ndr_flags
, struct samr_CryptPassword
*r
);
3139 _PUBLIC_
void ndr_print_samr_CryptPassword(struct ndr_print
*ndr
, const char *name
, const struct samr_CryptPassword
*r
);
3140 _PUBLIC_
void ndr_print_samr_UserInfo23(struct ndr_print
*ndr
, const char *name
, const struct samr_UserInfo23
*r
);
3141 _PUBLIC_
void ndr_print_samr_UserInfo24(struct ndr_print
*ndr
, const char *name
, const struct samr_UserInfo24
*r
);
3142 _PUBLIC_
void ndr_print_samr_CryptPasswordEx(struct ndr_print
*ndr
, const char *name
, const struct samr_CryptPasswordEx
*r
);
3143 _PUBLIC_
void ndr_print_samr_UserInfo25(struct ndr_print
*ndr
, const char *name
, const struct samr_UserInfo25
*r
);
3144 _PUBLIC_
void ndr_print_samr_UserInfo26(struct ndr_print
*ndr
, const char *name
, const struct samr_UserInfo26
*r
);
3145 _PUBLIC_
void ndr_print_samr_UserInfo(struct ndr_print
*ndr
, const char *name
, const union samr_UserInfo
*r
);
3146 _PUBLIC_
enum ndr_err_code
ndr_push_samr_RidWithAttribute(struct ndr_push
*ndr
, int ndr_flags
, const struct samr_RidWithAttribute
*r
);
3147 _PUBLIC_
enum ndr_err_code
ndr_pull_samr_RidWithAttribute(struct ndr_pull
*ndr
, int ndr_flags
, struct samr_RidWithAttribute
*r
);
3148 _PUBLIC_
void ndr_print_samr_RidWithAttribute(struct ndr_print
*ndr
, const char *name
, const struct samr_RidWithAttribute
*r
);
3149 _PUBLIC_
enum ndr_err_code
ndr_push_samr_RidWithAttributeArray(struct ndr_push
*ndr
, int ndr_flags
, const struct samr_RidWithAttributeArray
*r
);
3150 _PUBLIC_
enum ndr_err_code
ndr_pull_samr_RidWithAttributeArray(struct ndr_pull
*ndr
, int ndr_flags
, struct samr_RidWithAttributeArray
*r
);
3151 _PUBLIC_
void ndr_print_samr_RidWithAttributeArray(struct ndr_print
*ndr
, const char *name
, const struct samr_RidWithAttributeArray
*r
);
3152 _PUBLIC_
void ndr_print_samr_DispEntryGeneral(struct ndr_print
*ndr
, const char *name
, const struct samr_DispEntryGeneral
*r
);
3153 _PUBLIC_
void ndr_print_samr_DispInfoGeneral(struct ndr_print
*ndr
, const char *name
, const struct samr_DispInfoGeneral
*r
);
3154 _PUBLIC_
void ndr_print_samr_DispEntryFull(struct ndr_print
*ndr
, const char *name
, const struct samr_DispEntryFull
*r
);
3155 _PUBLIC_
void ndr_print_samr_DispInfoFull(struct ndr_print
*ndr
, const char *name
, const struct samr_DispInfoFull
*r
);
3156 _PUBLIC_
void ndr_print_samr_DispEntryFullGroup(struct ndr_print
*ndr
, const char *name
, const struct samr_DispEntryFullGroup
*r
);
3157 _PUBLIC_
void ndr_print_samr_DispInfoFullGroups(struct ndr_print
*ndr
, const char *name
, const struct samr_DispInfoFullGroups
*r
);
3158 _PUBLIC_
void ndr_print_samr_DispEntryAscii(struct ndr_print
*ndr
, const char *name
, const struct samr_DispEntryAscii
*r
);
3159 _PUBLIC_
void ndr_print_samr_DispInfoAscii(struct ndr_print
*ndr
, const char *name
, const struct samr_DispInfoAscii
*r
);
3160 _PUBLIC_
void ndr_print_samr_DispInfo(struct ndr_print
*ndr
, const char *name
, const union samr_DispInfo
*r
);
3161 _PUBLIC_
void ndr_print_samr_PwInfo(struct ndr_print
*ndr
, const char *name
, const struct samr_PwInfo
*r
);
3162 _PUBLIC_
void ndr_print_samr_ConnectVersion(struct ndr_print
*ndr
, const char *name
, enum samr_ConnectVersion r
);
3163 _PUBLIC_
void ndr_print_samr_ChangeReject(struct ndr_print
*ndr
, const char *name
, const struct samr_ChangeReject
*r
);
3164 _PUBLIC_
void ndr_print_samr_ConnectInfo1(struct ndr_print
*ndr
, const char *name
, const struct samr_ConnectInfo1
*r
);
3165 _PUBLIC_
void ndr_print_samr_ConnectInfo(struct ndr_print
*ndr
, const char *name
, const union samr_ConnectInfo
*r
);
3166 _PUBLIC_
void ndr_print_samr_ValidateFieldsPresent(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
3167 _PUBLIC_
void ndr_print_samr_ValidatePasswordLevel(struct ndr_print
*ndr
, const char *name
, enum samr_ValidatePasswordLevel r
);
3168 _PUBLIC_
void ndr_print_samr_ValidationStatus(struct ndr_print
*ndr
, const char *name
, enum samr_ValidationStatus r
);
3169 _PUBLIC_
void ndr_print_samr_ValidationBlob(struct ndr_print
*ndr
, const char *name
, const struct samr_ValidationBlob
*r
);
3170 _PUBLIC_
void ndr_print_samr_ValidatePasswordInfo(struct ndr_print
*ndr
, const char *name
, const struct samr_ValidatePasswordInfo
*r
);
3171 _PUBLIC_
void ndr_print_samr_ValidatePasswordRepCtr(struct ndr_print
*ndr
, const char *name
, const struct samr_ValidatePasswordRepCtr
*r
);
3172 _PUBLIC_
void ndr_print_samr_ValidatePasswordRep(struct ndr_print
*ndr
, const char *name
, const union samr_ValidatePasswordRep
*r
);
3173 _PUBLIC_
void ndr_print_samr_ValidatePasswordReq3(struct ndr_print
*ndr
, const char *name
, const struct samr_ValidatePasswordReq3
*r
);
3174 _PUBLIC_
void ndr_print_samr_ValidatePasswordReq2(struct ndr_print
*ndr
, const char *name
, const struct samr_ValidatePasswordReq2
*r
);
3175 _PUBLIC_
void ndr_print_samr_ValidatePasswordReq1(struct ndr_print
*ndr
, const char *name
, const struct samr_ValidatePasswordReq1
*r
);
3176 _PUBLIC_
void ndr_print_samr_ValidatePasswordReq(struct ndr_print
*ndr
, const char *name
, const union samr_ValidatePasswordReq
*r
);
3177 _PUBLIC_
void ndr_print_samr_Connect(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_Connect
*r
);
3178 _PUBLIC_
enum ndr_err_code
ndr_push_samr_Close(struct ndr_push
*ndr
, int flags
, const struct samr_Close
*r
);
3179 _PUBLIC_
enum ndr_err_code
ndr_pull_samr_Close(struct ndr_pull
*ndr
, int flags
, struct samr_Close
*r
);
3180 _PUBLIC_
void ndr_print_samr_Close(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_Close
*r
);
3181 _PUBLIC_
void ndr_print_samr_SetSecurity(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_SetSecurity
*r
);
3182 _PUBLIC_
void ndr_print_samr_QuerySecurity(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_QuerySecurity
*r
);
3183 _PUBLIC_
void ndr_print_samr_Shutdown(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_Shutdown
*r
);
3184 _PUBLIC_
void ndr_print_samr_LookupDomain(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_LookupDomain
*r
);
3185 _PUBLIC_
void ndr_print_samr_EnumDomains(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_EnumDomains
*r
);
3186 _PUBLIC_
enum ndr_err_code
ndr_push_samr_OpenDomain(struct ndr_push
*ndr
, int flags
, const struct samr_OpenDomain
*r
);
3187 _PUBLIC_
enum ndr_err_code
ndr_pull_samr_OpenDomain(struct ndr_pull
*ndr
, int flags
, struct samr_OpenDomain
*r
);
3188 _PUBLIC_
void ndr_print_samr_OpenDomain(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_OpenDomain
*r
);
3189 _PUBLIC_
void ndr_print_samr_QueryDomainInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_QueryDomainInfo
*r
);
3190 _PUBLIC_
void ndr_print_samr_SetDomainInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_SetDomainInfo
*r
);
3191 _PUBLIC_
void ndr_print_samr_CreateDomainGroup(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_CreateDomainGroup
*r
);
3192 _PUBLIC_
void ndr_print_samr_EnumDomainGroups(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_EnumDomainGroups
*r
);
3193 _PUBLIC_
void ndr_print_samr_CreateUser(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_CreateUser
*r
);
3194 _PUBLIC_
void ndr_print_samr_EnumDomainUsers(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_EnumDomainUsers
*r
);
3195 _PUBLIC_
void ndr_print_samr_CreateDomAlias(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_CreateDomAlias
*r
);
3196 _PUBLIC_
void ndr_print_samr_EnumDomainAliases(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_EnumDomainAliases
*r
);
3197 _PUBLIC_
void ndr_print_samr_GetAliasMembership(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_GetAliasMembership
*r
);
3198 _PUBLIC_
enum ndr_err_code
ndr_push_samr_LookupNames(struct ndr_push
*ndr
, int flags
, const struct samr_LookupNames
*r
);
3199 _PUBLIC_
enum ndr_err_code
ndr_pull_samr_LookupNames(struct ndr_pull
*ndr
, int flags
, struct samr_LookupNames
*r
);
3200 _PUBLIC_
void ndr_print_samr_LookupNames(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_LookupNames
*r
);
3201 _PUBLIC_
void ndr_print_samr_LookupRids(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_LookupRids
*r
);
3202 _PUBLIC_
void ndr_print_samr_OpenGroup(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_OpenGroup
*r
);
3203 _PUBLIC_
void ndr_print_samr_QueryGroupInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_QueryGroupInfo
*r
);
3204 _PUBLIC_
void ndr_print_samr_SetGroupInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_SetGroupInfo
*r
);
3205 _PUBLIC_
void ndr_print_samr_AddGroupMember(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_AddGroupMember
*r
);
3206 _PUBLIC_
void ndr_print_samr_DeleteDomainGroup(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_DeleteDomainGroup
*r
);
3207 _PUBLIC_
void ndr_print_samr_DeleteGroupMember(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_DeleteGroupMember
*r
);
3208 _PUBLIC_
void ndr_print_samr_QueryGroupMember(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_QueryGroupMember
*r
);
3209 _PUBLIC_
void ndr_print_samr_SetMemberAttributesOfGroup(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_SetMemberAttributesOfGroup
*r
);
3210 _PUBLIC_
void ndr_print_samr_OpenAlias(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_OpenAlias
*r
);
3211 _PUBLIC_
void ndr_print_samr_QueryAliasInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_QueryAliasInfo
*r
);
3212 _PUBLIC_
void ndr_print_samr_SetAliasInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_SetAliasInfo
*r
);
3213 _PUBLIC_
void ndr_print_samr_DeleteDomAlias(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_DeleteDomAlias
*r
);
3214 _PUBLIC_
void ndr_print_samr_AddAliasMember(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_AddAliasMember
*r
);
3215 _PUBLIC_
void ndr_print_samr_DeleteAliasMember(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_DeleteAliasMember
*r
);
3216 _PUBLIC_
void ndr_print_samr_GetMembersInAlias(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_GetMembersInAlias
*r
);
3217 _PUBLIC_
enum ndr_err_code
ndr_push_samr_OpenUser(struct ndr_push
*ndr
, int flags
, const struct samr_OpenUser
*r
);
3218 _PUBLIC_
enum ndr_err_code
ndr_pull_samr_OpenUser(struct ndr_pull
*ndr
, int flags
, struct samr_OpenUser
*r
);
3219 _PUBLIC_
void ndr_print_samr_OpenUser(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_OpenUser
*r
);
3220 _PUBLIC_
void ndr_print_samr_DeleteUser(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_DeleteUser
*r
);
3221 _PUBLIC_
enum ndr_err_code
ndr_push_samr_QueryUserInfo(struct ndr_push
*ndr
, int flags
, const struct samr_QueryUserInfo
*r
);
3222 _PUBLIC_
enum ndr_err_code
ndr_pull_samr_QueryUserInfo(struct ndr_pull
*ndr
, int flags
, struct samr_QueryUserInfo
*r
);
3223 _PUBLIC_
void ndr_print_samr_QueryUserInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_QueryUserInfo
*r
);
3224 _PUBLIC_
enum ndr_err_code
ndr_push_samr_SetUserInfo(struct ndr_push
*ndr
, int flags
, const struct samr_SetUserInfo
*r
);
3225 _PUBLIC_
enum ndr_err_code
ndr_pull_samr_SetUserInfo(struct ndr_pull
*ndr
, int flags
, struct samr_SetUserInfo
*r
);
3226 _PUBLIC_
void ndr_print_samr_SetUserInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_SetUserInfo
*r
);
3227 _PUBLIC_
void ndr_print_samr_ChangePasswordUser(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_ChangePasswordUser
*r
);
3228 _PUBLIC_
void ndr_print_samr_GetGroupsForUser(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_GetGroupsForUser
*r
);
3229 _PUBLIC_
void ndr_print_samr_QueryDisplayInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_QueryDisplayInfo
*r
);
3230 _PUBLIC_
void ndr_print_samr_GetDisplayEnumerationIndex(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_GetDisplayEnumerationIndex
*r
);
3231 _PUBLIC_
void ndr_print_samr_TestPrivateFunctionsDomain(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_TestPrivateFunctionsDomain
*r
);
3232 _PUBLIC_
void ndr_print_samr_TestPrivateFunctionsUser(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_TestPrivateFunctionsUser
*r
);
3233 _PUBLIC_
enum ndr_err_code
ndr_push_samr_GetUserPwInfo(struct ndr_push
*ndr
, int flags
, const struct samr_GetUserPwInfo
*r
);
3234 _PUBLIC_
enum ndr_err_code
ndr_pull_samr_GetUserPwInfo(struct ndr_pull
*ndr
, int flags
, struct samr_GetUserPwInfo
*r
);
3235 _PUBLIC_
void ndr_print_samr_GetUserPwInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_GetUserPwInfo
*r
);
3236 _PUBLIC_
void ndr_print_samr_RemoveMemberFromForeignDomain(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_RemoveMemberFromForeignDomain
*r
);
3237 _PUBLIC_
void ndr_print_samr_QueryDomainInfo2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_QueryDomainInfo2
*r
);
3238 _PUBLIC_
void ndr_print_samr_QueryUserInfo2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_QueryUserInfo2
*r
);
3239 _PUBLIC_
void ndr_print_samr_QueryDisplayInfo2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_QueryDisplayInfo2
*r
);
3240 _PUBLIC_
void ndr_print_samr_GetDisplayEnumerationIndex2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_GetDisplayEnumerationIndex2
*r
);
3241 _PUBLIC_
void ndr_print_samr_CreateUser2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_CreateUser2
*r
);
3242 _PUBLIC_
void ndr_print_samr_QueryDisplayInfo3(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_QueryDisplayInfo3
*r
);
3243 _PUBLIC_
void ndr_print_samr_AddMultipleMembersToAlias(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_AddMultipleMembersToAlias
*r
);
3244 _PUBLIC_
void ndr_print_samr_RemoveMultipleMembersFromAlias(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_RemoveMultipleMembersFromAlias
*r
);
3245 _PUBLIC_
void ndr_print_samr_OemChangePasswordUser2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_OemChangePasswordUser2
*r
);
3246 _PUBLIC_
void ndr_print_samr_ChangePasswordUser2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_ChangePasswordUser2
*r
);
3247 _PUBLIC_
void ndr_print_samr_GetDomPwInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_GetDomPwInfo
*r
);
3248 _PUBLIC_
void ndr_print_samr_Connect2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_Connect2
*r
);
3249 _PUBLIC_
enum ndr_err_code
ndr_push_samr_SetUserInfo2(struct ndr_push
*ndr
, int flags
, const struct samr_SetUserInfo2
*r
);
3250 _PUBLIC_
enum ndr_err_code
ndr_pull_samr_SetUserInfo2(struct ndr_pull
*ndr
, int flags
, struct samr_SetUserInfo2
*r
);
3251 _PUBLIC_
void ndr_print_samr_SetUserInfo2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_SetUserInfo2
*r
);
3252 _PUBLIC_
void ndr_print_samr_SetBootKeyInformation(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_SetBootKeyInformation
*r
);
3253 _PUBLIC_
void ndr_print_samr_GetBootKeyInformation(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_GetBootKeyInformation
*r
);
3254 _PUBLIC_
void ndr_print_samr_Connect3(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_Connect3
*r
);
3255 _PUBLIC_
void ndr_print_samr_Connect4(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_Connect4
*r
);
3256 _PUBLIC_
void ndr_print_samr_ChangePasswordUser3(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_ChangePasswordUser3
*r
);
3257 _PUBLIC_
enum ndr_err_code
ndr_push_samr_Connect5(struct ndr_push
*ndr
, int flags
, const struct samr_Connect5
*r
);
3258 _PUBLIC_
enum ndr_err_code
ndr_pull_samr_Connect5(struct ndr_pull
*ndr
, int flags
, struct samr_Connect5
*r
);
3259 _PUBLIC_
void ndr_print_samr_Connect5(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_Connect5
*r
);
3260 _PUBLIC_
void ndr_print_samr_RidToSid(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_RidToSid
*r
);
3261 _PUBLIC_
void ndr_print_samr_SetDsrmPassword(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_SetDsrmPassword
*r
);
3262 _PUBLIC_
void ndr_print_samr_ValidatePassword(struct ndr_print
*ndr
, const char *name
, int flags
, const struct samr_ValidatePassword
*r
);
3264 /* The following definitions come from librpc/gen_ndr/ndr_security.c */
3266 _PUBLIC_
enum ndr_err_code
ndr_push_security_ace_flags(struct ndr_push
*ndr
, int ndr_flags
, uint8_t r
);
3267 _PUBLIC_
enum ndr_err_code
ndr_pull_security_ace_flags(struct ndr_pull
*ndr
, int ndr_flags
, uint8_t *r
);
3268 _PUBLIC_
void ndr_print_security_ace_flags(struct ndr_print
*ndr
, const char *name
, uint8_t r
);
3269 _PUBLIC_
enum ndr_err_code
ndr_push_security_ace_type(struct ndr_push
*ndr
, int ndr_flags
, enum security_ace_type r
);
3270 _PUBLIC_
enum ndr_err_code
ndr_pull_security_ace_type(struct ndr_pull
*ndr
, int ndr_flags
, enum security_ace_type
*r
);
3271 _PUBLIC_
void ndr_print_security_ace_type(struct ndr_print
*ndr
, const char *name
, enum security_ace_type r
);
3272 _PUBLIC_
void ndr_print_security_ace_object_flags(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
3273 _PUBLIC_
void ndr_print_security_ace_object_type(struct ndr_print
*ndr
, const char *name
, const union security_ace_object_type
*r
);
3274 _PUBLIC_
void ndr_print_security_ace_object_inherited_type(struct ndr_print
*ndr
, const char *name
, const union security_ace_object_inherited_type
*r
);
3275 _PUBLIC_
void ndr_print_security_ace_object(struct ndr_print
*ndr
, const char *name
, const struct security_ace_object
*r
);
3276 _PUBLIC_
enum ndr_err_code
ndr_push_security_ace_object_ctr(struct ndr_push
*ndr
, int ndr_flags
, const union security_ace_object_ctr
*r
);
3277 _PUBLIC_
enum ndr_err_code
ndr_pull_security_ace_object_ctr(struct ndr_pull
*ndr
, int ndr_flags
, union security_ace_object_ctr
*r
);
3278 _PUBLIC_
void ndr_print_security_ace_object_ctr(struct ndr_print
*ndr
, const char *name
, const union security_ace_object_ctr
*r
);
3279 _PUBLIC_
enum ndr_err_code
ndr_push_security_ace(struct ndr_push
*ndr
, int ndr_flags
, const struct security_ace
*r
);
3280 _PUBLIC_
void ndr_print_security_ace(struct ndr_print
*ndr
, const char *name
, const struct security_ace
*r
);
3281 _PUBLIC_
void ndr_print_security_acl_revision(struct ndr_print
*ndr
, const char *name
, enum security_acl_revision r
);
3282 _PUBLIC_
enum ndr_err_code
ndr_push_security_acl(struct ndr_push
*ndr
, int ndr_flags
, const struct security_acl
*r
);
3283 _PUBLIC_
enum ndr_err_code
ndr_pull_security_acl(struct ndr_pull
*ndr
, int ndr_flags
, struct security_acl
*r
);
3284 _PUBLIC_
void ndr_print_security_acl(struct ndr_print
*ndr
, const char *name
, const struct security_acl
*r
);
3285 _PUBLIC_
void ndr_print_security_descriptor_revision(struct ndr_print
*ndr
, const char *name
, enum security_descriptor_revision r
);
3286 _PUBLIC_
void ndr_print_security_descriptor_type(struct ndr_print
*ndr
, const char *name
, uint16_t r
);
3287 _PUBLIC_
enum ndr_err_code
ndr_push_security_descriptor(struct ndr_push
*ndr
, int ndr_flags
, const struct security_descriptor
*r
);
3288 _PUBLIC_
enum ndr_err_code
ndr_pull_security_descriptor(struct ndr_pull
*ndr
, int ndr_flags
, struct security_descriptor
*r
);
3289 _PUBLIC_
void ndr_print_security_descriptor(struct ndr_print
*ndr
, const char *name
, const struct security_descriptor
*r
);
3290 _PUBLIC_
enum ndr_err_code
ndr_push_sec_desc_buf(struct ndr_push
*ndr
, int ndr_flags
, const struct sec_desc_buf
*r
);
3291 _PUBLIC_
enum ndr_err_code
ndr_pull_sec_desc_buf(struct ndr_pull
*ndr
, int ndr_flags
, struct sec_desc_buf
*r
);
3292 _PUBLIC_
void ndr_print_sec_desc_buf(struct ndr_print
*ndr
, const char *name
, const struct sec_desc_buf
*r
);
3293 _PUBLIC_
enum ndr_err_code
ndr_push_security_token(struct ndr_push
*ndr
, int ndr_flags
, const struct security_token
*r
);
3294 _PUBLIC_
enum ndr_err_code
ndr_pull_security_token(struct ndr_pull
*ndr
, int ndr_flags
, struct security_token
*r
);
3295 _PUBLIC_
void ndr_print_security_token(struct ndr_print
*ndr
, const char *name
, const struct security_token
*r
);
3296 _PUBLIC_
enum ndr_err_code
ndr_push_security_secinfo(struct ndr_push
*ndr
, int ndr_flags
, uint32_t r
);
3297 _PUBLIC_
enum ndr_err_code
ndr_pull_security_secinfo(struct ndr_pull
*ndr
, int ndr_flags
, uint32_t *r
);
3298 _PUBLIC_
void ndr_print_security_secinfo(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
3300 /* The following definitions come from librpc/gen_ndr/ndr_srvsvc.c */
3302 _PUBLIC_
void ndr_print_srvsvc_NetCharDevInfo0(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetCharDevInfo0
*r
);
3303 _PUBLIC_
void ndr_print_srvsvc_NetCharDevCtr0(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetCharDevCtr0
*r
);
3304 _PUBLIC_
void ndr_print_srvsvc_NetCharDevInfo1(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetCharDevInfo1
*r
);
3305 _PUBLIC_
void ndr_print_srvsvc_NetCharDevCtr1(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetCharDevCtr1
*r
);
3306 _PUBLIC_
void ndr_print_srvsvc_NetCharDevInfo(struct ndr_print
*ndr
, const char *name
, const union srvsvc_NetCharDevInfo
*r
);
3307 _PUBLIC_
void ndr_print_srvsvc_NetCharDevCtr(struct ndr_print
*ndr
, const char *name
, const union srvsvc_NetCharDevCtr
*r
);
3308 _PUBLIC_
void ndr_print_srvsvc_NetCharDevQInfo0(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetCharDevQInfo0
*r
);
3309 _PUBLIC_
void ndr_print_srvsvc_NetCharDevQCtr0(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetCharDevQCtr0
*r
);
3310 _PUBLIC_
void ndr_print_srvsvc_NetCharDevQInfo1(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetCharDevQInfo1
*r
);
3311 _PUBLIC_
void ndr_print_srvsvc_NetCharDevQCtr1(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetCharDevQCtr1
*r
);
3312 _PUBLIC_
void ndr_print_srvsvc_NetCharDevQInfo(struct ndr_print
*ndr
, const char *name
, const union srvsvc_NetCharDevQInfo
*r
);
3313 _PUBLIC_
void ndr_print_srvsvc_NetCharDevQCtr(struct ndr_print
*ndr
, const char *name
, const union srvsvc_NetCharDevQCtr
*r
);
3314 _PUBLIC_
void ndr_print_srvsvc_NetConnInfo0(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetConnInfo0
*r
);
3315 _PUBLIC_
void ndr_print_srvsvc_NetConnCtr0(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetConnCtr0
*r
);
3316 _PUBLIC_
void ndr_print_srvsvc_NetConnInfo1(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetConnInfo1
*r
);
3317 _PUBLIC_
void ndr_print_srvsvc_NetConnCtr1(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetConnCtr1
*r
);
3318 _PUBLIC_
void ndr_print_srvsvc_NetConnCtr(struct ndr_print
*ndr
, const char *name
, const union srvsvc_NetConnCtr
*r
);
3319 _PUBLIC_
void ndr_print_srvsvc_NetConnInfoCtr(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetConnInfoCtr
*r
);
3320 _PUBLIC_
void ndr_print_srvsvc_NetFileInfo2(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetFileInfo2
*r
);
3321 _PUBLIC_
void ndr_print_srvsvc_NetFileCtr2(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetFileCtr2
*r
);
3322 _PUBLIC_
void ndr_print_srvsvc_NetFileInfo3(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetFileInfo3
*r
);
3323 _PUBLIC_
void ndr_print_srvsvc_NetFileCtr3(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetFileCtr3
*r
);
3324 _PUBLIC_
void ndr_print_srvsvc_NetFileInfo(struct ndr_print
*ndr
, const char *name
, const union srvsvc_NetFileInfo
*r
);
3325 _PUBLIC_
void ndr_print_srvsvc_NetFileCtr(struct ndr_print
*ndr
, const char *name
, const union srvsvc_NetFileCtr
*r
);
3326 _PUBLIC_
void ndr_print_srvsvc_NetFileInfoCtr(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetFileInfoCtr
*r
);
3327 _PUBLIC_
void ndr_print_srvsvc_NetSessInfo0(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSessInfo0
*r
);
3328 _PUBLIC_
void ndr_print_srvsvc_NetSessCtr0(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSessCtr0
*r
);
3329 _PUBLIC_
void ndr_print_srvsvc_NetSessInfo1(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSessInfo1
*r
);
3330 _PUBLIC_
void ndr_print_srvsvc_NetSessCtr1(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSessCtr1
*r
);
3331 _PUBLIC_
void ndr_print_srvsvc_NetSessInfo2(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSessInfo2
*r
);
3332 _PUBLIC_
void ndr_print_srvsvc_NetSessCtr2(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSessCtr2
*r
);
3333 _PUBLIC_
void ndr_print_srvsvc_NetSessInfo10(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSessInfo10
*r
);
3334 _PUBLIC_
void ndr_print_srvsvc_NetSessCtr10(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSessCtr10
*r
);
3335 _PUBLIC_
void ndr_print_srvsvc_NetSessInfo502(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSessInfo502
*r
);
3336 _PUBLIC_
void ndr_print_srvsvc_NetSessCtr502(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSessCtr502
*r
);
3337 _PUBLIC_
void ndr_print_srvsvc_NetSessCtr(struct ndr_print
*ndr
, const char *name
, const union srvsvc_NetSessCtr
*r
);
3338 _PUBLIC_
void ndr_print_srvsvc_NetSessInfoCtr(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSessInfoCtr
*r
);
3339 _PUBLIC_
void ndr_print_srvsvc_ShareType(struct ndr_print
*ndr
, const char *name
, enum srvsvc_ShareType r
);
3340 _PUBLIC_
void ndr_print_srvsvc_NetShareInfo0(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetShareInfo0
*r
);
3341 _PUBLIC_
void ndr_print_srvsvc_NetShareCtr0(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetShareCtr0
*r
);
3342 _PUBLIC_
void ndr_print_srvsvc_NetShareInfo1(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetShareInfo1
*r
);
3343 _PUBLIC_
void ndr_print_srvsvc_NetShareCtr1(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetShareCtr1
*r
);
3344 _PUBLIC_
void ndr_print_srvsvc_NetShareInfo2(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetShareInfo2
*r
);
3345 _PUBLIC_
void ndr_print_srvsvc_NetShareCtr2(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetShareCtr2
*r
);
3346 _PUBLIC_
void ndr_print_srvsvc_NetShareInfo501(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetShareInfo501
*r
);
3347 _PUBLIC_
void ndr_print_srvsvc_NetShareCtr501(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetShareCtr501
*r
);
3348 _PUBLIC_
void ndr_print_srvsvc_NetShareInfo502(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetShareInfo502
*r
);
3349 _PUBLIC_
void ndr_print_srvsvc_NetShareCtr502(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetShareCtr502
*r
);
3350 _PUBLIC_
void ndr_print_srvsvc_NetShareInfo1004(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetShareInfo1004
*r
);
3351 _PUBLIC_
void ndr_print_srvsvc_NetShareCtr1004(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetShareCtr1004
*r
);
3352 _PUBLIC_
void ndr_print_NetShareInfo1005Flags(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
3353 _PUBLIC_
void ndr_print_srvsvc_NetShareInfo1005(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetShareInfo1005
*r
);
3354 _PUBLIC_
void ndr_print_srvsvc_NetShareCtr1005(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetShareCtr1005
*r
);
3355 _PUBLIC_
void ndr_print_srvsvc_NetShareInfo1006(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetShareInfo1006
*r
);
3356 _PUBLIC_
void ndr_print_srvsvc_NetShareCtr1006(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetShareCtr1006
*r
);
3357 _PUBLIC_
void ndr_print_srvsvc_NetShareInfo1007(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetShareInfo1007
*r
);
3358 _PUBLIC_
void ndr_print_srvsvc_NetShareCtr1007(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetShareCtr1007
*r
);
3359 _PUBLIC_
void ndr_print_srvsvc_NetShareCtr1501(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetShareCtr1501
*r
);
3360 _PUBLIC_
void ndr_print_srvsvc_NetShareInfo(struct ndr_print
*ndr
, const char *name
, const union srvsvc_NetShareInfo
*r
);
3361 _PUBLIC_
void ndr_print_srvsvc_NetShareCtr(struct ndr_print
*ndr
, const char *name
, const union srvsvc_NetShareCtr
*r
);
3362 _PUBLIC_
void ndr_print_srvsvc_NetShareInfoCtr(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetShareInfoCtr
*r
);
3363 _PUBLIC_
enum ndr_err_code
ndr_push_srvsvc_PlatformId(struct ndr_push
*ndr
, int ndr_flags
, enum srvsvc_PlatformId r
);
3364 _PUBLIC_
enum ndr_err_code
ndr_pull_srvsvc_PlatformId(struct ndr_pull
*ndr
, int ndr_flags
, enum srvsvc_PlatformId
*r
);
3365 _PUBLIC_
void ndr_print_srvsvc_PlatformId(struct ndr_print
*ndr
, const char *name
, enum srvsvc_PlatformId r
);
3366 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo100(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo100
*r
);
3367 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo101(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo101
*r
);
3368 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo102(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo102
*r
);
3369 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo402(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo402
*r
);
3370 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo403(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo403
*r
);
3371 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo502(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo502
*r
);
3372 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo503(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo503
*r
);
3373 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo599(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo599
*r
);
3374 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1005(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1005
*r
);
3375 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1010(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1010
*r
);
3376 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1016(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1016
*r
);
3377 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1017(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1017
*r
);
3378 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1018(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1018
*r
);
3379 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1107(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1107
*r
);
3380 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1501(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1501
*r
);
3381 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1502(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1502
*r
);
3382 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1503(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1503
*r
);
3383 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1506(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1506
*r
);
3384 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1509(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1509
*r
);
3385 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1510(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1510
*r
);
3386 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1511(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1511
*r
);
3387 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1512(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1512
*r
);
3388 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1513(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1513
*r
);
3389 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1514(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1514
*r
);
3390 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1515(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1515
*r
);
3391 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1516(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1516
*r
);
3392 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1518(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1518
*r
);
3393 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1520(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1520
*r
);
3394 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1521(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1521
*r
);
3395 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1522(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1522
*r
);
3396 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1523(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1523
*r
);
3397 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1524(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1524
*r
);
3398 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1525(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1525
*r
);
3399 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1528(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1528
*r
);
3400 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1529(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1529
*r
);
3401 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1530(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1530
*r
);
3402 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1533(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1533
*r
);
3403 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1534(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1534
*r
);
3404 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1535(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1535
*r
);
3405 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1536(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1536
*r
);
3406 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1537(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1537
*r
);
3407 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1538(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1538
*r
);
3408 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1539(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1539
*r
);
3409 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1540(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1540
*r
);
3410 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1541(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1541
*r
);
3411 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1542(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1542
*r
);
3412 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1543(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1543
*r
);
3413 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1544(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1544
*r
);
3414 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1545(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1545
*r
);
3415 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1546(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1546
*r
);
3416 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1547(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1547
*r
);
3417 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1548(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1548
*r
);
3418 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1549(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1549
*r
);
3419 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1550(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1550
*r
);
3420 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1552(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1552
*r
);
3421 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1553(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1553
*r
);
3422 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1554(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1554
*r
);
3423 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1555(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1555
*r
);
3424 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo1556(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetSrvInfo1556
*r
);
3425 _PUBLIC_
void ndr_print_srvsvc_NetSrvInfo(struct ndr_print
*ndr
, const char *name
, const union srvsvc_NetSrvInfo
*r
);
3426 _PUBLIC_
void ndr_print_srvsvc_NetDiskInfo0(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetDiskInfo0
*r
);
3427 _PUBLIC_
void ndr_print_srvsvc_NetDiskInfo(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetDiskInfo
*r
);
3428 _PUBLIC_
void ndr_print_srvsvc_Statistics(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_Statistics
*r
);
3429 _PUBLIC_
void ndr_print_srvsvc_NetTransportInfo0(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetTransportInfo0
*r
);
3430 _PUBLIC_
void ndr_print_srvsvc_NetTransportCtr0(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetTransportCtr0
*r
);
3431 _PUBLIC_
void ndr_print_srvsvc_NetTransportInfo1(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetTransportInfo1
*r
);
3432 _PUBLIC_
void ndr_print_srvsvc_NetTransportCtr1(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetTransportCtr1
*r
);
3433 _PUBLIC_
void ndr_print_srvsvc_NetTransportInfo2(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetTransportInfo2
*r
);
3434 _PUBLIC_
void ndr_print_srvsvc_NetTransportCtr2(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetTransportCtr2
*r
);
3435 _PUBLIC_
void ndr_print_srvsvc_NetTransportInfo3(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetTransportInfo3
*r
);
3436 _PUBLIC_
void ndr_print_srvsvc_NetTransportCtr3(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetTransportCtr3
*r
);
3437 _PUBLIC_
void ndr_print_srvsvc_NetTransportCtr(struct ndr_print
*ndr
, const char *name
, const union srvsvc_NetTransportCtr
*r
);
3438 _PUBLIC_
void ndr_print_srvsvc_NetRemoteTODInfo(struct ndr_print
*ndr
, const char *name
, const struct srvsvc_NetRemoteTODInfo
*r
);
3439 _PUBLIC_
void ndr_print_srvsvc_NetTransportInfo(struct ndr_print
*ndr
, const char *name
, const union srvsvc_NetTransportInfo
*r
);
3440 _PUBLIC_
void ndr_print_srvsvc_NetCharDevEnum(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetCharDevEnum
*r
);
3441 _PUBLIC_
void ndr_print_srvsvc_NetCharDevGetInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetCharDevGetInfo
*r
);
3442 _PUBLIC_
void ndr_print_srvsvc_NetCharDevControl(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetCharDevControl
*r
);
3443 _PUBLIC_
void ndr_print_srvsvc_NetCharDevQEnum(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetCharDevQEnum
*r
);
3444 _PUBLIC_
void ndr_print_srvsvc_NetCharDevQGetInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetCharDevQGetInfo
*r
);
3445 _PUBLIC_
void ndr_print_srvsvc_NetCharDevQSetInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetCharDevQSetInfo
*r
);
3446 _PUBLIC_
void ndr_print_srvsvc_NetCharDevQPurge(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetCharDevQPurge
*r
);
3447 _PUBLIC_
void ndr_print_srvsvc_NetCharDevQPurgeSelf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetCharDevQPurgeSelf
*r
);
3448 _PUBLIC_
void ndr_print_srvsvc_NetConnEnum(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetConnEnum
*r
);
3449 _PUBLIC_
void ndr_print_srvsvc_NetFileEnum(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetFileEnum
*r
);
3450 _PUBLIC_
void ndr_print_srvsvc_NetFileGetInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetFileGetInfo
*r
);
3451 _PUBLIC_
void ndr_print_srvsvc_NetFileClose(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetFileClose
*r
);
3452 _PUBLIC_
void ndr_print_srvsvc_NetSessEnum(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetSessEnum
*r
);
3453 _PUBLIC_
void ndr_print_srvsvc_NetSessDel(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetSessDel
*r
);
3454 _PUBLIC_
void ndr_print_srvsvc_NetShareAdd(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetShareAdd
*r
);
3455 _PUBLIC_
void ndr_print_srvsvc_NetShareEnumAll(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetShareEnumAll
*r
);
3456 _PUBLIC_
void ndr_print_srvsvc_NetShareGetInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetShareGetInfo
*r
);
3457 _PUBLIC_
void ndr_print_srvsvc_NetShareSetInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetShareSetInfo
*r
);
3458 _PUBLIC_
void ndr_print_srvsvc_NetShareDel(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetShareDel
*r
);
3459 _PUBLIC_
void ndr_print_srvsvc_NetShareDelSticky(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetShareDelSticky
*r
);
3460 _PUBLIC_
void ndr_print_srvsvc_NetShareCheck(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetShareCheck
*r
);
3461 _PUBLIC_
void ndr_print_srvsvc_NetSrvGetInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetSrvGetInfo
*r
);
3462 _PUBLIC_
void ndr_print_srvsvc_NetSrvSetInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetSrvSetInfo
*r
);
3463 _PUBLIC_
void ndr_print_srvsvc_NetDiskEnum(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetDiskEnum
*r
);
3464 _PUBLIC_
void ndr_print_srvsvc_NetServerStatisticsGet(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetServerStatisticsGet
*r
);
3465 _PUBLIC_
void ndr_print_srvsvc_NetTransportAdd(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetTransportAdd
*r
);
3466 _PUBLIC_
void ndr_print_srvsvc_NetTransportEnum(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetTransportEnum
*r
);
3467 _PUBLIC_
void ndr_print_srvsvc_NetTransportDel(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetTransportDel
*r
);
3468 _PUBLIC_
void ndr_print_srvsvc_NetRemoteTOD(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetRemoteTOD
*r
);
3469 _PUBLIC_
void ndr_print_srvsvc_NetSetServiceBits(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetSetServiceBits
*r
);
3470 _PUBLIC_
void ndr_print_srvsvc_NetPathType(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetPathType
*r
);
3471 _PUBLIC_
void ndr_print_srvsvc_NetPathCanonicalize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetPathCanonicalize
*r
);
3472 _PUBLIC_
void ndr_print_srvsvc_NetPathCompare(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetPathCompare
*r
);
3473 _PUBLIC_
void ndr_print_srvsvc_NetNameValidate(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetNameValidate
*r
);
3474 _PUBLIC_
void ndr_print_srvsvc_NETRPRNAMECANONICALIZE(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NETRPRNAMECANONICALIZE
*r
);
3475 _PUBLIC_
void ndr_print_srvsvc_NetPRNameCompare(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetPRNameCompare
*r
);
3476 _PUBLIC_
void ndr_print_srvsvc_NetShareEnum(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetShareEnum
*r
);
3477 _PUBLIC_
void ndr_print_srvsvc_NetShareDelStart(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetShareDelStart
*r
);
3478 _PUBLIC_
void ndr_print_srvsvc_NetShareDelCommit(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetShareDelCommit
*r
);
3479 _PUBLIC_
void ndr_print_srvsvc_NetGetFileSecurity(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetGetFileSecurity
*r
);
3480 _PUBLIC_
void ndr_print_srvsvc_NetSetFileSecurity(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetSetFileSecurity
*r
);
3481 _PUBLIC_
void ndr_print_srvsvc_NetServerTransportAddEx(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetServerTransportAddEx
*r
);
3482 _PUBLIC_
void ndr_print_srvsvc_NetServerSetServiceBitsEx(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NetServerSetServiceBitsEx
*r
);
3483 _PUBLIC_
void ndr_print_srvsvc_NETRDFSGETVERSION(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NETRDFSGETVERSION
*r
);
3484 _PUBLIC_
void ndr_print_srvsvc_NETRDFSCREATELOCALPARTITION(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NETRDFSCREATELOCALPARTITION
*r
);
3485 _PUBLIC_
void ndr_print_srvsvc_NETRDFSDELETELOCALPARTITION(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NETRDFSDELETELOCALPARTITION
*r
);
3486 _PUBLIC_
void ndr_print_srvsvc_NETRDFSSETLOCALVOLUMESTATE(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NETRDFSSETLOCALVOLUMESTATE
*r
);
3487 _PUBLIC_
void ndr_print_srvsvc_NETRDFSSETSERVERINFO(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NETRDFSSETSERVERINFO
*r
);
3488 _PUBLIC_
void ndr_print_srvsvc_NETRDFSCREATEEXITPOINT(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NETRDFSCREATEEXITPOINT
*r
);
3489 _PUBLIC_
void ndr_print_srvsvc_NETRDFSDELETEEXITPOINT(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NETRDFSDELETEEXITPOINT
*r
);
3490 _PUBLIC_
void ndr_print_srvsvc_NETRDFSMODIFYPREFIX(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NETRDFSMODIFYPREFIX
*r
);
3491 _PUBLIC_
void ndr_print_srvsvc_NETRDFSFIXLOCALVOLUME(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NETRDFSFIXLOCALVOLUME
*r
);
3492 _PUBLIC_
void ndr_print_srvsvc_NETRDFSMANAGERREPORTSITEINFO(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NETRDFSMANAGERREPORTSITEINFO
*r
);
3493 _PUBLIC_
void ndr_print_srvsvc_NETRSERVERTRANSPORTDELEX(struct ndr_print
*ndr
, const char *name
, int flags
, const struct srvsvc_NETRSERVERTRANSPORTDELEX
*r
);
3495 /* The following definitions come from librpc/gen_ndr/ndr_svcctl.c */
3497 _PUBLIC_
void ndr_print_SERVICE_LOCK_STATUS(struct ndr_print
*ndr
, const char *name
, const struct SERVICE_LOCK_STATUS
*r
);
3498 _PUBLIC_
void ndr_print_SERVICE_STATUS(struct ndr_print
*ndr
, const char *name
, const struct SERVICE_STATUS
*r
);
3499 _PUBLIC_
void ndr_print_ENUM_SERVICE_STATUS(struct ndr_print
*ndr
, const char *name
, const struct ENUM_SERVICE_STATUS
*r
);
3500 _PUBLIC_
enum ndr_err_code
ndr_push_svcctl_ServerType(struct ndr_push
*ndr
, int ndr_flags
, uint32_t r
);
3501 _PUBLIC_
enum ndr_err_code
ndr_pull_svcctl_ServerType(struct ndr_pull
*ndr
, int ndr_flags
, uint32_t *r
);
3502 _PUBLIC_
void ndr_print_svcctl_ServerType(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
3503 _PUBLIC_
void ndr_print_svcctl_CloseServiceHandle(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_CloseServiceHandle
*r
);
3504 _PUBLIC_
void ndr_print_svcctl_ControlService(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_ControlService
*r
);
3505 _PUBLIC_
void ndr_print_svcctl_DeleteService(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_DeleteService
*r
);
3506 _PUBLIC_
void ndr_print_svcctl_LockServiceDatabase(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_LockServiceDatabase
*r
);
3507 _PUBLIC_
void ndr_print_svcctl_QueryServiceObjectSecurity(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_QueryServiceObjectSecurity
*r
);
3508 _PUBLIC_
void ndr_print_svcctl_SetServiceObjectSecurity(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_SetServiceObjectSecurity
*r
);
3509 _PUBLIC_
void ndr_print_svcctl_QueryServiceStatus(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_QueryServiceStatus
*r
);
3510 _PUBLIC_
void ndr_print_svcctl_SetServiceStatus(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_SetServiceStatus
*r
);
3511 _PUBLIC_
void ndr_print_svcctl_UnlockServiceDatabase(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_UnlockServiceDatabase
*r
);
3512 _PUBLIC_
void ndr_print_svcctl_NotifyBootConfigStatus(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_NotifyBootConfigStatus
*r
);
3513 _PUBLIC_
void ndr_print_svcctl_SCSetServiceBitsW(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_SCSetServiceBitsW
*r
);
3514 _PUBLIC_
void ndr_print_svcctl_ChangeServiceConfigW(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_ChangeServiceConfigW
*r
);
3515 _PUBLIC_
void ndr_print_svcctl_CreateServiceW(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_CreateServiceW
*r
);
3516 _PUBLIC_
void ndr_print_svcctl_EnumDependentServicesW(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_EnumDependentServicesW
*r
);
3517 _PUBLIC_
void ndr_print_svcctl_EnumServicesStatusW(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_EnumServicesStatusW
*r
);
3518 _PUBLIC_
void ndr_print_svcctl_OpenSCManagerW(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_OpenSCManagerW
*r
);
3519 _PUBLIC_
void ndr_print_svcctl_OpenServiceW(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_OpenServiceW
*r
);
3520 _PUBLIC_
void ndr_print_svcctl_QueryServiceConfigW(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_QueryServiceConfigW
*r
);
3521 _PUBLIC_
void ndr_print_svcctl_QueryServiceLockStatusW(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_QueryServiceLockStatusW
*r
);
3522 _PUBLIC_
void ndr_print_svcctl_StartServiceW(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_StartServiceW
*r
);
3523 _PUBLIC_
void ndr_print_svcctl_GetServiceDisplayNameW(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_GetServiceDisplayNameW
*r
);
3524 _PUBLIC_
void ndr_print_svcctl_GetServiceKeyNameW(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_GetServiceKeyNameW
*r
);
3525 _PUBLIC_
void ndr_print_svcctl_SCSetServiceBitsA(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_SCSetServiceBitsA
*r
);
3526 _PUBLIC_
void ndr_print_svcctl_ChangeServiceConfigA(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_ChangeServiceConfigA
*r
);
3527 _PUBLIC_
void ndr_print_svcctl_CreateServiceA(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_CreateServiceA
*r
);
3528 _PUBLIC_
void ndr_print_svcctl_EnumDependentServicesA(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_EnumDependentServicesA
*r
);
3529 _PUBLIC_
void ndr_print_svcctl_EnumServicesStatusA(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_EnumServicesStatusA
*r
);
3530 _PUBLIC_
void ndr_print_svcctl_OpenSCManagerA(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_OpenSCManagerA
*r
);
3531 _PUBLIC_
void ndr_print_svcctl_OpenServiceA(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_OpenServiceA
*r
);
3532 _PUBLIC_
void ndr_print_svcctl_QueryServiceConfigA(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_QueryServiceConfigA
*r
);
3533 _PUBLIC_
void ndr_print_svcctl_QueryServiceLockStatusA(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_QueryServiceLockStatusA
*r
);
3534 _PUBLIC_
void ndr_print_svcctl_StartServiceA(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_StartServiceA
*r
);
3535 _PUBLIC_
void ndr_print_svcctl_GetServiceDisplayNameA(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_GetServiceDisplayNameA
*r
);
3536 _PUBLIC_
void ndr_print_svcctl_GetServiceKeyNameA(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_GetServiceKeyNameA
*r
);
3537 _PUBLIC_
void ndr_print_svcctl_GetCurrentGroupeStateW(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_GetCurrentGroupeStateW
*r
);
3538 _PUBLIC_
void ndr_print_svcctl_EnumServiceGroupW(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_EnumServiceGroupW
*r
);
3539 _PUBLIC_
void ndr_print_svcctl_ChangeServiceConfig2A(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_ChangeServiceConfig2A
*r
);
3540 _PUBLIC_
void ndr_print_svcctl_ChangeServiceConfig2W(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_ChangeServiceConfig2W
*r
);
3541 _PUBLIC_
void ndr_print_svcctl_QueryServiceConfig2A(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_QueryServiceConfig2A
*r
);
3542 _PUBLIC_
void ndr_print_svcctl_QueryServiceConfig2W(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_QueryServiceConfig2W
*r
);
3543 _PUBLIC_
void ndr_print_svcctl_QueryServiceStatusEx(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_QueryServiceStatusEx
*r
);
3544 _PUBLIC_
void ndr_print_EnumServicesStatusExA(struct ndr_print
*ndr
, const char *name
, int flags
, const struct EnumServicesStatusExA
*r
);
3545 _PUBLIC_
void ndr_print_EnumServicesStatusExW(struct ndr_print
*ndr
, const char *name
, int flags
, const struct EnumServicesStatusExW
*r
);
3546 _PUBLIC_
void ndr_print_svcctl_SCSendTSMessage(struct ndr_print
*ndr
, const char *name
, int flags
, const struct svcctl_SCSendTSMessage
*r
);
3548 /* The following definitions come from librpc/gen_ndr/ndr_winreg.c */
3550 _PUBLIC_
void ndr_print_winreg_AccessMask(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
3551 _PUBLIC_
void ndr_print_winreg_Type(struct ndr_print
*ndr
, const char *name
, enum winreg_Type r
);
3552 _PUBLIC_
enum ndr_err_code
ndr_push_winreg_String(struct ndr_push
*ndr
, int ndr_flags
, const struct winreg_String
*r
);
3553 _PUBLIC_
enum ndr_err_code
ndr_pull_winreg_String(struct ndr_pull
*ndr
, int ndr_flags
, struct winreg_String
*r
);
3554 _PUBLIC_
void ndr_print_winreg_String(struct ndr_print
*ndr
, const char *name
, const struct winreg_String
*r
);
3555 _PUBLIC_
void ndr_print_KeySecurityData(struct ndr_print
*ndr
, const char *name
, const struct KeySecurityData
*r
);
3556 _PUBLIC_
void ndr_print_winreg_SecBuf(struct ndr_print
*ndr
, const char *name
, const struct winreg_SecBuf
*r
);
3557 _PUBLIC_
void ndr_print_winreg_CreateAction(struct ndr_print
*ndr
, const char *name
, enum winreg_CreateAction r
);
3558 _PUBLIC_
void ndr_print_winreg_StringBuf(struct ndr_print
*ndr
, const char *name
, const struct winreg_StringBuf
*r
);
3559 _PUBLIC_
void ndr_print_winreg_ValNameBuf(struct ndr_print
*ndr
, const char *name
, const struct winreg_ValNameBuf
*r
);
3560 _PUBLIC_
void ndr_print_KeySecurityAttribute(struct ndr_print
*ndr
, const char *name
, const struct KeySecurityAttribute
*r
);
3561 _PUBLIC_
void ndr_print_QueryMultipleValue(struct ndr_print
*ndr
, const char *name
, const struct QueryMultipleValue
*r
);
3562 _PUBLIC_
void ndr_print_winreg_OpenHKCR(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_OpenHKCR
*r
);
3563 _PUBLIC_
void ndr_print_winreg_OpenHKCU(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_OpenHKCU
*r
);
3564 _PUBLIC_
void ndr_print_winreg_OpenHKLM(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_OpenHKLM
*r
);
3565 _PUBLIC_
void ndr_print_winreg_OpenHKPD(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_OpenHKPD
*r
);
3566 _PUBLIC_
void ndr_print_winreg_OpenHKU(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_OpenHKU
*r
);
3567 _PUBLIC_
void ndr_print_winreg_CloseKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_CloseKey
*r
);
3568 _PUBLIC_
void ndr_print_winreg_CreateKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_CreateKey
*r
);
3569 _PUBLIC_
void ndr_print_winreg_DeleteKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_DeleteKey
*r
);
3570 _PUBLIC_
void ndr_print_winreg_DeleteValue(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_DeleteValue
*r
);
3571 _PUBLIC_
void ndr_print_winreg_EnumKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_EnumKey
*r
);
3572 _PUBLIC_
void ndr_print_winreg_EnumValue(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_EnumValue
*r
);
3573 _PUBLIC_
void ndr_print_winreg_FlushKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_FlushKey
*r
);
3574 _PUBLIC_
void ndr_print_winreg_GetKeySecurity(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_GetKeySecurity
*r
);
3575 _PUBLIC_
void ndr_print_winreg_LoadKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_LoadKey
*r
);
3576 _PUBLIC_
void ndr_print_winreg_NotifyChangeKeyValue(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_NotifyChangeKeyValue
*r
);
3577 _PUBLIC_
void ndr_print_winreg_OpenKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_OpenKey
*r
);
3578 _PUBLIC_
void ndr_print_winreg_QueryInfoKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_QueryInfoKey
*r
);
3579 _PUBLIC_
void ndr_print_winreg_QueryValue(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_QueryValue
*r
);
3580 _PUBLIC_
void ndr_print_winreg_ReplaceKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_ReplaceKey
*r
);
3581 _PUBLIC_
void ndr_print_winreg_RestoreKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_RestoreKey
*r
);
3582 _PUBLIC_
void ndr_print_winreg_SaveKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_SaveKey
*r
);
3583 _PUBLIC_
void ndr_print_winreg_SetKeySecurity(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_SetKeySecurity
*r
);
3584 _PUBLIC_
void ndr_print_winreg_SetValue(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_SetValue
*r
);
3585 _PUBLIC_
void ndr_print_winreg_UnLoadKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_UnLoadKey
*r
);
3586 _PUBLIC_
void ndr_print_winreg_InitiateSystemShutdown(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_InitiateSystemShutdown
*r
);
3587 _PUBLIC_
void ndr_print_winreg_AbortSystemShutdown(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_AbortSystemShutdown
*r
);
3588 _PUBLIC_
void ndr_print_winreg_GetVersion(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_GetVersion
*r
);
3589 _PUBLIC_
void ndr_print_winreg_OpenHKCC(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_OpenHKCC
*r
);
3590 _PUBLIC_
void ndr_print_winreg_OpenHKDD(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_OpenHKDD
*r
);
3591 _PUBLIC_
void ndr_print_winreg_QueryMultipleValues(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_QueryMultipleValues
*r
);
3592 _PUBLIC_
void ndr_print_winreg_InitiateSystemShutdownEx(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_InitiateSystemShutdownEx
*r
);
3593 _PUBLIC_
void ndr_print_winreg_SaveKeyEx(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_SaveKeyEx
*r
);
3594 _PUBLIC_
void ndr_print_winreg_OpenHKPT(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_OpenHKPT
*r
);
3595 _PUBLIC_
void ndr_print_winreg_OpenHKPN(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_OpenHKPN
*r
);
3596 _PUBLIC_
void ndr_print_winreg_QueryMultipleValues2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct winreg_QueryMultipleValues2
*r
);
3598 /* The following definitions come from librpc/gen_ndr/ndr_wkssvc.c */
3600 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo100(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo100
*r
);
3601 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo101(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo101
*r
);
3602 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo102(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo102
*r
);
3603 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo502(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo502
*r
);
3604 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1010(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1010
*r
);
3605 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1011(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1011
*r
);
3606 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1012(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1012
*r
);
3607 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1013(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1013
*r
);
3608 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1018(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1018
*r
);
3609 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1023(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1023
*r
);
3610 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1027(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1027
*r
);
3611 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1028(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1028
*r
);
3612 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1032(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1032
*r
);
3613 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1033(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1033
*r
);
3614 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1041(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1041
*r
);
3615 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1042(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1042
*r
);
3616 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1043(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1043
*r
);
3617 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1044(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1044
*r
);
3618 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1045(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1045
*r
);
3619 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1046(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1046
*r
);
3620 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1047(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1047
*r
);
3621 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1048(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1048
*r
);
3622 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1049(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1049
*r
);
3623 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1050(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1050
*r
);
3624 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1051(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1051
*r
);
3625 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1052(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1052
*r
);
3626 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1053(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1053
*r
);
3627 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1054(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1054
*r
);
3628 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1055(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1055
*r
);
3629 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1056(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1056
*r
);
3630 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1057(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1057
*r
);
3631 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1058(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1058
*r
);
3632 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1059(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1059
*r
);
3633 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1060(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1060
*r
);
3634 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1061(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1061
*r
);
3635 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo1062(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaInfo1062
*r
);
3636 _PUBLIC_
void ndr_print_wkssvc_NetWkstaInfo(struct ndr_print
*ndr
, const char *name
, const union wkssvc_NetWkstaInfo
*r
);
3637 _PUBLIC_
void ndr_print_wkssvc_NetrWkstaUserInfo0(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetrWkstaUserInfo0
*r
);
3638 _PUBLIC_
void ndr_print_wkssvc_NetWkstaEnumUsersCtr0(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaEnumUsersCtr0
*r
);
3639 _PUBLIC_
void ndr_print_wkssvc_NetrWkstaUserInfo1(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetrWkstaUserInfo1
*r
);
3640 _PUBLIC_
void ndr_print_wkssvc_NetWkstaEnumUsersCtr1(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaEnumUsersCtr1
*r
);
3641 _PUBLIC_
void ndr_print_wkssvc_NetWkstaEnumUsersCtr(struct ndr_print
*ndr
, const char *name
, const union wkssvc_NetWkstaEnumUsersCtr
*r
);
3642 _PUBLIC_
void ndr_print_wkssvc_NetWkstaEnumUsersInfo(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaEnumUsersInfo
*r
);
3643 _PUBLIC_
void ndr_print_wkssvc_NetrWkstaUserInfo1101(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetrWkstaUserInfo1101
*r
);
3644 _PUBLIC_
void ndr_print_wkssvc_NetrWkstaUserInfo(struct ndr_print
*ndr
, const char *name
, const union wkssvc_NetrWkstaUserInfo
*r
);
3645 _PUBLIC_
void ndr_print_wkssvc_NetWkstaTransportInfo0(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaTransportInfo0
*r
);
3646 _PUBLIC_
void ndr_print_wkssvc_NetWkstaTransportCtr0(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaTransportCtr0
*r
);
3647 _PUBLIC_
void ndr_print_wkssvc_NetWkstaTransportCtr(struct ndr_print
*ndr
, const char *name
, const union wkssvc_NetWkstaTransportCtr
*r
);
3648 _PUBLIC_
void ndr_print_wkssvc_NetWkstaTransportInfo(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetWkstaTransportInfo
*r
);
3649 _PUBLIC_
void ndr_print_wkssvc_NetrUseInfo3(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetrUseInfo3
*r
);
3650 _PUBLIC_
void ndr_print_wkssvc_NetrUseInfo2(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetrUseInfo2
*r
);
3651 _PUBLIC_
void ndr_print_wkssvc_NetrUseInfo1(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetrUseInfo1
*r
);
3652 _PUBLIC_
void ndr_print_wkssvc_NetrUseInfo0(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetrUseInfo0
*r
);
3653 _PUBLIC_
void ndr_print_wkssvc_NetrUseGetInfoCtr(struct ndr_print
*ndr
, const char *name
, const union wkssvc_NetrUseGetInfoCtr
*r
);
3654 _PUBLIC_
void ndr_print_wkssvc_NetrUseEnumCtr2(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetrUseEnumCtr2
*r
);
3655 _PUBLIC_
void ndr_print_wkssvc_NetrUseEnumCtr1(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetrUseEnumCtr1
*r
);
3656 _PUBLIC_
void ndr_print_wkssvc_NetrUseEnumCtr0(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetrUseEnumCtr0
*r
);
3657 _PUBLIC_
void ndr_print_wkssvc_NetrUseEnumCtr(struct ndr_print
*ndr
, const char *name
, const union wkssvc_NetrUseEnumCtr
*r
);
3658 _PUBLIC_
void ndr_print_wkssvc_NetrUseEnumInfo(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetrUseEnumInfo
*r
);
3659 _PUBLIC_
void ndr_print_wkssvc_NetrWorkstationStatistics(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_NetrWorkstationStatistics
*r
);
3660 _PUBLIC_
void ndr_print_wkssvc_renameflags(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
3661 _PUBLIC_
void ndr_print_wkssvc_NetValidateNameType(struct ndr_print
*ndr
, const char *name
, enum wkssvc_NetValidateNameType r
);
3662 _PUBLIC_
void ndr_print_wkssvc_NetJoinStatus(struct ndr_print
*ndr
, const char *name
, enum wkssvc_NetJoinStatus r
);
3663 _PUBLIC_
void ndr_print_wkssvc_PasswordBuffer(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_PasswordBuffer
*r
);
3664 _PUBLIC_
void ndr_print_wkssvc_joinflags(struct ndr_print
*ndr
, const char *name
, uint32_t r
);
3665 _PUBLIC_
void ndr_print_wkssvc_ComputerNameType(struct ndr_print
*ndr
, const char *name
, enum wkssvc_ComputerNameType r
);
3666 _PUBLIC_
void ndr_print_wkssvc_ComputerNamesCtr(struct ndr_print
*ndr
, const char *name
, const struct wkssvc_ComputerNamesCtr
*r
);
3667 _PUBLIC_
void ndr_print_wkssvc_NetWkstaGetInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetWkstaGetInfo
*r
);
3668 _PUBLIC_
void ndr_print_wkssvc_NetWkstaSetInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetWkstaSetInfo
*r
);
3669 _PUBLIC_
void ndr_print_wkssvc_NetWkstaEnumUsers(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetWkstaEnumUsers
*r
);
3670 _PUBLIC_
void ndr_print_wkssvc_NetrWkstaUserGetInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrWkstaUserGetInfo
*r
);
3671 _PUBLIC_
void ndr_print_wkssvc_NetrWkstaUserSetInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrWkstaUserSetInfo
*r
);
3672 _PUBLIC_
void ndr_print_wkssvc_NetWkstaTransportEnum(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetWkstaTransportEnum
*r
);
3673 _PUBLIC_
void ndr_print_wkssvc_NetrWkstaTransportAdd(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrWkstaTransportAdd
*r
);
3674 _PUBLIC_
void ndr_print_wkssvc_NetrWkstaTransportDel(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrWkstaTransportDel
*r
);
3675 _PUBLIC_
void ndr_print_wkssvc_NetrUseAdd(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrUseAdd
*r
);
3676 _PUBLIC_
void ndr_print_wkssvc_NetrUseGetInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrUseGetInfo
*r
);
3677 _PUBLIC_
void ndr_print_wkssvc_NetrUseDel(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrUseDel
*r
);
3678 _PUBLIC_
void ndr_print_wkssvc_NetrUseEnum(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrUseEnum
*r
);
3679 _PUBLIC_
void ndr_print_wkssvc_NetrMessageBufferSend(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrMessageBufferSend
*r
);
3680 _PUBLIC_
void ndr_print_wkssvc_NetrWorkstationStatisticsGet(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrWorkstationStatisticsGet
*r
);
3681 _PUBLIC_
void ndr_print_wkssvc_NetrLogonDomainNameAdd(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrLogonDomainNameAdd
*r
);
3682 _PUBLIC_
void ndr_print_wkssvc_NetrLogonDomainNameDel(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrLogonDomainNameDel
*r
);
3683 _PUBLIC_
void ndr_print_wkssvc_NetrJoinDomain(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrJoinDomain
*r
);
3684 _PUBLIC_
void ndr_print_wkssvc_NetrUnjoinDomain(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrUnjoinDomain
*r
);
3685 _PUBLIC_
void ndr_print_wkssvc_NetrRenameMachineInDomain(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrRenameMachineInDomain
*r
);
3686 _PUBLIC_
void ndr_print_wkssvc_NetrValidateName(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrValidateName
*r
);
3687 _PUBLIC_
void ndr_print_wkssvc_NetrGetJoinInformation(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrGetJoinInformation
*r
);
3688 _PUBLIC_
void ndr_print_wkssvc_NetrGetJoinableOus(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrGetJoinableOus
*r
);
3689 _PUBLIC_
void ndr_print_wkssvc_NetrJoinDomain2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrJoinDomain2
*r
);
3690 _PUBLIC_
void ndr_print_wkssvc_NetrUnjoinDomain2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrUnjoinDomain2
*r
);
3691 _PUBLIC_
void ndr_print_wkssvc_NetrRenameMachineInDomain2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrRenameMachineInDomain2
*r
);
3692 _PUBLIC_
void ndr_print_wkssvc_NetrValidateName2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrValidateName2
*r
);
3693 _PUBLIC_
void ndr_print_wkssvc_NetrGetJoinableOus2(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrGetJoinableOus2
*r
);
3694 _PUBLIC_
void ndr_print_wkssvc_NetrAddAlternateComputerName(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrAddAlternateComputerName
*r
);
3695 _PUBLIC_
void ndr_print_wkssvc_NetrRemoveAlternateComputerName(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrRemoveAlternateComputerName
*r
);
3696 _PUBLIC_
void ndr_print_wkssvc_NetrSetPrimaryComputername(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrSetPrimaryComputername
*r
);
3697 _PUBLIC_
void ndr_print_wkssvc_NetrEnumerateComputerNames(struct ndr_print
*ndr
, const char *name
, int flags
, const struct wkssvc_NetrEnumerateComputerNames
*r
);
3699 /* The following definitions come from librpc/gen_ndr/ndr_xattr.c */
3701 _PUBLIC_
enum ndr_err_code
ndr_push_tdb_xattr(struct ndr_push
*ndr
, int ndr_flags
, const struct tdb_xattr
*r
);
3702 _PUBLIC_
enum ndr_err_code
ndr_pull_tdb_xattr(struct ndr_pull
*ndr
, int ndr_flags
, struct tdb_xattr
*r
);
3703 _PUBLIC_
void ndr_print_tdb_xattr(struct ndr_print
*ndr
, const char *name
, const struct tdb_xattr
*r
);
3704 _PUBLIC_
enum ndr_err_code
ndr_push_tdb_xattrs(struct ndr_push
*ndr
, int ndr_flags
, const struct tdb_xattrs
*r
);
3705 _PUBLIC_
enum ndr_err_code
ndr_pull_tdb_xattrs(struct ndr_pull
*ndr
, int ndr_flags
, struct tdb_xattrs
*r
);
3706 _PUBLIC_
void ndr_print_tdb_xattrs(struct ndr_print
*ndr
, const char *name
, const struct tdb_xattrs
*r
);
3708 /* The following definitions come from librpc/gen_ndr/srv_dfs.c */
3710 void netdfs_get_pipe_fns(struct api_struct
**fns
, int *n_fns
);
3711 NTSTATUS
rpc_netdfs_init(void);
3713 /* The following definitions come from librpc/gen_ndr/srv_dssetup.c */
3715 void dssetup_get_pipe_fns(struct api_struct
**fns
, int *n_fns
);
3716 NTSTATUS
rpc_dssetup_init(void);
3718 /* The following definitions come from librpc/gen_ndr/srv_echo.c */
3720 void rpcecho_get_pipe_fns(struct api_struct
**fns
, int *n_fns
);
3721 NTSTATUS
rpc_rpcecho_init(void);
3723 /* The following definitions come from librpc/gen_ndr/srv_eventlog.c */
3725 void eventlog_get_pipe_fns(struct api_struct
**fns
, int *n_fns
);
3726 NTSTATUS
rpc_eventlog_init(void);
3728 /* The following definitions come from librpc/gen_ndr/srv_initshutdown.c */
3730 void initshutdown_get_pipe_fns(struct api_struct
**fns
, int *n_fns
);
3731 NTSTATUS
rpc_initshutdown_init(void);
3733 /* The following definitions come from librpc/gen_ndr/srv_lsa.c */
3735 void lsarpc_get_pipe_fns(struct api_struct
**fns
, int *n_fns
);
3736 NTSTATUS
rpc_lsarpc_init(void);
3738 /* The following definitions come from librpc/gen_ndr/srv_netlogon.c */
3740 void netlogon_get_pipe_fns(struct api_struct
**fns
, int *n_fns
);
3741 NTSTATUS
rpc_netlogon_init(void);
3743 /* The following definitions come from librpc/gen_ndr/srv_ntsvcs.c */
3745 void ntsvcs_get_pipe_fns(struct api_struct
**fns
, int *n_fns
);
3746 NTSTATUS
rpc_ntsvcs_init(void);
3748 /* The following definitions come from librpc/gen_ndr/srv_samr.c */
3750 void samr_get_pipe_fns(struct api_struct
**fns
, int *n_fns
);
3751 NTSTATUS
rpc_samr_init(void);
3753 /* The following definitions come from librpc/gen_ndr/srv_srvsvc.c */
3755 void srvsvc_get_pipe_fns(struct api_struct
**fns
, int *n_fns
);
3756 NTSTATUS
rpc_srvsvc_init(void);
3758 /* The following definitions come from librpc/gen_ndr/srv_svcctl.c */
3760 void svcctl_get_pipe_fns(struct api_struct
**fns
, int *n_fns
);
3761 NTSTATUS
rpc_svcctl_init(void);
3763 /* The following definitions come from librpc/gen_ndr/srv_winreg.c */
3765 void winreg_get_pipe_fns(struct api_struct
**fns
, int *n_fns
);
3766 NTSTATUS
rpc_winreg_init(void);
3768 /* The following definitions come from librpc/gen_ndr/srv_wkssvc.c */
3770 void wkssvc_get_pipe_fns(struct api_struct
**fns
, int *n_fns
);
3771 NTSTATUS
rpc_wkssvc_init(void);
3773 /* The following definitions come from librpc/ndr/ndr.c */
3775 _PUBLIC_
size_t ndr_align_size(uint32_t offset
, size_t n
);
3776 _PUBLIC_
struct ndr_pull
*ndr_pull_init_blob(const DATA_BLOB
*blob
, TALLOC_CTX
*mem_ctx
);
3777 _PUBLIC_
enum ndr_err_code
ndr_pull_advance(struct ndr_pull
*ndr
, uint32_t size
);
3778 _PUBLIC_
void ndr_pull_save(struct ndr_pull
*ndr
, struct ndr_pull_save
*save
);
3779 _PUBLIC_
void ndr_pull_restore(struct ndr_pull
*ndr
, struct ndr_pull_save
*save
);
3780 _PUBLIC_
struct ndr_push
*ndr_push_init_ctx(TALLOC_CTX
*mem_ctx
);
3781 _PUBLIC_ DATA_BLOB
ndr_push_blob(struct ndr_push
*ndr
);
3782 _PUBLIC_
enum ndr_err_code
ndr_push_expand(struct ndr_push
*ndr
, uint32_t extra_size
);
3783 _PUBLIC_
void ndr_print_debug_helper(struct ndr_print
*ndr
, const char *format
, ...) _PRINTF_ATTRIBUTE(2,3);
3784 _PUBLIC_
void ndr_print_string_helper(struct ndr_print
*ndr
, const char *format
, ...) _PRINTF_ATTRIBUTE(2,3);
3785 _PUBLIC_
void ndr_print_debug(ndr_print_fn_t fn
, const char *name
, void *ptr
);
3786 _PUBLIC_
void ndr_print_union_debug(ndr_print_fn_t fn
, const char *name
, uint32_t level
, void *ptr
);
3787 _PUBLIC_
void ndr_print_function_debug(ndr_print_function_t fn
, const char *name
, int flags
, void *ptr
);
3788 _PUBLIC_
char *ndr_print_struct_string(TALLOC_CTX
*mem_ctx
, ndr_print_fn_t fn
, const char *name
, void *ptr
);
3789 _PUBLIC_
char *ndr_print_union_string(TALLOC_CTX
*mem_ctx
, ndr_print_fn_t fn
, const char *name
, uint32_t level
, void *ptr
);
3790 _PUBLIC_
char *ndr_print_function_string(TALLOC_CTX
*mem_ctx
,
3791 ndr_print_function_t fn
, const char *name
,
3792 int flags
, void *ptr
);
3793 _PUBLIC_
void ndr_set_flags(uint32_t *pflags
, uint32_t new_flags
);
3794 NTSTATUS
ndr_map_error2ntstatus(enum ndr_err_code ndr_err
);
3795 const char *ndr_errstr(enum ndr_err_code err
);
3796 _PUBLIC_
enum ndr_err_code
ndr_pull_error(struct ndr_pull
*ndr
,
3797 enum ndr_err_code ndr_err
,
3798 const char *format
, ...) _PRINTF_ATTRIBUTE(3,4);
3799 _PUBLIC_
enum ndr_err_code
ndr_push_error(struct ndr_push
*ndr
,
3800 enum ndr_err_code ndr_err
,
3801 const char *format
, ...) _PRINTF_ATTRIBUTE(3,4);
3802 _PUBLIC_
enum ndr_err_code
ndr_pull_subcontext_start(struct ndr_pull
*ndr
,
3803 struct ndr_pull
**_subndr
,
3806 _PUBLIC_
enum ndr_err_code
ndr_pull_subcontext_end(struct ndr_pull
*ndr
,
3807 struct ndr_pull
*subndr
,
3810 _PUBLIC_
enum ndr_err_code
ndr_push_subcontext_start(struct ndr_push
*ndr
,
3811 struct ndr_push
**_subndr
,
3814 _PUBLIC_
enum ndr_err_code
ndr_push_subcontext_end(struct ndr_push
*ndr
,
3815 struct ndr_push
*subndr
,
3818 _PUBLIC_
enum ndr_err_code
ndr_token_store(TALLOC_CTX
*mem_ctx
,
3819 struct ndr_token_list
**list
,
3822 _PUBLIC_
enum ndr_err_code
ndr_token_retrieve_cmp_fn(struct ndr_token_list
**list
, const void *key
, uint32_t *v
,
3823 comparison_fn_t _cmp_fn
, bool _remove_tok
);
3824 _PUBLIC_
enum ndr_err_code
ndr_token_retrieve(struct ndr_token_list
**list
, const void *key
, uint32_t *v
);
3825 _PUBLIC_
uint32_t ndr_token_peek(struct ndr_token_list
**list
, const void *key
);
3826 _PUBLIC_
enum ndr_err_code
ndr_pull_array_size(struct ndr_pull
*ndr
, const void *p
);
3827 _PUBLIC_
uint32_t ndr_get_array_size(struct ndr_pull
*ndr
, const void *p
);
3828 _PUBLIC_
enum ndr_err_code
ndr_check_array_size(struct ndr_pull
*ndr
, void *p
, uint32_t size
);
3829 _PUBLIC_
enum ndr_err_code
ndr_pull_array_length(struct ndr_pull
*ndr
, const void *p
);
3830 _PUBLIC_
uint32_t ndr_get_array_length(struct ndr_pull
*ndr
, const void *p
);
3831 _PUBLIC_
enum ndr_err_code
ndr_check_array_length(struct ndr_pull
*ndr
, void *p
, uint32_t length
);
3832 _PUBLIC_
enum ndr_err_code
ndr_push_set_switch_value(struct ndr_push
*ndr
, const void *p
, uint32_t val
);
3833 _PUBLIC_
enum ndr_err_code
ndr_pull_set_switch_value(struct ndr_pull
*ndr
, const void *p
, uint32_t val
);
3834 _PUBLIC_
enum ndr_err_code
ndr_print_set_switch_value(struct ndr_print
*ndr
, const void *p
, uint32_t val
);
3835 _PUBLIC_
uint32_t ndr_push_get_switch_value(struct ndr_push
*ndr
, const void *p
);
3836 _PUBLIC_
uint32_t ndr_pull_get_switch_value(struct ndr_pull
*ndr
, const void *p
);
3837 _PUBLIC_
uint32_t ndr_print_get_switch_value(struct ndr_print
*ndr
, const void *p
);
3838 _PUBLIC_
enum ndr_err_code
ndr_pull_struct_blob(const DATA_BLOB
*blob
, TALLOC_CTX
*mem_ctx
, void *p
,
3839 ndr_pull_flags_fn_t fn
);
3840 _PUBLIC_
enum ndr_err_code
ndr_pull_struct_blob_all(const DATA_BLOB
*blob
, TALLOC_CTX
*mem_ctx
, void *p
,
3841 ndr_pull_flags_fn_t fn
);
3842 _PUBLIC_
enum ndr_err_code
ndr_pull_union_blob(const DATA_BLOB
*blob
, TALLOC_CTX
*mem_ctx
, void *p
,
3843 uint32_t level
, ndr_pull_flags_fn_t fn
);
3844 _PUBLIC_
enum ndr_err_code
ndr_pull_union_blob_all(const DATA_BLOB
*blob
, TALLOC_CTX
*mem_ctx
, void *p
,
3845 uint32_t level
, ndr_pull_flags_fn_t fn
);
3846 _PUBLIC_
enum ndr_err_code
ndr_push_struct_blob(DATA_BLOB
*blob
, TALLOC_CTX
*mem_ctx
, const void *p
,
3847 ndr_push_flags_fn_t fn
);
3848 _PUBLIC_
enum ndr_err_code
ndr_push_union_blob(DATA_BLOB
*blob
, TALLOC_CTX
*mem_ctx
, void *p
,
3849 uint32_t level
, ndr_push_flags_fn_t fn
);
3850 _PUBLIC_
size_t ndr_size_struct(const void *p
, int flags
, ndr_push_flags_fn_t push
);
3851 _PUBLIC_
size_t ndr_size_union(const void *p
, int flags
, uint32_t level
, ndr_push_flags_fn_t push
);
3852 _PUBLIC_
uint32_t ndr_push_get_relative_base_offset(struct ndr_push
*ndr
);
3853 _PUBLIC_
void ndr_push_restore_relative_base_offset(struct ndr_push
*ndr
, uint32_t offset
);
3854 _PUBLIC_
enum ndr_err_code
ndr_push_setup_relative_base_offset1(struct ndr_push
*ndr
, const void *p
, uint32_t offset
);
3855 _PUBLIC_
enum ndr_err_code
ndr_push_setup_relative_base_offset2(struct ndr_push
*ndr
, const void *p
);
3856 _PUBLIC_
enum ndr_err_code
ndr_push_relative_ptr1(struct ndr_push
*ndr
, const void *p
);
3857 _PUBLIC_
enum ndr_err_code
ndr_push_relative_ptr2(struct ndr_push
*ndr
, const void *p
);
3858 _PUBLIC_
uint32_t ndr_pull_get_relative_base_offset(struct ndr_pull
*ndr
);
3859 _PUBLIC_
void ndr_pull_restore_relative_base_offset(struct ndr_pull
*ndr
, uint32_t offset
);
3860 _PUBLIC_
enum ndr_err_code
ndr_pull_setup_relative_base_offset1(struct ndr_pull
*ndr
, const void *p
, uint32_t offset
);
3861 _PUBLIC_
enum ndr_err_code
ndr_pull_setup_relative_base_offset2(struct ndr_pull
*ndr
, const void *p
);
3862 _PUBLIC_
enum ndr_err_code
ndr_pull_relative_ptr1(struct ndr_pull
*ndr
, const void *p
, uint32_t rel_offset
);
3863 _PUBLIC_
enum ndr_err_code
ndr_pull_relative_ptr2(struct ndr_pull
*ndr
, const void *p
);
3865 /* The following definitions come from librpc/ndr/ndr_basic.c */
3867 _PUBLIC_
void ndr_check_padding(struct ndr_pull
*ndr
, size_t n
);
3868 _PUBLIC_
enum ndr_err_code
ndr_pull_int8(struct ndr_pull
*ndr
, int ndr_flags
, int8_t *v
);
3869 _PUBLIC_
enum ndr_err_code
ndr_pull_uint8(struct ndr_pull
*ndr
, int ndr_flags
, uint8_t *v
);
3870 _PUBLIC_
enum ndr_err_code
ndr_pull_int16(struct ndr_pull
*ndr
, int ndr_flags
, int16_t *v
);
3871 _PUBLIC_
enum ndr_err_code
ndr_pull_uint16(struct ndr_pull
*ndr
, int ndr_flags
, uint16_t *v
);
3872 _PUBLIC_
enum ndr_err_code
ndr_pull_int32(struct ndr_pull
*ndr
, int ndr_flags
, int32_t *v
);
3873 _PUBLIC_
enum ndr_err_code
ndr_pull_uint32(struct ndr_pull
*ndr
, int ndr_flags
, uint32_t *v
);
3874 _PUBLIC_
enum ndr_err_code
ndr_pull_generic_ptr(struct ndr_pull
*ndr
, uint32_t *v
);
3875 _PUBLIC_
enum ndr_err_code
ndr_pull_ref_ptr(struct ndr_pull
*ndr
, uint32_t *v
);
3876 _PUBLIC_
enum ndr_err_code
ndr_pull_udlong(struct ndr_pull
*ndr
, int ndr_flags
, uint64_t *v
);
3877 _PUBLIC_
enum ndr_err_code
ndr_pull_udlongr(struct ndr_pull
*ndr
, int ndr_flags
, uint64_t *v
);
3878 _PUBLIC_
enum ndr_err_code
ndr_pull_dlong(struct ndr_pull
*ndr
, int ndr_flags
, int64_t *v
);
3879 _PUBLIC_
enum ndr_err_code
ndr_pull_hyper(struct ndr_pull
*ndr
, int ndr_flags
, uint64_t *v
);
3880 _PUBLIC_
enum ndr_err_code
ndr_pull_pointer(struct ndr_pull
*ndr
, int ndr_flags
, void* *v
);
3881 _PUBLIC_
enum ndr_err_code
ndr_pull_NTSTATUS(struct ndr_pull
*ndr
, int ndr_flags
, NTSTATUS
*status
);
3882 _PUBLIC_
enum ndr_err_code
ndr_push_NTSTATUS(struct ndr_push
*ndr
, int ndr_flags
, NTSTATUS status
);
3883 _PUBLIC_
void ndr_print_NTSTATUS(struct ndr_print
*ndr
, const char *name
, NTSTATUS r
);
3884 _PUBLIC_
enum ndr_err_code
ndr_pull_WERROR(struct ndr_pull
*ndr
, int ndr_flags
, WERROR
*status
);
3885 _PUBLIC_
enum ndr_err_code
ndr_push_WERROR(struct ndr_push
*ndr
, int ndr_flags
, WERROR status
);
3886 _PUBLIC_
void ndr_print_WERROR(struct ndr_print
*ndr
, const char *name
, WERROR r
);
3887 _PUBLIC_
enum ndr_err_code
ndr_pull_bytes(struct ndr_pull
*ndr
, uint8_t *data
, uint32_t n
);
3888 _PUBLIC_
enum ndr_err_code
ndr_pull_array_uint8(struct ndr_pull
*ndr
, int ndr_flags
, uint8_t *data
, uint32_t n
);
3889 _PUBLIC_
enum ndr_err_code
ndr_push_int8(struct ndr_push
*ndr
, int ndr_flags
, int8_t v
);
3890 _PUBLIC_
enum ndr_err_code
ndr_push_uint8(struct ndr_push
*ndr
, int ndr_flags
, uint8_t v
);
3891 _PUBLIC_
enum ndr_err_code
ndr_push_int16(struct ndr_push
*ndr
, int ndr_flags
, int16_t v
);
3892 _PUBLIC_
enum ndr_err_code
ndr_push_uint16(struct ndr_push
*ndr
, int ndr_flags
, uint16_t v
);
3893 _PUBLIC_
enum ndr_err_code
ndr_push_int32(struct ndr_push
*ndr
, int ndr_flags
, int32_t v
);
3894 _PUBLIC_
enum ndr_err_code
ndr_push_uint32(struct ndr_push
*ndr
, int ndr_flags
, uint32_t v
);
3895 _PUBLIC_
enum ndr_err_code
ndr_push_udlong(struct ndr_push
*ndr
, int ndr_flags
, uint64_t v
);
3896 _PUBLIC_
enum ndr_err_code
ndr_push_udlongr(struct ndr_push
*ndr
, int ndr_flags
, uint64_t v
);
3897 _PUBLIC_
enum ndr_err_code
ndr_push_dlong(struct ndr_push
*ndr
, int ndr_flags
, int64_t v
);
3898 _PUBLIC_
enum ndr_err_code
ndr_push_hyper(struct ndr_push
*ndr
, int ndr_flags
, uint64_t v
);
3899 _PUBLIC_
enum ndr_err_code
ndr_push_pointer(struct ndr_push
*ndr
, int ndr_flags
, void* v
);
3900 _PUBLIC_
enum ndr_err_code
ndr_push_align(struct ndr_push
*ndr
, size_t size
);
3901 _PUBLIC_
enum ndr_err_code
ndr_pull_align(struct ndr_pull
*ndr
, size_t size
);
3902 _PUBLIC_
enum ndr_err_code
ndr_push_bytes(struct ndr_push
*ndr
, const uint8_t *data
, uint32_t n
);
3903 _PUBLIC_
enum ndr_err_code
ndr_push_zero(struct ndr_push
*ndr
, uint32_t n
);
3904 _PUBLIC_
enum ndr_err_code
ndr_push_array_uint8(struct ndr_push
*ndr
, int ndr_flags
, const uint8_t *data
, uint32_t n
);
3905 _PUBLIC_
void ndr_push_save(struct ndr_push
*ndr
, struct ndr_push_save
*save
);
3906 _PUBLIC_
void ndr_push_restore(struct ndr_push
*ndr
, struct ndr_push_save
*save
);
3907 _PUBLIC_
enum ndr_err_code
ndr_push_unique_ptr(struct ndr_push
*ndr
, const void *p
);
3908 _PUBLIC_
enum ndr_err_code
ndr_push_full_ptr(struct ndr_push
*ndr
, const void *p
);
3909 _PUBLIC_
enum ndr_err_code
ndr_push_ref_ptr(struct ndr_push
*ndr
);
3910 _PUBLIC_
enum ndr_err_code
ndr_push_NTTIME(struct ndr_push
*ndr
, int ndr_flags
, NTTIME t
);
3911 _PUBLIC_
enum ndr_err_code
ndr_pull_NTTIME(struct ndr_pull
*ndr
, int ndr_flags
, NTTIME
*t
);
3912 _PUBLIC_
enum ndr_err_code
ndr_push_NTTIME_1sec(struct ndr_push
*ndr
, int ndr_flags
, NTTIME t
);
3913 _PUBLIC_
enum ndr_err_code
ndr_pull_NTTIME_1sec(struct ndr_pull
*ndr
, int ndr_flags
, NTTIME
*t
);
3914 _PUBLIC_
enum ndr_err_code
ndr_pull_NTTIME_hyper(struct ndr_pull
*ndr
, int ndr_flags
, NTTIME
*t
);
3915 _PUBLIC_
enum ndr_err_code
ndr_push_NTTIME_hyper(struct ndr_push
*ndr
, int ndr_flags
, NTTIME t
);
3916 _PUBLIC_
enum ndr_err_code
ndr_push_time_t(struct ndr_push
*ndr
, int ndr_flags
, time_t t
);
3917 _PUBLIC_
enum ndr_err_code
ndr_pull_time_t(struct ndr_pull
*ndr
, int ndr_flags
, time_t *t
);
3918 _PUBLIC_
enum ndr_err_code
ndr_pull_ipv4address(struct ndr_pull
*ndr
, int ndr_flags
, const char **address
);
3919 _PUBLIC_
enum ndr_err_code
ndr_push_ipv4address(struct ndr_push
*ndr
, int ndr_flags
, const char *address
);
3920 _PUBLIC_
void ndr_print_ipv4address(struct ndr_print
*ndr
, const char *name
,
3921 const char *address
);
3922 _PUBLIC_
void ndr_print_struct(struct ndr_print
*ndr
, const char *name
, const char *type
);
3923 _PUBLIC_
void ndr_print_enum(struct ndr_print
*ndr
, const char *name
, const char *type
,
3924 const char *val
, uint32_t value
);
3925 _PUBLIC_
void ndr_print_bitmap_flag(struct ndr_print
*ndr
, size_t size
, const char *flag_name
, uint32_t flag
, uint32_t value
);
3926 _PUBLIC_
void ndr_print_int8(struct ndr_print
*ndr
, const char *name
, int8_t v
);
3927 _PUBLIC_
void ndr_print_uint8(struct ndr_print
*ndr
, const char *name
, uint8_t v
);
3928 _PUBLIC_
void ndr_print_int16(struct ndr_print
*ndr
, const char *name
, int16_t v
);
3929 _PUBLIC_
void ndr_print_uint16(struct ndr_print
*ndr
, const char *name
, uint16_t v
);
3930 _PUBLIC_
void ndr_print_int32(struct ndr_print
*ndr
, const char *name
, int32_t v
);
3931 _PUBLIC_
void ndr_print_uint32(struct ndr_print
*ndr
, const char *name
, uint32_t v
);
3932 _PUBLIC_
void ndr_print_udlong(struct ndr_print
*ndr
, const char *name
, uint64_t v
);
3933 _PUBLIC_
void ndr_print_udlongr(struct ndr_print
*ndr
, const char *name
, uint64_t v
);
3934 _PUBLIC_
void ndr_print_dlong(struct ndr_print
*ndr
, const char *name
, int64_t v
);
3935 _PUBLIC_
void ndr_print_hyper(struct ndr_print
*ndr
, const char *name
, uint64_t v
);
3936 _PUBLIC_
void ndr_print_pointer(struct ndr_print
*ndr
, const char *name
, void *v
);
3937 _PUBLIC_
void ndr_print_ptr(struct ndr_print
*ndr
, const char *name
, const void *p
);
3938 _PUBLIC_
void ndr_print_NTTIME(struct ndr_print
*ndr
, const char *name
, NTTIME t
);
3939 _PUBLIC_
void ndr_print_NTTIME_1sec(struct ndr_print
*ndr
, const char *name
, NTTIME t
);
3940 _PUBLIC_
void ndr_print_NTTIME_hyper(struct ndr_print
*ndr
, const char *name
, NTTIME t
);
3941 _PUBLIC_
void ndr_print_time_t(struct ndr_print
*ndr
, const char *name
, time_t t
);
3942 _PUBLIC_
void ndr_print_union(struct ndr_print
*ndr
, const char *name
, int level
, const char *type
);
3943 _PUBLIC_
void ndr_print_bad_level(struct ndr_print
*ndr
, const char *name
, uint16_t level
);
3944 _PUBLIC_
void ndr_print_array_uint8(struct ndr_print
*ndr
, const char *name
,
3945 const uint8_t *data
, uint32_t count
);
3946 _PUBLIC_
void ndr_print_DATA_BLOB(struct ndr_print
*ndr
, const char *name
, DATA_BLOB r
);
3947 _PUBLIC_
enum ndr_err_code
ndr_push_DATA_BLOB(struct ndr_push
*ndr
, int ndr_flags
, DATA_BLOB blob
);
3948 _PUBLIC_
enum ndr_err_code
ndr_pull_DATA_BLOB(struct ndr_pull
*ndr
, int ndr_flags
, DATA_BLOB
*blob
);
3949 _PUBLIC_
uint32_t ndr_size_DATA_BLOB(int ret
, const DATA_BLOB
*data
, int flags
);
3950 _PUBLIC_
void ndr_print_bool(struct ndr_print
*ndr
, const char *name
, const bool b
);
3951 _PUBLIC_
void ndr_print_sockaddr_storage(struct ndr_print
*ndr
, const char *name
, const struct sockaddr_storage
*ss
);
3953 /* The following definitions come from librpc/ndr/ndr_krb5pac.c */
3955 enum ndr_err_code
ndr_push_PAC_BUFFER(struct ndr_push
*ndr
, int ndr_flags
, const struct PAC_BUFFER
*r
);
3956 enum ndr_err_code
ndr_pull_PAC_BUFFER(struct ndr_pull
*ndr
, int ndr_flags
, struct PAC_BUFFER
*r
);
3957 void ndr_print_PAC_BUFFER(struct ndr_print
*ndr
, const char *name
, const struct PAC_BUFFER
*r
);
3959 /* The following definitions come from librpc/ndr/ndr_misc.c */
3961 bool all_zero(const uint8_t *ptr
, size_t size
);
3962 void ndr_print_GUID(struct ndr_print
*ndr
, const char *name
, const struct GUID
*guid
);
3963 enum ndr_err_code
ndr_push_server_id(struct ndr_push
*ndr
, int ndr_flags
, const struct server_id
*r
);
3964 enum ndr_err_code
ndr_pull_server_id(struct ndr_pull
*ndr
, int ndr_flags
, struct server_id
*r
);
3965 void ndr_print_server_id(struct ndr_print
*ndr
, const char *name
, const struct server_id
*r
);
3967 /* The following definitions come from librpc/ndr/ndr_sec_helper.c */
3969 size_t ndr_size_dom_sid(const struct dom_sid
*sid
, int flags
);
3970 size_t ndr_size_dom_sid28(const struct dom_sid
*sid
, int flags
);
3971 size_t ndr_size_dom_sid0(const struct dom_sid
*sid
, int flags
);
3972 enum ndr_err_code
ndr_pull_security_ace(struct ndr_pull
*ndr
, int ndr_flags
, struct security_ace
*r
);
3973 size_t ndr_size_security_ace(const struct security_ace
*ace
, int flags
);
3974 size_t ndr_size_security_acl(const struct security_acl
*acl
, int flags
);
3975 size_t ndr_size_security_descriptor(const struct security_descriptor
*sd
, int flags
);
3976 void ndr_print_dom_sid(struct ndr_print
*ndr
, const char *name
, const struct dom_sid
*sid
);
3977 void ndr_print_dom_sid2(struct ndr_print
*ndr
, const char *name
, const struct dom_sid
*sid
);
3978 void ndr_print_dom_sid28(struct ndr_print
*ndr
, const char *name
, const struct dom_sid
*sid
);
3979 void ndr_print_dom_sid0(struct ndr_print
*ndr
, const char *name
, const struct dom_sid
*sid
);
3981 /* The following definitions come from librpc/ndr/ndr_string.c */
3983 _PUBLIC_
enum ndr_err_code
ndr_pull_string(struct ndr_pull
*ndr
, int ndr_flags
, const char **s
);
3984 _PUBLIC_
enum ndr_err_code
ndr_push_string(struct ndr_push
*ndr
, int ndr_flags
, const char *s
);
3985 _PUBLIC_
size_t ndr_string_array_size(struct ndr_push
*ndr
, const char *s
);
3986 _PUBLIC_
void ndr_print_string(struct ndr_print
*ndr
, const char *name
, const char *s
);
3987 _PUBLIC_
uint32_t ndr_size_string(int ret
, const char * const* string
, int flags
) ;
3988 _PUBLIC_
enum ndr_err_code
ndr_pull_string_array(struct ndr_pull
*ndr
, int ndr_flags
, const char ***_a
);
3989 _PUBLIC_
enum ndr_err_code
ndr_push_string_array(struct ndr_push
*ndr
, int ndr_flags
, const char **a
);
3990 _PUBLIC_
void ndr_print_string_array(struct ndr_print
*ndr
, const char *name
, const char **a
);
3991 _PUBLIC_
uint32_t ndr_string_length(const void *_var
, uint32_t element_size
);
3992 _PUBLIC_
enum ndr_err_code
ndr_check_string_terminator(struct ndr_pull
*ndr
, uint32_t count
, uint32_t element_size
);
3993 _PUBLIC_
enum ndr_err_code
ndr_pull_charset(struct ndr_pull
*ndr
, int ndr_flags
, const char **var
, uint32_t length
, uint8_t byte_mul
, charset_t chset
);
3994 _PUBLIC_
enum ndr_err_code
ndr_push_charset(struct ndr_push
*ndr
, int ndr_flags
, const char *var
, uint32_t length
, uint8_t byte_mul
, charset_t chset
);
3995 _PUBLIC_
uint32_t ndr_charset_length(const void *var
, charset_t chset
);
3997 /* The following definitions come from librpc/ndr/sid.c */
3999 enum ndr_err_code
ndr_push_dom_sid(struct ndr_push
*ndr
, int ndr_flags
, const struct dom_sid
*r
);
4000 enum ndr_err_code
ndr_pull_dom_sid(struct ndr_pull
*ndr
, int ndr_flags
, struct dom_sid
*r
);
4001 char *dom_sid_string(TALLOC_CTX
*mem_ctx
, const struct dom_sid
*sid
);
4002 enum ndr_err_code
ndr_pull_dom_sid2(struct ndr_pull
*ndr
, int ndr_flags
, struct dom_sid
*sid
);
4003 enum ndr_err_code
ndr_push_dom_sid2(struct ndr_push
*ndr
, int ndr_flags
, const struct dom_sid
*sid
);
4004 enum ndr_err_code
ndr_pull_dom_sid28(struct ndr_pull
*ndr
, int ndr_flags
, struct dom_sid
*sid
);
4005 enum ndr_err_code
ndr_push_dom_sid28(struct ndr_push
*ndr
, int ndr_flags
, const struct dom_sid
*sid
);
4006 enum ndr_err_code
ndr_pull_dom_sid0(struct ndr_pull
*ndr
, int ndr_flags
, struct dom_sid
*sid
);
4007 enum ndr_err_code
ndr_push_dom_sid0(struct ndr_push
*ndr
, int ndr_flags
, const struct dom_sid
*sid
);
4009 /* The following definitions come from librpc/ndr/uuid.c */
4011 _PUBLIC_ NTSTATUS
GUID_from_string(const char *s
, struct GUID
*guid
);
4012 _PUBLIC_ NTSTATUS
NS_GUID_from_string(const char *s
, struct GUID
*guid
);
4013 struct GUID
GUID_random(void);
4014 _PUBLIC_
struct GUID
GUID_zero(void);
4015 _PUBLIC_
bool GUID_all_zero(const struct GUID
*u
);
4016 _PUBLIC_
bool GUID_equal(const struct GUID
*u1
, const struct GUID
*u2
);
4017 _PUBLIC_
int GUID_compare(const struct GUID
*u1
, const struct GUID
*u2
);
4018 _PUBLIC_
char *GUID_string(TALLOC_CTX
*mem_ctx
, const struct GUID
*guid
);
4019 _PUBLIC_
char *GUID_string2(TALLOC_CTX
*mem_ctx
, const struct GUID
*guid
);
4020 _PUBLIC_
char *NS_GUID_string(TALLOC_CTX
*mem_ctx
, const struct GUID
*guid
);
4021 _PUBLIC_
bool policy_handle_empty(struct policy_handle
*h
) ;
4023 /* The following definitions come from libsmb/asn1.c */
4025 void asn1_free(ASN1_DATA
*data
);
4026 bool asn1_write(ASN1_DATA
*data
, const void *p
, int len
);
4027 bool asn1_write_uint8(ASN1_DATA
*data
, uint8 v
);
4028 bool asn1_push_tag(ASN1_DATA
*data
, uint8 tag
);
4029 bool asn1_pop_tag(ASN1_DATA
*data
);
4030 bool asn1_write_Integer(ASN1_DATA
*data
, int i
);
4031 bool asn1_write_OID(ASN1_DATA
*data
, const char *OID
);
4032 bool asn1_write_OctetString(ASN1_DATA
*data
, const void *p
, size_t length
);
4033 bool asn1_write_GeneralString(ASN1_DATA
*data
, const char *s
);
4034 bool asn1_write_BOOLEAN(ASN1_DATA
*data
, bool v
);
4035 bool asn1_write_BOOLEAN2(ASN1_DATA
*data
, bool v
);
4036 bool asn1_check_BOOLEAN(ASN1_DATA
*data
, bool v
);
4037 bool asn1_load(ASN1_DATA
*data
, DATA_BLOB blob
);
4038 bool asn1_read(ASN1_DATA
*data
, void *p
, int len
);
4039 bool asn1_read_uint8(ASN1_DATA
*data
, uint8
*v
);
4040 bool asn1_check_tag(ASN1_DATA
*data
, uint8 tag
);
4041 bool asn1_start_tag(ASN1_DATA
*data
, uint8 tag
);
4042 bool asn1_end_tag(ASN1_DATA
*data
);
4043 int asn1_tag_remaining(ASN1_DATA
*data
);
4044 bool asn1_read_OID(ASN1_DATA
*data
, char **OID
);
4045 bool asn1_check_OID(ASN1_DATA
*data
, const char *OID
);
4046 bool asn1_read_GeneralString(ASN1_DATA
*data
, char **s
);
4047 bool asn1_read_OctetString(ASN1_DATA
*data
, DATA_BLOB
*blob
);
4048 bool asn1_read_Integer(ASN1_DATA
*data
, int *i
);
4049 bool asn1_check_enumerated(ASN1_DATA
*data
, int v
);
4050 bool asn1_write_enumerated(ASN1_DATA
*data
, uint8 v
);
4052 /* The following definitions come from libsmb/async_smb.c */
4054 NTSTATUS
cli_pull_error(char *buf
);
4055 void cli_set_error(struct cli_state
*cli
, NTSTATUS status
);
4056 struct async_req
*cli_request_new(TALLOC_CTX
*mem_ctx
,
4057 struct event_context
*ev
,
4058 struct cli_state
*cli
,
4059 uint8_t num_words
, size_t num_bytes
,
4060 struct cli_request
**preq
);
4061 struct cli_request
*cli_request_get(struct async_req
*req
);
4062 struct cli_tmp_event
*cli_tmp_event_ctx(TALLOC_CTX
*mem_ctx
,
4063 struct cli_state
*cli
);
4064 NTSTATUS
cli_add_event_ctx(struct cli_state
*cli
,
4065 struct event_context
*event_ctx
);
4067 /* The following definitions come from libsmb/cliconnect.c */
4069 ADS_STATUS
cli_session_setup_spnego(struct cli_state
*cli
, const char *user
,
4070 const char *pass
, const char *user_domain
,
4071 const char * dest_realm
);
4072 NTSTATUS
cli_session_setup(struct cli_state
*cli
,
4074 const char *pass
, int passlen
,
4075 const char *ntpass
, int ntpasslen
,
4076 const char *workgroup
);
4077 bool cli_ulogoff(struct cli_state
*cli
);
4078 bool cli_send_tconX(struct cli_state
*cli
,
4079 const char *share
, const char *dev
, const char *pass
, int passlen
);
4080 bool cli_tdis(struct cli_state
*cli
);
4081 void cli_negprot_send(struct cli_state
*cli
);
4082 bool cli_negprot(struct cli_state
*cli
);
4083 bool cli_session_request(struct cli_state
*cli
,
4084 struct nmb_name
*calling
, struct nmb_name
*called
);
4085 NTSTATUS
cli_connect(struct cli_state
*cli
,
4087 struct sockaddr_storage
*dest_ss
);
4088 NTSTATUS
cli_start_connection(struct cli_state
**output_cli
,
4089 const char *my_name
,
4090 const char *dest_host
,
4091 struct sockaddr_storage
*dest_ss
, int port
,
4092 int signing_state
, int flags
,
4094 NTSTATUS
cli_full_connection(struct cli_state
**output_cli
,
4095 const char *my_name
,
4096 const char *dest_host
,
4097 struct sockaddr_storage
*dest_ss
, int port
,
4098 const char *service
, const char *service_type
,
4099 const char *user
, const char *domain
,
4100 const char *password
, int flags
,
4103 bool attempt_netbios_session_request(struct cli_state
**ppcli
, const char *srchost
, const char *desthost
,
4104 struct sockaddr_storage
*pdest_ss
);
4105 NTSTATUS
cli_raw_tcon(struct cli_state
*cli
,
4106 const char *service
, const char *pass
, const char *dev
,
4107 uint16
*max_xmit
, uint16
*tid
);
4108 struct cli_state
*get_ipc_connect(char *server
,
4109 struct sockaddr_storage
*server_ss
,
4110 const struct user_auth_info
*user_info
);
4111 struct cli_state
*get_ipc_connect_master_ip(TALLOC_CTX
*ctx
,
4112 struct ip_service
*mb_ip
,
4113 const struct user_auth_info
*user_info
,
4114 char **pp_workgroup_out
);
4115 struct cli_state
*get_ipc_connect_master_ip_bcast(TALLOC_CTX
*ctx
,
4116 const struct user_auth_info
*user_info
,
4117 char **pp_workgroup_out
);
4119 /* The following definitions come from libsmb/clidfs.c */
4121 NTSTATUS
cli_cm_force_encryption(struct cli_state
*c
,
4122 const char *username
,
4123 const char *password
,
4125 const char *sharename
);
4126 const char *cli_cm_get_mntpoint(struct cli_state
*c
);
4127 struct cli_state
*cli_cm_open(TALLOC_CTX
*ctx
,
4128 struct cli_state
*referring_cli
,
4132 bool force_encrypt
);
4133 void cli_cm_shutdown(void);
4134 void cli_cm_display(void);
4135 void cli_cm_set_credentials(void);
4136 void cli_cm_set_port(int port_number
);
4137 void cli_cm_set_dest_name_type(int type
);
4138 void cli_cm_set_signing_state(int state
);
4139 void cli_cm_set_username(const char *username
);
4140 void cli_cm_set_password(const char *newpass
);
4141 void cli_cm_set_use_kerberos(void);
4142 void cli_cm_set_fallback_after_kerberos(void);
4143 void cli_cm_set_dest_ss(struct sockaddr_storage
*pss
);
4144 bool cli_dfs_get_referral(TALLOC_CTX
*ctx
,
4145 struct cli_state
*cli
,
4147 CLIENT_DFS_REFERRAL
**refs
,
4150 bool cli_resolve_path(TALLOC_CTX
*ctx
,
4151 const char *mountpt
,
4152 struct cli_state
*rootcli
,
4154 struct cli_state
**targetcli
,
4155 char **pp_targetpath
);
4157 /* The following definitions come from libsmb/clidgram.c */
4159 bool cli_send_mailslot(struct messaging_context
*msg_ctx
,
4160 bool unique
, const char *mailslot
,
4163 const char *srcname
, int src_type
,
4164 const char *dstname
, int dest_type
,
4165 const struct sockaddr_storage
*dest_ss
);
4166 bool send_getdc_request(TALLOC_CTX
*mem_ctx
,
4167 struct messaging_context
*msg_ctx
,
4168 struct sockaddr_storage
*dc_ss
,
4169 const char *domain_name
,
4171 uint32_t nt_version
);
4172 bool receive_getdc_response(TALLOC_CTX
*mem_ctx
,
4173 struct sockaddr_storage
*dc_ss
,
4174 const char *domain_name
,
4175 uint32_t *nt_version
,
4176 const char **dc_name
,
4177 union nbt_cldap_netlogon
**reply
);
4179 /* The following definitions come from libsmb/clientgen.c */
4181 int cli_set_message(char *buf
,int num_words
,int num_bytes
,bool zero
);
4182 unsigned int cli_set_timeout(struct cli_state
*cli
, unsigned int timeout
);
4183 int cli_set_port(struct cli_state
*cli
, int port
);
4184 bool cli_receive_smb(struct cli_state
*cli
);
4185 ssize_t
cli_receive_smb_data(struct cli_state
*cli
, char *buffer
, size_t len
);
4186 bool cli_send_smb(struct cli_state
*cli
);
4187 bool cli_send_smb_direct_writeX(struct cli_state
*cli
,
4190 void cli_setup_packet_buf(struct cli_state
*cli
, char *buf
);
4191 void cli_setup_packet(struct cli_state
*cli
);
4192 void cli_setup_bcc(struct cli_state
*cli
, void *p
);
4193 void cli_init_creds(struct cli_state
*cli
, const char *username
, const char *domain
, const char *password
);
4194 void cli_setup_signing_state(struct cli_state
*cli
, int signing_state
);
4195 struct cli_state
*cli_initialise(void);
4196 bool cli_rpc_pipe_close(struct rpc_pipe_client
*cli
);
4197 void cli_nt_pipes_close(struct cli_state
*cli
);
4198 void cli_shutdown(struct cli_state
*cli
);
4199 void cli_sockopt(struct cli_state
*cli
, const char *options
);
4200 uint16
cli_setpid(struct cli_state
*cli
, uint16 pid
);
4201 bool cli_set_case_sensitive(struct cli_state
*cli
, bool case_sensitive
);
4202 bool cli_send_keepalive(struct cli_state
*cli
);
4203 bool cli_echo(struct cli_state
*cli
, uint16 num_echos
,
4204 unsigned char *data
, size_t length
);
4206 /* The following definitions come from libsmb/clierror.c */
4208 const char *cli_errstr(struct cli_state
*cli
);
4209 NTSTATUS
cli_nt_error(struct cli_state
*cli
);
4210 void cli_dos_error(struct cli_state
*cli
, uint8
*eclass
, uint32
*ecode
);
4211 int cli_errno(struct cli_state
*cli
);
4212 bool cli_is_error(struct cli_state
*cli
);
4213 bool cli_is_nt_error(struct cli_state
*cli
);
4214 bool cli_is_dos_error(struct cli_state
*cli
);
4215 NTSTATUS
cli_get_nt_error(struct cli_state
*cli
);
4216 void cli_set_nt_error(struct cli_state
*cli
, NTSTATUS status
);
4217 void cli_reset_error(struct cli_state
*cli
);
4219 /* The following definitions come from libsmb/clifile.c */
4221 uint32
unix_perms_to_wire(mode_t perms
);
4222 mode_t
wire_perms_to_unix(uint32 perms
);
4223 bool cli_unix_getfacl(struct cli_state
*cli
, const char *name
, size_t *prb_size
, char **retbuf
);
4224 bool cli_unix_stat(struct cli_state
*cli
, const char *name
, SMB_STRUCT_STAT
*sbuf
);
4225 bool cli_unix_symlink(struct cli_state
*cli
, const char *oldname
, const char *newname
);
4226 bool cli_unix_hardlink(struct cli_state
*cli
, const char *oldname
, const char *newname
);
4227 bool cli_unix_chmod(struct cli_state
*cli
, const char *fname
, mode_t mode
);
4228 bool cli_unix_chown(struct cli_state
*cli
, const char *fname
, uid_t uid
, gid_t gid
);
4229 bool cli_rename(struct cli_state
*cli
, const char *fname_src
, const char *fname_dst
);
4230 bool cli_ntrename(struct cli_state
*cli
, const char *fname_src
, const char *fname_dst
);
4231 bool cli_nt_hardlink(struct cli_state
*cli
, const char *fname_src
, const char *fname_dst
);
4232 bool cli_unlink_full(struct cli_state
*cli
, const char *fname
, uint16 attrs
);
4233 bool cli_unlink(struct cli_state
*cli
, const char *fname
);
4234 bool cli_mkdir(struct cli_state
*cli
, const char *dname
);
4235 bool cli_rmdir(struct cli_state
*cli
, const char *dname
);
4236 int cli_nt_delete_on_close(struct cli_state
*cli
, int fnum
, bool flag
);
4237 int cli_nt_create_full(struct cli_state
*cli
, const char *fname
,
4238 uint32 CreatFlags
, uint32 DesiredAccess
,
4239 uint32 FileAttributes
, uint32 ShareAccess
,
4240 uint32 CreateDisposition
, uint32 CreateOptions
,
4241 uint8 SecuityFlags
);
4242 int cli_nt_create(struct cli_state
*cli
, const char *fname
, uint32 DesiredAccess
);
4243 int cli_open(struct cli_state
*cli
, const char *fname
, int flags
, int share_mode
);
4244 bool cli_close(struct cli_state
*cli
, int fnum
);
4245 bool cli_ftruncate(struct cli_state
*cli
, int fnum
, uint64_t size
);
4246 NTSTATUS
cli_locktype(struct cli_state
*cli
, int fnum
,
4247 uint32 offset
, uint32 len
,
4248 int timeout
, unsigned char locktype
);
4249 bool cli_lock(struct cli_state
*cli
, int fnum
,
4250 uint32 offset
, uint32 len
, int timeout
, enum brl_type lock_type
);
4251 bool cli_unlock(struct cli_state
*cli
, int fnum
, uint32 offset
, uint32 len
);
4252 bool cli_lock64(struct cli_state
*cli
, int fnum
,
4253 SMB_BIG_UINT offset
, SMB_BIG_UINT len
, int timeout
, enum brl_type lock_type
);
4254 bool cli_unlock64(struct cli_state
*cli
, int fnum
, SMB_BIG_UINT offset
, SMB_BIG_UINT len
);
4255 bool cli_posix_lock(struct cli_state
*cli
, int fnum
,
4256 SMB_BIG_UINT offset
, SMB_BIG_UINT len
,
4257 bool wait_lock
, enum brl_type lock_type
);
4258 bool cli_posix_unlock(struct cli_state
*cli
, int fnum
, SMB_BIG_UINT offset
, SMB_BIG_UINT len
);
4259 bool cli_posix_getlock(struct cli_state
*cli
, int fnum
, SMB_BIG_UINT
*poffset
, SMB_BIG_UINT
*plen
);
4260 bool cli_getattrE(struct cli_state
*cli
, int fd
,
4261 uint16
*attr
, SMB_OFF_T
*size
,
4262 time_t *change_time
,
4263 time_t *access_time
,
4264 time_t *write_time
);
4265 bool cli_getatr(struct cli_state
*cli
, const char *fname
,
4266 uint16
*attr
, SMB_OFF_T
*size
, time_t *write_time
);
4267 bool cli_setattrE(struct cli_state
*cli
, int fd
,
4271 bool cli_setatr(struct cli_state
*cli
, const char *fname
, uint16 attr
, time_t t
);
4272 bool cli_chkpath(struct cli_state
*cli
, const char *path
);
4273 bool cli_dskattr(struct cli_state
*cli
, int *bsize
, int *total
, int *avail
);
4274 int cli_ctemp(struct cli_state
*cli
, const char *path
, char **tmp_path
);
4275 NTSTATUS
cli_raw_ioctl(struct cli_state
*cli
, int fnum
, uint32 code
, DATA_BLOB
*blob
);
4276 bool cli_set_ea_path(struct cli_state
*cli
, const char *path
, const char *ea_name
, const char *ea_val
, size_t ea_len
);
4277 bool cli_set_ea_fnum(struct cli_state
*cli
, int fnum
, const char *ea_name
, const char *ea_val
, size_t ea_len
);
4278 bool cli_get_ea_list_path(struct cli_state
*cli
, const char *path
,
4281 struct ea_struct
**pea_list
);
4282 bool cli_get_ea_list_fnum(struct cli_state
*cli
, int fnum
,
4285 struct ea_struct
**pea_list
);
4286 int cli_posix_open(struct cli_state
*cli
, const char *fname
, int flags
, mode_t mode
);
4287 int cli_posix_mkdir(struct cli_state
*cli
, const char *fname
, mode_t mode
);
4288 bool cli_posix_unlink(struct cli_state
*cli
, const char *fname
);
4289 int cli_posix_rmdir(struct cli_state
*cli
, const char *fname
);
4291 /* The following definitions come from libsmb/clifsinfo.c */
4293 bool cli_unix_extensions_version(struct cli_state
*cli
, uint16
*pmajor
, uint16
*pminor
,
4294 uint32
*pcaplow
, uint32
*pcaphigh
);
4295 bool cli_set_unix_extensions_capabilities(struct cli_state
*cli
, uint16 major
, uint16 minor
,
4296 uint32 caplow
, uint32 caphigh
);
4297 bool cli_get_fs_attr_info(struct cli_state
*cli
, uint32
*fs_attr
);
4298 bool cli_get_fs_volume_info_old(struct cli_state
*cli
, fstring volume_name
, uint32
*pserial_number
);
4299 bool cli_get_fs_volume_info(struct cli_state
*cli
, fstring volume_name
, uint32
*pserial_number
, time_t *pdate
);
4300 NTSTATUS
cli_raw_ntlm_smb_encryption_start(struct cli_state
*cli
,
4303 const char *domain
);
4304 NTSTATUS
cli_gss_smb_encryption_start(struct cli_state
*cli
);
4305 NTSTATUS
cli_gss_smb_encryption_start(struct cli_state
*cli
);
4306 NTSTATUS
cli_force_encryption(struct cli_state
*c
,
4307 const char *username
,
4308 const char *password
,
4309 const char *domain
);
4311 /* The following definitions come from libsmb/clikrb5.c */
4313 bool unwrap_edata_ntstatus(TALLOC_CTX
*mem_ctx
,
4315 DATA_BLOB
*edata_out
);
4316 bool unwrap_pac(TALLOC_CTX
*mem_ctx
, DATA_BLOB
*auth_data
, DATA_BLOB
*unwrapped_pac_data
);
4317 int cli_krb5_get_ticket(const char *principal
, time_t time_offset
,
4318 DATA_BLOB
*ticket
, DATA_BLOB
*session_key_krb5
,
4319 uint32 extra_ap_opts
, const char *ccname
,
4320 time_t *tgs_expire
);
4322 /* The following definitions come from libsmb/clilist.c */
4324 int cli_list_new(struct cli_state
*cli
,const char *Mask
,uint16 attribute
,
4325 void (*fn
)(const char *, file_info
*, const char *, void *), void *state
);
4326 int cli_list_old(struct cli_state
*cli
,const char *Mask
,uint16 attribute
,
4327 void (*fn
)(const char *, file_info
*, const char *, void *), void *state
);
4328 int cli_list(struct cli_state
*cli
,const char *Mask
,uint16 attribute
,
4329 void (*fn
)(const char *, file_info
*, const char *, void *), void *state
);
4331 /* The following definitions come from libsmb/climessage.c */
4333 int cli_message_start_build(struct cli_state
*cli
, const char *host
, const char *username
);
4334 bool cli_message_start(struct cli_state
*cli
, const char *host
, const char *username
,
4336 int cli_message_text_build(struct cli_state
*cli
, const char *msg
, int len
, int grp
);
4337 bool cli_message_text(struct cli_state
*cli
, const char *msg
, int len
, int grp
);
4338 int cli_message_end_build(struct cli_state
*cli
, int grp
);
4339 bool cli_message_end(struct cli_state
*cli
, int grp
);
4341 /* The following definitions come from libsmb/clioplock.c */
4343 bool cli_oplock_ack(struct cli_state
*cli
, int fnum
, unsigned char level
);
4344 void cli_oplock_handler(struct cli_state
*cli
,
4345 bool (*handler
)(struct cli_state
*, int, unsigned char));
4347 /* The following definitions come from libsmb/cliprint.c */
4349 int cli_print_queue(struct cli_state
*cli
,
4350 void (*fn
)(struct print_job_info
*));
4351 int cli_printjob_del(struct cli_state
*cli
, int job
);
4352 int cli_spl_open(struct cli_state
*cli
, const char *fname
, int flags
, int share_mode
);
4353 bool cli_spl_close(struct cli_state
*cli
, int fnum
);
4355 /* The following definitions come from libsmb/cliquota.c */
4357 bool cli_get_quota_handle(struct cli_state
*cli
, int *quota_fnum
);
4358 void free_ntquota_list(SMB_NTQUOTA_LIST
**qt_list
);
4359 bool cli_get_user_quota(struct cli_state
*cli
, int quota_fnum
, SMB_NTQUOTA_STRUCT
*pqt
);
4360 bool cli_set_user_quota(struct cli_state
*cli
, int quota_fnum
, SMB_NTQUOTA_STRUCT
*pqt
);
4361 bool cli_list_user_quota(struct cli_state
*cli
, int quota_fnum
, SMB_NTQUOTA_LIST
**pqt_list
);
4362 bool cli_get_fs_quota_info(struct cli_state
*cli
, int quota_fnum
, SMB_NTQUOTA_STRUCT
*pqt
);
4363 bool cli_set_fs_quota_info(struct cli_state
*cli
, int quota_fnum
, SMB_NTQUOTA_STRUCT
*pqt
);
4364 void dump_ntquota(SMB_NTQUOTA_STRUCT
*qt
, bool _verbose
, bool _numeric
, void (*_sidtostring
)(fstring str
, DOM_SID
*sid
, bool _numeric
));
4365 void dump_ntquota_list(SMB_NTQUOTA_LIST
**qtl
, bool _verbose
, bool _numeric
, void (*_sidtostring
)(fstring str
, DOM_SID
*sid
, bool _numeric
));
4367 /* The following definitions come from libsmb/clirap.c */
4369 bool cli_api_pipe(struct cli_state
*cli
, const char *pipe_name
,
4370 uint16
*setup
, uint32 setup_count
, uint32 max_setup_count
,
4371 char *params
, uint32 param_count
, uint32 max_param_count
,
4372 char *data
, uint32 data_count
, uint32 max_data_count
,
4373 char **rparam
, uint32
*rparam_count
,
4374 char **rdata
, uint32
*rdata_count
);
4375 bool cli_api(struct cli_state
*cli
,
4376 char *param
, int prcnt
, int mprcnt
,
4377 char *data
, int drcnt
, int mdrcnt
,
4378 char **rparam
, unsigned int *rprcnt
,
4379 char **rdata
, unsigned int *rdrcnt
);
4380 bool cli_NetWkstaUserLogon(struct cli_state
*cli
,char *user
, char *workstation
);
4381 int cli_RNetShareEnum(struct cli_state
*cli
, void (*fn
)(const char *, uint32
, const char *, void *), void *state
);
4382 bool cli_NetServerEnum(struct cli_state
*cli
, char *workgroup
, uint32 stype
,
4383 void (*fn
)(const char *, uint32
, const char *, void *),
4385 bool cli_oem_change_password(struct cli_state
*cli
, const char *user
, const char *new_password
,
4386 const char *old_password
);
4387 bool cli_qpathinfo(struct cli_state
*cli
,
4389 time_t *change_time
,
4390 time_t *access_time
,
4394 bool cli_setpathinfo(struct cli_state
*cli
, const char *fname
,
4400 bool cli_qpathinfo2(struct cli_state
*cli
, const char *fname
,
4401 struct timespec
*create_time
,
4402 struct timespec
*access_time
,
4403 struct timespec
*write_time
,
4404 struct timespec
*change_time
,
4405 SMB_OFF_T
*size
, uint16
*mode
,
4407 bool cli_qpathinfo_streams(struct cli_state
*cli
, const char *fname
,
4408 TALLOC_CTX
*mem_ctx
,
4409 unsigned int *pnum_streams
,
4410 struct stream_struct
**pstreams
);
4411 bool cli_qfilename(struct cli_state
*cli
, int fnum
, char *name
, size_t namelen
);
4412 bool cli_qfileinfo(struct cli_state
*cli
, int fnum
,
4413 uint16
*mode
, SMB_OFF_T
*size
,
4414 struct timespec
*create_time
,
4415 struct timespec
*access_time
,
4416 struct timespec
*write_time
,
4417 struct timespec
*change_time
,
4419 bool cli_qpathinfo_basic( struct cli_state
*cli
, const char *name
,
4420 SMB_STRUCT_STAT
*sbuf
, uint32
*attributes
);
4421 bool cli_qfileinfo_test(struct cli_state
*cli
, int fnum
, int level
, char **poutdata
, uint32
*poutlen
);
4422 NTSTATUS
cli_qpathinfo_alt_name(struct cli_state
*cli
, const char *fname
, fstring alt_name
);
4424 /* The following definitions come from libsmb/clirap2.c */
4426 int cli_NetGroupDelete(struct cli_state
*cli
, const char *group_name
);
4427 int cli_NetGroupAdd(struct cli_state
*cli
, RAP_GROUP_INFO_1
*grinfo
);
4428 int cli_RNetGroupEnum(struct cli_state
*cli
, void (*fn
)(const char *, const char *, void *), void *state
);
4429 int cli_RNetGroupEnum0(struct cli_state
*cli
,
4430 void (*fn
)(const char *, void *),
4432 int cli_NetGroupDelUser(struct cli_state
* cli
, const char *group_name
, const char *user_name
);
4433 int cli_NetGroupAddUser(struct cli_state
* cli
, const char *group_name
, const char *user_name
);
4434 int cli_NetGroupGetUsers(struct cli_state
* cli
, const char *group_name
, void (*fn
)(const char *, void *), void *state
);
4435 int cli_NetUserGetGroups(struct cli_state
* cli
, const char *user_name
, void (*fn
)(const char *, void *), void *state
);
4436 int cli_NetUserDelete(struct cli_state
*cli
, const char * user_name
);
4437 int cli_NetUserAdd(struct cli_state
*cli
, RAP_USER_INFO_1
* userinfo
);
4438 int cli_RNetUserEnum(struct cli_state
*cli
, void (*fn
)(const char *, const char *, const char *, const char *, void *), void *state
);
4439 int cli_RNetUserEnum0(struct cli_state
*cli
,
4440 void (*fn
)(const char *, void *),
4442 int cli_NetFileClose(struct cli_state
*cli
, uint32 file_id
);
4443 int cli_NetFileGetInfo(struct cli_state
*cli
, uint32 file_id
, void (*fn
)(const char *, const char *, uint16
, uint16
, uint32
));
4444 int cli_NetFileEnum(struct cli_state
*cli
, const char * user
,
4445 const char * base_path
,
4446 void (*fn
)(const char *, const char *, uint16
, uint16
,
4448 int cli_NetShareAdd(struct cli_state
*cli
, RAP_SHARE_INFO_2
* sinfo
);
4449 int cli_NetShareDelete(struct cli_state
*cli
, const char * share_name
);
4450 bool cli_get_pdc_name(struct cli_state
*cli
, const char *workgroup
, char **pdc_name
);
4451 bool cli_get_server_domain(struct cli_state
*cli
);
4452 bool cli_get_server_type(struct cli_state
*cli
, uint32
*pstype
);
4453 bool cli_get_server_name(TALLOC_CTX
*mem_ctx
, struct cli_state
*cli
,
4455 bool cli_ns_check_server_type(struct cli_state
*cli
, char *workgroup
, uint32 stype
);
4456 bool cli_NetWkstaUserLogoff(struct cli_state
*cli
, const char *user
, const char *workstation
);
4457 int cli_NetPrintQEnum(struct cli_state
*cli
,
4458 void (*qfn
)(const char*,uint16
,uint16
,uint16
,const char*,const char*,const char*,const char*,const char*,uint16
,uint16
),
4459 void (*jfn
)(uint16
,const char*,const char*,const char*,const char*,uint16
,uint16
,const char*,uint
,uint
,const char*));
4460 int cli_NetPrintQGetInfo(struct cli_state
*cli
, const char *printer
,
4461 void (*qfn
)(const char*,uint16
,uint16
,uint16
,const char*,const char*,const char*,const char*,const char*,uint16
,uint16
),
4462 void (*jfn
)(uint16
,const char*,const char*,const char*,const char*,uint16
,uint16
,const char*,uint
,uint
,const char*));
4463 int cli_RNetServiceEnum(struct cli_state
*cli
, void (*fn
)(const char *, const char *, void *), void *state
);
4464 int cli_NetSessionEnum(struct cli_state
*cli
, void (*fn
)(char *, char *, uint16
, uint16
, uint16
, uint
, uint
, uint
, char *));
4465 int cli_NetSessionGetInfo(struct cli_state
*cli
, const char *workstation
,
4466 void (*fn
)(const char *, const char *, uint16
, uint16
, uint16
, uint
, uint
, uint
, const char *));
4467 int cli_NetSessionDel(struct cli_state
*cli
, const char *workstation
);
4468 int cli_NetConnectionEnum(struct cli_state
*cli
, const char *qualifier
,
4469 void (*fn
)(uint16_t conid
, uint16_t contype
,
4470 uint16_t numopens
, uint16_t numusers
,
4471 uint32_t contime
, const char *username
,
4472 const char *netname
));
4474 /* The following definitions come from libsmb/clireadwrite.c */
4476 struct async_req
*cli_read_andx_send(TALLOC_CTX
*mem_ctx
,
4477 struct cli_state
*cli
, int fnum
,
4478 off_t offset
, size_t size
);
4479 NTSTATUS
cli_read_andx_recv(struct async_req
*req
, ssize_t
*received
,
4481 struct async_req
*cli_pull_send(TALLOC_CTX
*mem_ctx
, struct cli_state
*cli
,
4482 uint16_t fnum
, off_t start_offset
,
4483 SMB_OFF_T size
, size_t window_size
,
4484 NTSTATUS (*sink
)(char *buf
, size_t n
,
4487 NTSTATUS
cli_pull_recv(struct async_req
*req
, SMB_OFF_T
*received
);
4488 NTSTATUS
cli_pull(struct cli_state
*cli
, uint16_t fnum
,
4489 off_t start_offset
, SMB_OFF_T size
, size_t window_size
,
4490 NTSTATUS (*sink
)(char *buf
, size_t n
, void *priv
),
4491 void *priv
, SMB_OFF_T
*received
);
4492 ssize_t
cli_read(struct cli_state
*cli
, int fnum
, char *buf
,
4493 off_t offset
, size_t size
);
4494 ssize_t
cli_write(struct cli_state
*cli
,
4495 int fnum
, uint16 write_mode
,
4496 const char *buf
, off_t offset
, size_t size
);
4497 ssize_t
cli_smbwrite(struct cli_state
*cli
,
4498 int fnum
, char *buf
, off_t offset
, size_t size1
);
4500 /* The following definitions come from libsmb/clisecdesc.c */
4502 SEC_DESC
*cli_query_secdesc(struct cli_state
*cli
, int fnum
,
4503 TALLOC_CTX
*mem_ctx
);
4504 bool cli_set_secdesc(struct cli_state
*cli
, int fnum
, SEC_DESC
*sd
);
4506 /* The following definitions come from libsmb/clispnego.c */
4508 DATA_BLOB
spnego_gen_negTokenInit(char guid
[16],
4510 const char *principal
);
4511 DATA_BLOB
gen_negTokenInit(const char *OID
, DATA_BLOB blob
);
4512 bool spnego_parse_negTokenInit(DATA_BLOB blob
,
4513 char *OIDs
[ASN1_MAX_OIDS
],
4515 DATA_BLOB
gen_negTokenTarg(const char *OIDs
[], DATA_BLOB blob
);
4516 bool parse_negTokenTarg(DATA_BLOB blob
, char *OIDs
[ASN1_MAX_OIDS
], DATA_BLOB
*secblob
);
4517 DATA_BLOB
spnego_gen_krb5_wrap(const DATA_BLOB ticket
, const uint8 tok_id
[2]);
4518 bool spnego_parse_krb5_wrap(DATA_BLOB blob
, DATA_BLOB
*ticket
, uint8 tok_id
[2]);
4519 int spnego_gen_negTokenTarg(const char *principal
, int time_offset
,
4521 DATA_BLOB
*session_key_krb5
, uint32 extra_ap_opts
,
4522 time_t *expire_time
);
4523 bool spnego_parse_challenge(const DATA_BLOB blob
,
4524 DATA_BLOB
*chal1
, DATA_BLOB
*chal2
);
4525 DATA_BLOB
spnego_gen_auth(DATA_BLOB blob
);
4526 bool spnego_parse_auth(DATA_BLOB blob
, DATA_BLOB
*auth
);
4527 DATA_BLOB
spnego_gen_auth_response(DATA_BLOB
*reply
, NTSTATUS nt_status
,
4528 const char *mechOID
);
4529 bool spnego_parse_auth_response(DATA_BLOB blob
, NTSTATUS nt_status
,
4530 const char *mechOID
,
4533 /* The following definitions come from libsmb/clistr.c */
4535 size_t clistr_push_fn(const char *function
,
4537 struct cli_state
*cli
,
4542 size_t clistr_pull_fn(const char *function
,
4544 struct cli_state
*cli
,
4550 size_t clistr_pull_talloc_fn(const char *function
,
4553 struct cli_state
*cli
,
4558 size_t clistr_align_out(struct cli_state
*cli
, const void *p
, int flags
);
4559 size_t clistr_align_in(struct cli_state
*cli
, const void *p
, int flags
);
4561 /* The following definitions come from libsmb/clitrans.c */
4563 bool cli_send_trans(struct cli_state
*cli
, int trans
,
4564 const char *pipe_name
,
4566 uint16
*setup
, unsigned int lsetup
, unsigned int msetup
,
4567 const char *param
, unsigned int lparam
, unsigned int mparam
,
4568 const char *data
, unsigned int ldata
, unsigned int mdata
);
4569 bool cli_receive_trans(struct cli_state
*cli
,int trans
,
4570 char **param
, unsigned int *param_len
,
4571 char **data
, unsigned int *data_len
);
4572 bool cli_send_nt_trans(struct cli_state
*cli
,
4575 uint16
*setup
, unsigned int lsetup
, unsigned int msetup
,
4576 char *param
, unsigned int lparam
, unsigned int mparam
,
4577 char *data
, unsigned int ldata
, unsigned int mdata
);
4578 bool cli_receive_nt_trans(struct cli_state
*cli
,
4579 char **param
, unsigned int *param_len
,
4580 char **data
, unsigned int *data_len
);
4582 /* The following definitions come from libsmb/conncache.c */
4584 NTSTATUS
check_negative_conn_cache_timeout( const char *domain
, const char *server
, unsigned int failed_cache_timeout
);
4585 NTSTATUS
check_negative_conn_cache( const char *domain
, const char *server
);
4586 void add_failed_connection_entry(const char *domain
, const char *server
, NTSTATUS result
) ;
4587 void flush_negative_conn_cache( void );
4588 void flush_negative_conn_cache_for_domain(const char *domain
);
4590 /* The following definitions come from libsmb/credentials.c */
4592 char *credstr(const unsigned char *cred
);
4593 void creds_server_init(uint32 neg_flags
,
4595 struct netr_Credential
*clnt_chal
,
4596 struct netr_Credential
*srv_chal
,
4597 const unsigned char mach_pw
[16],
4598 struct netr_Credential
*init_chal_out
);
4599 bool netlogon_creds_server_check(const struct dcinfo
*dc
,
4600 const struct netr_Credential
*rcv_cli_chal_in
);
4601 bool netlogon_creds_server_step(struct dcinfo
*dc
,
4602 const struct netr_Authenticator
*received_cred
,
4603 struct netr_Authenticator
*cred_out
);
4604 void creds_client_init(uint32 neg_flags
,
4606 struct netr_Credential
*clnt_chal
,
4607 struct netr_Credential
*srv_chal
,
4608 const unsigned char mach_pw
[16],
4609 struct netr_Credential
*init_chal_out
);
4610 bool netlogon_creds_client_check(const struct dcinfo
*dc
,
4611 const struct netr_Credential
*rcv_srv_chal_in
);
4612 void netlogon_creds_client_step(struct dcinfo
*dc
,
4613 struct netr_Authenticator
*next_cred_out
);
4615 /* The following definitions come from libsmb/dcerpc_err.c */
4617 const char *dcerpc_errstr(uint32 fault_code
);
4619 /* The following definitions come from libsmb/doserr.c */
4621 const char *dos_errstr(WERROR werror
);
4622 const char *get_friendly_werror_msg(WERROR werror
);
4623 const char *win_errstr(WERROR werror
);
4625 /* The following definitions come from libsmb/dsgetdcname.c */
4627 void debug_dsdcinfo_flags(int lvl
, uint32_t flags
);
4628 NTSTATUS
dsgetdcname(TALLOC_CTX
*mem_ctx
,
4629 struct messaging_context
*msg_ctx
,
4630 const char *domain_name
,
4631 struct GUID
*domain_guid
,
4632 const char *site_name
,
4634 struct netr_DsRGetDCNameInfo
**info
);
4636 /* The following definitions come from libsmb/errormap.c */
4638 NTSTATUS
dos_to_ntstatus(uint8 eclass
, uint32 ecode
);
4639 void ntstatus_to_dos(NTSTATUS ntstatus
, uint8
*eclass
, uint32
*ecode
);
4640 NTSTATUS
werror_to_ntstatus(WERROR error
);
4641 WERROR
ntstatus_to_werror(NTSTATUS error
);
4642 NTSTATUS
map_nt_error_from_gss(uint32 gss_maj
, uint32 minor
);
4644 /* The following definitions come from libsmb/namecache.c */
4646 bool namecache_enable(void);
4647 bool namecache_shutdown(void);
4648 bool namecache_store(const char *name
,
4651 struct ip_service
*ip_list
);
4652 bool namecache_fetch(const char *name
,
4654 struct ip_service
**ip_list
,
4656 bool namecache_delete(const char *name
, int name_type
);
4657 void namecache_flush(void);
4658 bool namecache_status_store(const char *keyname
, int keyname_type
,
4659 int name_type
, const struct sockaddr_storage
*keyip
,
4660 const char *srvname
);
4661 bool namecache_status_fetch(const char *keyname
,
4664 const struct sockaddr_storage
*keyip
,
4667 /* The following definitions come from libsmb/namequery.c */
4669 bool saf_store( const char *domain
, const char *servername
);
4670 bool saf_join_store( const char *domain
, const char *servername
);
4671 bool saf_delete( const char *domain
);
4672 char *saf_fetch( const char *domain
);
4673 NODE_STATUS_STRUCT
*node_status_query(int fd
,
4674 struct nmb_name
*name
,
4675 const struct sockaddr_storage
*to_ss
,
4677 struct node_status_extra
*extra
);
4678 bool name_status_find(const char *q_name
,
4681 const struct sockaddr_storage
*to_ss
,
4683 int ip_service_compare(struct ip_service
*ss1
, struct ip_service
*ss2
);
4684 struct sockaddr_storage
*name_query(int fd
,
4689 const struct sockaddr_storage
*to_ss
,
4693 XFILE
*startlmhosts(const char *fname
);
4694 bool getlmhostsent(TALLOC_CTX
*ctx
, XFILE
*fp
, char **pp_name
, int *name_type
,
4695 struct sockaddr_storage
*pss
);
4696 void endlmhosts(XFILE
*fp
);
4697 NTSTATUS
name_resolve_bcast(const char *name
,
4699 struct ip_service
**return_iplist
,
4701 NTSTATUS
resolve_wins(const char *name
,
4703 struct ip_service
**return_iplist
,
4705 NTSTATUS
internal_resolve_name(const char *name
,
4707 const char *sitename
,
4708 struct ip_service
**return_iplist
,
4710 const char *resolve_order
);
4711 bool resolve_name(const char *name
,
4712 struct sockaddr_storage
*return_ss
,
4714 NTSTATUS
resolve_name_list(TALLOC_CTX
*ctx
,
4717 struct sockaddr_storage
**return_ss_arr
,
4718 unsigned int *p_num_entries
);
4719 bool find_master_ip(const char *group
, struct sockaddr_storage
*master_ss
);
4720 bool get_pdc_ip(const char *domain
, struct sockaddr_storage
*pss
);
4721 NTSTATUS
get_sorted_dc_list( const char *domain
,
4722 const char *sitename
,
4723 struct ip_service
**ip_list
,
4726 NTSTATUS
get_kdc_list( const char *realm
,
4727 const char *sitename
,
4728 struct ip_service
**ip_list
,
4731 /* The following definitions come from libsmb/namequery_dc.c */
4733 bool get_dc_name(const char *domain
,
4736 struct sockaddr_storage
*ss_out
);
4738 /* The following definitions come from libsmb/nmblib.c */
4740 void debug_nmb_packet(struct packet_struct
*p
);
4741 void put_name(char *dest
, const char *name
, int pad
, unsigned int name_type
);
4742 char *nmb_namestr(const struct nmb_name
*n
);
4743 struct packet_struct
*copy_packet(struct packet_struct
*packet
);
4744 void free_packet(struct packet_struct
*packet
);
4745 struct packet_struct
*parse_packet(char *buf
,int length
,
4746 enum packet_type packet_type
,
4749 struct packet_struct
*read_packet(int fd
,enum packet_type packet_type
);
4750 void make_nmb_name( struct nmb_name
*n
, const char *name
, int type
);
4751 bool nmb_name_equal(struct nmb_name
*n1
, struct nmb_name
*n2
);
4752 int build_packet(char *buf
, size_t buflen
, struct packet_struct
*p
);
4753 bool send_packet(struct packet_struct
*p
);
4754 struct packet_struct
*receive_packet(int fd
,enum packet_type type
,int t
);
4755 struct packet_struct
*receive_nmb_packet(int fd
, int t
, int trn_id
);
4756 struct packet_struct
*receive_dgram_packet(int fd
, int t
,
4757 const char *mailslot_name
);
4758 bool match_mailslot_name(struct packet_struct
*p
, const char *mailslot_name
);
4759 int matching_len_bits(unsigned char *p1
, unsigned char *p2
, size_t len
);
4760 void sort_query_replies(char *data
, int n
, struct in_addr ip
);
4761 int name_mangle( char *In
, char *Out
, char name_type
);
4762 int name_extract(char *buf
,int ofs
, fstring name
);
4763 int name_len(char *s1
);
4765 /* The following definitions come from libsmb/nterr.c */
4767 const char *nt_errstr(NTSTATUS nt_code
);
4768 const char *get_friendly_nt_error_msg(NTSTATUS nt_code
);
4769 const char *get_nt_error_c_code(NTSTATUS nt_code
);
4770 NTSTATUS
nt_status_string_to_code(char *nt_status_str
);
4771 NTSTATUS
nt_status_squash(NTSTATUS nt_status
);
4773 /* The following definitions come from libsmb/ntlm_check.c */
4775 NTSTATUS
ntlm_password_check(TALLOC_CTX
*mem_ctx
,
4776 const DATA_BLOB
*challenge
,
4777 const DATA_BLOB
*lm_response
,
4778 const DATA_BLOB
*nt_response
,
4779 const DATA_BLOB
*lm_interactive_pwd
,
4780 const DATA_BLOB
*nt_interactive_pwd
,
4781 const char *username
,
4782 const char *client_username
,
4783 const char *client_domain
,
4784 const uint8
*lm_pw
, const uint8
*nt_pw
,
4785 DATA_BLOB
*user_sess_key
,
4786 DATA_BLOB
*lm_sess_key
);
4788 /* The following definitions come from libsmb/ntlmssp.c */
4790 void debug_ntlmssp_flags(uint32 neg_flags
);
4791 NTSTATUS
ntlmssp_set_username(NTLMSSP_STATE
*ntlmssp_state
, const char *user
) ;
4792 NTSTATUS
ntlmssp_set_hashes(NTLMSSP_STATE
*ntlmssp_state
,
4793 const unsigned char lm_hash
[16],
4794 const unsigned char nt_hash
[16]) ;
4795 NTSTATUS
ntlmssp_set_password(NTLMSSP_STATE
*ntlmssp_state
, const char *password
) ;
4796 NTSTATUS
ntlmssp_set_domain(NTLMSSP_STATE
*ntlmssp_state
, const char *domain
) ;
4797 NTSTATUS
ntlmssp_set_workstation(NTLMSSP_STATE
*ntlmssp_state
, const char *workstation
) ;
4798 NTSTATUS
ntlmssp_store_response(NTLMSSP_STATE
*ntlmssp_state
,
4799 DATA_BLOB response
) ;
4800 void ntlmssp_want_feature_list(NTLMSSP_STATE
*ntlmssp_state
, char *feature_list
);
4801 void ntlmssp_want_feature(NTLMSSP_STATE
*ntlmssp_state
, uint32 feature
);
4802 NTSTATUS
ntlmssp_update(NTLMSSP_STATE
*ntlmssp_state
,
4803 const DATA_BLOB in
, DATA_BLOB
*out
) ;
4804 void ntlmssp_end(NTLMSSP_STATE
**ntlmssp_state
);
4805 DATA_BLOB
ntlmssp_weaken_keys(NTLMSSP_STATE
*ntlmssp_state
, TALLOC_CTX
*mem_ctx
);
4806 NTSTATUS
ntlmssp_server_start(NTLMSSP_STATE
**ntlmssp_state
);
4807 NTSTATUS
ntlmssp_client_start(NTLMSSP_STATE
**ntlmssp_state
);
4809 /* The following definitions come from libsmb/ntlmssp_parse.c */
4811 bool msrpc_gen(DATA_BLOB
*blob
,
4812 const char *format
, ...);
4813 bool msrpc_parse(const DATA_BLOB
*blob
,
4814 const char *format
, ...);
4816 /* The following definitions come from libsmb/ntlmssp_sign.c */
4818 NTSTATUS
ntlmssp_sign_packet(NTLMSSP_STATE
*ntlmssp_state
,
4819 const uchar
*data
, size_t length
,
4820 const uchar
*whole_pdu
, size_t pdu_length
,
4822 NTSTATUS
ntlmssp_check_packet(NTLMSSP_STATE
*ntlmssp_state
,
4823 const uchar
*data
, size_t length
,
4824 const uchar
*whole_pdu
, size_t pdu_length
,
4825 const DATA_BLOB
*sig
) ;
4826 NTSTATUS
ntlmssp_seal_packet(NTLMSSP_STATE
*ntlmssp_state
,
4827 uchar
*data
, size_t length
,
4828 uchar
*whole_pdu
, size_t pdu_length
,
4830 NTSTATUS
ntlmssp_unseal_packet(NTLMSSP_STATE
*ntlmssp_state
,
4831 uchar
*data
, size_t length
,
4832 uchar
*whole_pdu
, size_t pdu_length
,
4834 NTSTATUS
ntlmssp_sign_init(NTLMSSP_STATE
*ntlmssp_state
);
4836 /* The following definitions come from libsmb/passchange.c */
4838 NTSTATUS
remote_password_change(const char *remote_machine
, const char *user_name
,
4839 const char *old_passwd
, const char *new_passwd
,
4842 /* The following definitions come from libsmb/pwd_cache.c */
4844 void pwd_set_cleartext(struct pwd_info
*pwd
, const char *clr
);
4845 void pwd_get_cleartext(struct pwd_info
*pwd
, fstring clr
);
4847 /* The following definitions come from libsmb/samlogon_cache.c */
4849 bool netsamlogon_cache_init(void);
4850 bool netsamlogon_cache_shutdown(void);
4851 void netsamlogon_clear_cached_user(struct netr_SamInfo3
*info3
);
4852 bool netsamlogon_cache_store(const char *username
, struct netr_SamInfo3
*info3
);
4853 struct netr_SamInfo3
*netsamlogon_cache_get(TALLOC_CTX
*mem_ctx
, const DOM_SID
*user_sid
);
4854 bool netsamlogon_cache_have(const DOM_SID
*user_sid
);
4856 /* The following definitions come from libsmb/smb_seal.c */
4858 NTSTATUS
get_enc_ctx_num(const uint8_t *buf
, uint16
*p_enc_ctx_num
);
4859 bool common_encryption_on(struct smb_trans_enc_state
*es
);
4860 NTSTATUS
common_ntlm_decrypt_buffer(NTLMSSP_STATE
*ntlmssp_state
, char *buf
);
4861 NTSTATUS
common_ntlm_encrypt_buffer(NTLMSSP_STATE
*ntlmssp_state
,
4865 NTSTATUS
common_encrypt_buffer(struct smb_trans_enc_state
*es
, char *buffer
, char **buf_out
);
4866 NTSTATUS
common_decrypt_buffer(struct smb_trans_enc_state
*es
, char *buf
);
4867 void common_free_encryption_state(struct smb_trans_enc_state
**pp_es
);
4868 void common_free_enc_buffer(struct smb_trans_enc_state
*es
, char *buf
);
4869 bool cli_encryption_on(struct cli_state
*cli
);
4870 void cli_free_encryption_context(struct cli_state
*cli
);
4871 void cli_free_enc_buffer(struct cli_state
*cli
, char *buf
);
4872 NTSTATUS
cli_decrypt_message(struct cli_state
*cli
);
4873 NTSTATUS
cli_encrypt_message(struct cli_state
*cli
, char *buf
, char **buf_out
);
4875 /* The following definitions come from libsmb/smb_signing.c */
4877 bool cli_simple_set_signing(struct cli_state
*cli
,
4878 const DATA_BLOB user_session_key
,
4879 const DATA_BLOB response
);
4880 bool cli_null_set_signing(struct cli_state
*cli
);
4881 bool cli_temp_set_signing(struct cli_state
*cli
);
4882 void cli_free_signing_context(struct cli_state
*cli
);
4883 void cli_calculate_sign_mac(struct cli_state
*cli
, char *buf
);
4884 bool cli_check_sign_mac(struct cli_state
*cli
, char *buf
);
4885 bool client_set_trans_sign_state_on(struct cli_state
*cli
, uint16 mid
);
4886 bool client_set_trans_sign_state_off(struct cli_state
*cli
, uint16 mid
);
4887 bool client_is_signing_on(struct cli_state
*cli
);
4888 bool srv_oplock_set_signing(bool onoff
);
4889 bool srv_check_sign_mac(const char *inbuf
, bool must_be_ok
);
4890 void srv_calculate_sign_mac(char *outbuf
);
4891 void srv_defer_sign_response(uint16 mid
);
4892 void srv_cancel_sign_response(uint16 mid
);
4893 void srv_set_signing_negotiated(void);
4894 bool srv_is_signing_active(void);
4895 bool srv_is_signing_negotiated(void);
4896 bool srv_signing_started(void);
4897 void srv_set_signing(const DATA_BLOB user_session_key
, const DATA_BLOB response
);
4899 /* The following definitions come from libsmb/smbdes.c */
4901 void des_crypt56(unsigned char *out
, const unsigned char *in
, const unsigned char *key
, int forw
);
4902 void E_P16(const unsigned char *p14
,unsigned char *p16
);
4903 void E_P24(const unsigned char *p21
, const unsigned char *c8
, unsigned char *p24
);
4904 void D_P16(const unsigned char *p14
, const unsigned char *in
, unsigned char *out
);
4905 void E_old_pw_hash( unsigned char *p14
, const unsigned char *in
, unsigned char *out
);
4906 void des_crypt128(unsigned char out
[8], const unsigned char in
[8], const unsigned char key
[16]);
4907 void des_crypt64(unsigned char out
[8], const unsigned char in
[8], const unsigned char key
[8]);
4908 void des_crypt112(unsigned char out
[8], const unsigned char in
[8], const unsigned char key
[14], int forw
);
4909 void cred_hash3(unsigned char *out
, const unsigned char *in
, const unsigned char *key
, int forw
);
4910 void des_crypt112_16(unsigned char out
[16], unsigned char in
[16], const unsigned char key
[14], int forw
);
4911 void SamOEMhash( unsigned char *data
, const unsigned char key
[16], size_t len
);
4912 void SamOEMhashBlob( unsigned char *data
, size_t len
, DATA_BLOB
*key
);
4913 void sam_pwd_hash(unsigned int rid
, const uchar
*in
, uchar
*out
, int forw
);
4915 /* The following definitions come from libsmb/smbencrypt.c */
4917 void SMBencrypt_hash(const uchar lm_hash
[16], const uchar
*c8
, uchar p24
[24]);
4918 bool SMBencrypt(const char *passwd
, const uchar
*c8
, uchar p24
[24]);
4919 void E_md4hash(const char *passwd
, uchar p16
[16]);
4920 void E_md5hash(const uchar salt
[16], const uchar nthash
[16], uchar hash_out
[16]);
4921 bool E_deshash(const char *passwd
, uchar p16
[16]);
4922 void nt_lm_owf_gen(const char *pwd
, uchar nt_p16
[16], uchar p16
[16]);
4923 bool ntv2_owf_gen(const uchar owf
[16],
4924 const char *user_in
, const char *domain_in
,
4925 bool upper_case_domain
, /* Transform the domain into UPPER case */
4927 void SMBOWFencrypt(const uchar passwd
[16], const uchar
*c8
, uchar p24
[24]);
4928 void NTLMSSPOWFencrypt(const uchar passwd
[8], const uchar
*ntlmchalresp
, uchar p24
[24]);
4929 void SMBNTencrypt_hash(const uchar nt_hash
[16], uchar
*c8
, uchar
*p24
);
4930 void SMBNTencrypt(const char *passwd
, uchar
*c8
, uchar
*p24
);
4931 void SMBOWFencrypt_ntv2(const uchar kr
[16],
4932 const DATA_BLOB
*srv_chal
,
4933 const DATA_BLOB
*cli_chal
,
4934 uchar resp_buf
[16]);
4935 void SMBsesskeygen_ntv2(const uchar kr
[16],
4936 const uchar
* nt_resp
, uint8 sess_key
[16]);
4937 void SMBsesskeygen_ntv1(const uchar kr
[16],
4938 const uchar
* nt_resp
, uint8 sess_key
[16]);
4939 void SMBsesskeygen_lm_sess_key(const uchar lm_hash
[16],
4940 const uchar lm_resp
[24], /* only uses 8 */
4941 uint8 sess_key
[16]);
4942 DATA_BLOB
NTLMv2_generate_names_blob(const char *hostname
,
4943 const char *domain
);
4944 bool SMBNTLMv2encrypt_hash(const char *user
, const char *domain
, const uchar nt_hash
[16],
4945 const DATA_BLOB
*server_chal
,
4946 const DATA_BLOB
*names_blob
,
4947 DATA_BLOB
*lm_response
, DATA_BLOB
*nt_response
,
4948 DATA_BLOB
*user_session_key
) ;
4949 bool SMBNTLMv2encrypt(const char *user
, const char *domain
, const char *password
,
4950 const DATA_BLOB
*server_chal
,
4951 const DATA_BLOB
*names_blob
,
4952 DATA_BLOB
*lm_response
, DATA_BLOB
*nt_response
,
4953 DATA_BLOB
*user_session_key
) ;
4954 bool encode_pw_buffer(uint8 buffer
[516], const char *password
, int string_flags
);
4955 bool decode_pw_buffer(TALLOC_CTX
*ctx
,
4956 uint8 in_buffer
[516],
4960 void encode_or_decode_arc4_passwd_buffer(unsigned char pw_buf
[532], const DATA_BLOB
*psession_key
);
4961 void sess_crypt_blob(DATA_BLOB
*out
, const DATA_BLOB
*in
, const DATA_BLOB
*session_key
, int forward
);
4962 char *decrypt_trustdom_secret(const char *pass
, DATA_BLOB
*data_in
);
4963 void encode_wkssvc_join_password_buffer(TALLOC_CTX
*mem_ctx
,
4965 DATA_BLOB
*session_key
,
4966 struct wkssvc_PasswordBuffer
**pwd_buf
);
4967 WERROR
decode_wkssvc_join_password_buffer(TALLOC_CTX
*mem_ctx
,
4968 struct wkssvc_PasswordBuffer
*pwd_buf
,
4969 DATA_BLOB
*session_key
,
4972 /* The following definitions come from libsmb/smberr.c */
4974 const char *smb_dos_err_name(uint8 e_class
, uint16 num
);
4975 const char *get_dos_error_msg(WERROR result
);
4976 const char *smb_dos_err_class(uint8 e_class
);
4977 char *smb_dos_errstr(char *inbuf
);
4978 WERROR
map_werror_from_unix(int error
);
4980 /* The following definitions come from libsmb/spnego.c */
4982 ssize_t
read_spnego_data(DATA_BLOB data
, SPNEGO_DATA
*token
);
4983 ssize_t
write_spnego_data(DATA_BLOB
*blob
, SPNEGO_DATA
*spnego
);
4984 bool free_spnego_data(SPNEGO_DATA
*spnego
);
4986 /* The following definitions come from libsmb/trustdom_cache.c */
4988 bool trustdom_cache_enable(void);
4989 bool trustdom_cache_shutdown(void);
4990 bool trustdom_cache_store(char* name
, char* alt_name
, const DOM_SID
*sid
,
4992 bool trustdom_cache_fetch(const char* name
, DOM_SID
* sid
);
4993 uint32
trustdom_cache_fetch_timestamp( void );
4994 bool trustdom_cache_store_timestamp( uint32 t
, time_t timeout
);
4995 void trustdom_cache_flush(void);
4996 void update_trustdom_cache( void );
4998 /* The following definitions come from libsmb/trusts_util.c */
5000 NTSTATUS
trust_pw_change_and_store_it(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
5002 unsigned char orig_trust_passwd_hash
[16],
5003 uint32 sec_channel_type
);
5004 NTSTATUS
trust_pw_find_change_and_store_it(struct rpc_pipe_client
*cli
,
5005 TALLOC_CTX
*mem_ctx
,
5006 const char *domain
) ;
5007 bool enumerate_domain_trusts( TALLOC_CTX
*mem_ctx
, const char *domain
,
5008 char ***domain_names
, uint32
*num_domains
,
5011 /* The following definitions come from libsmb/unexpected.c */
5013 void unexpected_packet(struct packet_struct
*p
);
5014 void clear_unexpected(time_t t
);
5015 struct packet_struct
*receive_unexpected(enum packet_type packet_type
, int id
,
5016 const char *mailslot_name
);
5018 /* The following definitions come from locking/brlock.c */
5020 bool brl_same_context(const struct lock_context
*ctx1
,
5021 const struct lock_context
*ctx2
);
5022 void brl_init(bool read_only
);
5023 void brl_shutdown(void);
5024 NTSTATUS
brl_lock(struct messaging_context
*msg_ctx
,
5025 struct byte_range_lock
*br_lck
,
5027 struct server_id pid
,
5030 enum brl_type lock_type
,
5031 enum brl_flavour lock_flav
,
5034 bool brl_unlock(struct messaging_context
*msg_ctx
,
5035 struct byte_range_lock
*br_lck
,
5037 struct server_id pid
,
5040 enum brl_flavour lock_flav
);
5041 bool brl_locktest(struct byte_range_lock
*br_lck
,
5043 struct server_id pid
,
5046 enum brl_type lock_type
,
5047 enum brl_flavour lock_flav
);
5048 NTSTATUS
brl_lockquery(struct byte_range_lock
*br_lck
,
5050 struct server_id pid
,
5053 enum brl_type
*plock_type
,
5054 enum brl_flavour lock_flav
);
5055 bool brl_lock_cancel(struct byte_range_lock
*br_lck
,
5057 struct server_id pid
,
5060 enum brl_flavour lock_flav
);
5061 void brl_close_fnum(struct messaging_context
*msg_ctx
,
5062 struct byte_range_lock
*br_lck
);
5063 int brl_forall(void (*fn
)(struct file_id id
, struct server_id pid
,
5064 enum brl_type lock_type
,
5065 enum brl_flavour lock_flav
,
5066 br_off start
, br_off size
,
5067 void *private_data
),
5068 void *private_data
);
5069 struct byte_range_lock
*brl_get_locks(TALLOC_CTX
*mem_ctx
,
5071 struct byte_range_lock
*brl_get_locks_readonly(TALLOC_CTX
*mem_ctx
,
5073 void brl_register_msgs(struct messaging_context
*msg_ctx
);
5075 /* The following definitions come from locking/locking.c */
5077 const char *lock_type_name(enum brl_type lock_type
);
5078 const char *lock_flav_name(enum brl_flavour lock_flav
);
5079 bool is_locked(files_struct
*fsp
,
5082 SMB_BIG_UINT offset
,
5083 enum brl_type lock_type
);
5084 NTSTATUS
query_lock(files_struct
*fsp
,
5086 SMB_BIG_UINT
*pcount
,
5087 SMB_BIG_UINT
*poffset
,
5088 enum brl_type
*plock_type
,
5089 enum brl_flavour lock_flav
);
5090 struct byte_range_lock
*do_lock(struct messaging_context
*msg_ctx
,
5094 SMB_BIG_UINT offset
,
5095 enum brl_type lock_type
,
5096 enum brl_flavour lock_flav
,
5100 NTSTATUS
do_unlock(struct messaging_context
*msg_ctx
,
5104 SMB_BIG_UINT offset
,
5105 enum brl_flavour lock_flav
);
5106 NTSTATUS
do_lock_cancel(files_struct
*fsp
,
5109 SMB_BIG_UINT offset
,
5110 enum brl_flavour lock_flav
);
5111 void locking_close_file(struct messaging_context
*msg_ctx
,
5113 bool locking_init(void);
5114 bool locking_init_readonly(void);
5115 bool locking_end(void);
5116 char *share_mode_str(TALLOC_CTX
*ctx
, int num
, const struct share_mode_entry
*e
);
5117 struct share_mode_lock
*get_share_mode_lock(TALLOC_CTX
*mem_ctx
,
5118 const struct file_id id
,
5119 const char *servicepath
,
5121 const struct timespec
*old_write_time
);
5122 struct share_mode_lock
*fetch_share_mode_unlocked(TALLOC_CTX
*mem_ctx
,
5123 const struct file_id id
,
5124 const char *servicepath
,
5126 bool rename_share_filename(struct messaging_context
*msg_ctx
,
5127 struct share_mode_lock
*lck
,
5128 const char *servicepath
,
5129 const char *newname
);
5130 void get_file_infos(struct file_id id
,
5131 bool *delete_on_close
,
5132 struct timespec
*write_time
);
5133 bool is_valid_share_mode_entry(const struct share_mode_entry
*e
);
5134 bool is_deferred_open_entry(const struct share_mode_entry
*e
);
5135 bool is_unused_share_mode_entry(const struct share_mode_entry
*e
);
5136 void set_share_mode(struct share_mode_lock
*lck
, files_struct
*fsp
,
5137 uid_t uid
, uint16 mid
, uint16 op_type
);
5138 void add_deferred_open(struct share_mode_lock
*lck
, uint16 mid
,
5139 struct timeval request_time
,
5141 bool del_share_mode(struct share_mode_lock
*lck
, files_struct
*fsp
);
5142 void del_deferred_open_entry(struct share_mode_lock
*lck
, uint16 mid
);
5143 bool remove_share_oplock(struct share_mode_lock
*lck
, files_struct
*fsp
);
5144 bool downgrade_share_oplock(struct share_mode_lock
*lck
, files_struct
*fsp
);
5145 NTSTATUS
can_set_delete_on_close(files_struct
*fsp
, bool delete_on_close
,
5147 void set_delete_on_close_token(struct share_mode_lock
*lck
, UNIX_USER_TOKEN
*tok
);
5148 void set_delete_on_close_lck(struct share_mode_lock
*lck
, bool delete_on_close
, UNIX_USER_TOKEN
*tok
);
5149 bool set_delete_on_close(files_struct
*fsp
, bool delete_on_close
, UNIX_USER_TOKEN
*tok
);
5150 bool set_sticky_write_time(struct file_id fileid
, struct timespec write_time
);
5151 bool set_write_time(struct file_id fileid
, struct timespec write_time
);
5152 int share_mode_forall(void (*fn
)(const struct share_mode_entry
*, const char *,
5153 const char *, void *),
5154 void *private_data
);
5156 /* The following definitions come from locking/posix.c */
5158 bool is_posix_locked(files_struct
*fsp
,
5159 SMB_BIG_UINT
*pu_offset
,
5160 SMB_BIG_UINT
*pu_count
,
5161 enum brl_type
*plock_type
,
5162 enum brl_flavour lock_flav
);
5163 bool posix_locking_init(bool read_only
);
5164 bool posix_locking_end(void);
5165 void reduce_windows_lock_ref_count(files_struct
*fsp
, unsigned int dcount
);
5166 int fd_close_posix(struct files_struct
*fsp
);
5167 bool set_posix_lock_windows_flavour(files_struct
*fsp
,
5168 SMB_BIG_UINT u_offset
,
5169 SMB_BIG_UINT u_count
,
5170 enum brl_type lock_type
,
5171 const struct lock_context
*lock_ctx
,
5172 const struct lock_struct
*plocks
,
5175 bool release_posix_lock_windows_flavour(files_struct
*fsp
,
5176 SMB_BIG_UINT u_offset
,
5177 SMB_BIG_UINT u_count
,
5178 enum brl_type deleted_lock_type
,
5179 const struct lock_context
*lock_ctx
,
5180 const struct lock_struct
*plocks
,
5182 bool set_posix_lock_posix_flavour(files_struct
*fsp
,
5183 SMB_BIG_UINT u_offset
,
5184 SMB_BIG_UINT u_count
,
5185 enum brl_type lock_type
,
5187 bool release_posix_lock_posix_flavour(files_struct
*fsp
,
5188 SMB_BIG_UINT u_offset
,
5189 SMB_BIG_UINT u_count
,
5190 const struct lock_context
*lock_ctx
,
5191 const struct lock_struct
*plocks
,
5194 /* The following definitions come from modules/vfs_default.c */
5196 int vfswrap_lstat(vfs_handle_struct
*handle
, const char *path
, SMB_STRUCT_STAT
*sbuf
);
5197 ssize_t
vfswrap_llistxattr(struct vfs_handle_struct
*handle
, const char *path
, char *list
, size_t size
);
5198 ssize_t
vfswrap_flistxattr(struct vfs_handle_struct
*handle
, struct files_struct
*fsp
, char *list
, size_t size
);
5199 NTSTATUS
vfs_default_init(void);
5201 /* The following definitions come from modules/vfs_posixacl.c */
5203 SMB_ACL_T
posixacl_sys_acl_get_file(vfs_handle_struct
*handle
,
5205 SMB_ACL_TYPE_T type
);
5206 SMB_ACL_T
posixacl_sys_acl_get_fd(vfs_handle_struct
*handle
,
5208 int posixacl_sys_acl_set_file(vfs_handle_struct
*handle
,
5210 SMB_ACL_TYPE_T type
,
5212 int posixacl_sys_acl_set_fd(vfs_handle_struct
*handle
,
5215 int posixacl_sys_acl_delete_def_file(vfs_handle_struct
*handle
,
5217 NTSTATUS
vfs_posixacl_init(void);
5219 /* The following definitions come from nmbd/asyncdns.c */
5221 int asyncdns_fd(void);
5222 void kill_async_dns_child(void);
5223 void start_async_dns(void);
5224 void run_dns_queue(void);
5225 bool queue_dns_query(struct packet_struct
*p
,struct nmb_name
*question
);
5226 bool queue_dns_query(struct packet_struct
*p
,struct nmb_name
*question
);
5227 void kill_async_dns_child(void);
5229 /* The following definitions come from nmbd/nmbd.c */
5231 struct event_context
*nmbd_event_context(void);
5232 struct messaging_context
*nmbd_messaging_context(void);
5234 /* The following definitions come from nmbd/nmbd_become_dmb.c */
5236 void add_domain_names(time_t t
);
5238 /* The following definitions come from nmbd/nmbd_become_lmb.c */
5240 void insert_permanent_name_into_unicast( struct subnet_record
*subrec
,
5241 struct nmb_name
*nmbname
, uint16 nb_type
);
5242 void unbecome_local_master_browser(struct subnet_record
*subrec
, struct work_record
*work
,
5243 bool force_new_election
);
5244 void become_local_master_browser(struct subnet_record
*subrec
, struct work_record
*work
);
5245 void set_workgroup_local_master_browser_name( struct work_record
*work
, const char *newname
);
5247 /* The following definitions come from nmbd/nmbd_browserdb.c */
5249 void update_browser_death_time( struct browse_cache_record
*browc
);
5250 struct browse_cache_record
*create_browser_in_lmb_cache( const char *work_name
,
5251 const char *browser_name
,
5252 struct in_addr ip
);
5253 struct browse_cache_record
*find_browser_in_lmb_cache( const char *browser_name
);
5254 void expire_lmb_browsers( time_t t
);
5256 /* The following definitions come from nmbd/nmbd_browsesync.c */
5258 void dmb_expire_and_sync_browser_lists(time_t t
);
5259 void announce_and_sync_with_domain_master_browser( struct subnet_record
*subrec
,
5260 struct work_record
*work
);
5261 void collect_all_workgroup_names_from_wins_server(time_t t
);
5262 void sync_all_dmbs(time_t t
);
5264 /* The following definitions come from nmbd/nmbd_elections.c */
5266 void check_master_browser_exists(time_t t
);
5267 void run_elections(time_t t
);
5268 void process_election(struct subnet_record
*subrec
, struct packet_struct
*p
, char *buf
);
5269 bool check_elections(void);
5270 void nmbd_message_election(struct messaging_context
*msg
,
5273 struct server_id server_id
,
5276 /* The following definitions come from nmbd/nmbd_incomingdgrams.c */
5278 void tell_become_backup(void);
5279 void process_host_announce(struct subnet_record
*subrec
, struct packet_struct
*p
, char *buf
);
5280 void process_workgroup_announce(struct subnet_record
*subrec
, struct packet_struct
*p
, char *buf
);
5281 void process_local_master_announce(struct subnet_record
*subrec
, struct packet_struct
*p
, char *buf
);
5282 void process_master_browser_announce(struct subnet_record
*subrec
,
5283 struct packet_struct
*p
,char *buf
);
5284 void process_lm_host_announce(struct subnet_record
*subrec
, struct packet_struct
*p
, char *buf
, int len
);
5285 void process_get_backup_list_request(struct subnet_record
*subrec
,
5286 struct packet_struct
*p
,char *buf
);
5287 void process_reset_browser(struct subnet_record
*subrec
,
5288 struct packet_struct
*p
,char *buf
);
5289 void process_announce_request(struct subnet_record
*subrec
, struct packet_struct
*p
, char *buf
);
5290 void process_lm_announce_request(struct subnet_record
*subrec
, struct packet_struct
*p
, char *buf
, int len
);
5292 /* The following definitions come from nmbd/nmbd_incomingrequests.c */
5294 void process_name_release_request(struct subnet_record
*subrec
,
5295 struct packet_struct
*p
);
5296 void process_name_refresh_request(struct subnet_record
*subrec
,
5297 struct packet_struct
*p
);
5298 void process_name_registration_request(struct subnet_record
*subrec
,
5299 struct packet_struct
*p
);
5300 void process_node_status_request(struct subnet_record
*subrec
, struct packet_struct
*p
);
5301 void process_name_query_request(struct subnet_record
*subrec
, struct packet_struct
*p
);
5303 /* The following definitions come from nmbd/nmbd_lmhosts.c */
5305 void load_lmhosts_file(const char *fname
);
5306 bool find_name_in_lmhosts(struct nmb_name
*nmbname
, struct name_record
**namerecp
);
5308 /* The following definitions come from nmbd/nmbd_logonnames.c */
5310 void add_logon_names(void);
5312 /* The following definitions come from nmbd/nmbd_mynames.c */
5314 void register_my_workgroup_one_subnet(struct subnet_record
*subrec
);
5315 bool register_my_workgroup_and_names(void);
5316 void release_wins_names(void);
5317 void refresh_my_names(time_t t
);
5319 /* The following definitions come from nmbd/nmbd_namelistdb.c */
5321 void set_samba_nb_type(void);
5322 void remove_name_from_namelist(struct subnet_record
*subrec
,
5323 struct name_record
*namerec
);
5324 struct name_record
*find_name_on_subnet(struct subnet_record
*subrec
,
5325 const struct nmb_name
*nmbname
,
5327 struct name_record
*find_name_for_remote_broadcast_subnet(struct nmb_name
*nmbname
,
5329 void update_name_ttl( struct name_record
*namerec
, int ttl
);
5330 bool add_name_to_subnet( struct subnet_record
*subrec
,
5335 enum name_source source
,
5337 struct in_addr
*iplist
);
5338 void standard_success_register(struct subnet_record
*subrec
,
5339 struct userdata_struct
*userdata
,
5340 struct nmb_name
*nmbname
, uint16 nb_flags
, int ttl
,
5341 struct in_addr registered_ip
);
5342 void standard_fail_register( struct subnet_record
*subrec
,
5343 struct nmb_name
*nmbname
);
5344 bool find_ip_in_name_record( struct name_record
*namerec
, struct in_addr ip
);
5345 void add_ip_to_name_record( struct name_record
*namerec
, struct in_addr new_ip
);
5346 void remove_ip_from_name_record( struct name_record
*namerec
,
5347 struct in_addr remove_ip
);
5348 void standard_success_release( struct subnet_record
*subrec
,
5349 struct userdata_struct
*userdata
,
5350 struct nmb_name
*nmbname
,
5351 struct in_addr released_ip
);
5352 void expire_names(time_t t
);
5353 void add_samba_names_to_subnet( struct subnet_record
*subrec
);
5354 void dump_name_record( struct name_record
*namerec
, XFILE
*fp
);
5355 void dump_all_namelists(void);
5357 /* The following definitions come from nmbd/nmbd_namequery.c */
5359 bool query_name(struct subnet_record
*subrec
, const char *name
, int type
,
5360 query_name_success_function success_fn
,
5361 query_name_fail_function fail_fn
,
5362 struct userdata_struct
*userdata
);
5363 bool query_name_from_wins_server(struct in_addr ip_to
,
5364 const char *name
, int type
,
5365 query_name_success_function success_fn
,
5366 query_name_fail_function fail_fn
,
5367 struct userdata_struct
*userdata
);
5369 /* The following definitions come from nmbd/nmbd_nameregister.c */
5371 void register_name(struct subnet_record
*subrec
,
5372 const char *name
, int type
, uint16 nb_flags
,
5373 register_name_success_function success_fn
,
5374 register_name_fail_function fail_fn
,
5375 struct userdata_struct
*userdata
);
5376 void wins_refresh_name(struct name_record
*namerec
);
5378 /* The following definitions come from nmbd/nmbd_namerelease.c */
5380 void release_name(struct subnet_record
*subrec
, struct name_record
*namerec
,
5381 release_name_success_function success_fn
,
5382 release_name_fail_function fail_fn
,
5383 struct userdata_struct
*userdata
);
5385 /* The following definitions come from nmbd/nmbd_nodestatus.c */
5387 bool node_status(struct subnet_record
*subrec
, struct nmb_name
*nmbname
,
5388 struct in_addr send_ip
, node_status_success_function success_fn
,
5389 node_status_fail_function fail_fn
, struct userdata_struct
*userdata
);
5391 /* The following definitions come from nmbd/nmbd_packets.c */
5393 uint16
get_nb_flags(char *buf
);
5394 void set_nb_flags(char *buf
, uint16 nb_flags
);
5395 struct response_record
*queue_register_name( struct subnet_record
*subrec
,
5396 response_function resp_fn
,
5397 timeout_response_function timeout_fn
,
5398 register_name_success_function success_fn
,
5399 register_name_fail_function fail_fn
,
5400 struct userdata_struct
*userdata
,
5401 struct nmb_name
*nmbname
,
5403 void queue_wins_refresh(struct nmb_name
*nmbname
,
5404 response_function resp_fn
,
5405 timeout_response_function timeout_fn
,
5407 struct in_addr refresh_ip
,
5409 struct response_record
*queue_register_multihomed_name( struct subnet_record
*subrec
,
5410 response_function resp_fn
,
5411 timeout_response_function timeout_fn
,
5412 register_name_success_function success_fn
,
5413 register_name_fail_function fail_fn
,
5414 struct userdata_struct
*userdata
,
5415 struct nmb_name
*nmbname
,
5417 struct in_addr register_ip
,
5418 struct in_addr wins_ip
);
5419 struct response_record
*queue_release_name( struct subnet_record
*subrec
,
5420 response_function resp_fn
,
5421 timeout_response_function timeout_fn
,
5422 release_name_success_function success_fn
,
5423 release_name_fail_function fail_fn
,
5424 struct userdata_struct
*userdata
,
5425 struct nmb_name
*nmbname
,
5427 struct in_addr release_ip
,
5428 struct in_addr dest_ip
);
5429 struct response_record
*queue_query_name( struct subnet_record
*subrec
,
5430 response_function resp_fn
,
5431 timeout_response_function timeout_fn
,
5432 query_name_success_function success_fn
,
5433 query_name_fail_function fail_fn
,
5434 struct userdata_struct
*userdata
,
5435 struct nmb_name
*nmbname
);
5436 struct response_record
*queue_query_name_from_wins_server( struct in_addr to_ip
,
5437 response_function resp_fn
,
5438 timeout_response_function timeout_fn
,
5439 query_name_success_function success_fn
,
5440 query_name_fail_function fail_fn
,
5441 struct userdata_struct
*userdata
,
5442 struct nmb_name
*nmbname
);
5443 struct response_record
*queue_node_status( struct subnet_record
*subrec
,
5444 response_function resp_fn
,
5445 timeout_response_function timeout_fn
,
5446 node_status_success_function success_fn
,
5447 node_status_fail_function fail_fn
,
5448 struct userdata_struct
*userdata
,
5449 struct nmb_name
*nmbname
,
5450 struct in_addr send_ip
);
5451 void reply_netbios_packet(struct packet_struct
*orig_packet
,
5452 int rcode
, enum netbios_reply_type_code rcv_code
, int opcode
,
5453 int ttl
, char *data
,int len
);
5454 void run_packet_queue(void);
5455 void retransmit_or_expire_response_records(time_t t
);
5456 bool listen_for_packets(bool run_election
);
5457 bool send_mailslot(bool unique
, const char *mailslot
,char *buf
, size_t len
,
5458 const char *srcname
, int src_type
,
5459 const char *dstname
, int dest_type
,
5460 struct in_addr dest_ip
,struct in_addr src_ip
,
5463 /* The following definitions come from nmbd/nmbd_processlogon.c */
5465 void process_logon_packet(struct packet_struct
*p
, char *buf
,int len
,
5466 const char *mailslot
);
5468 /* The following definitions come from nmbd/nmbd_responserecordsdb.c */
5470 void remove_response_record(struct subnet_record
*subrec
,
5471 struct response_record
*rrec
);
5472 struct response_record
*make_response_record( struct subnet_record
*subrec
,
5473 struct packet_struct
*p
,
5474 response_function resp_fn
,
5475 timeout_response_function timeout_fn
,
5476 success_function success_fn
,
5477 fail_function fail_fn
,
5478 struct userdata_struct
*userdata
);
5479 struct response_record
*find_response_record(struct subnet_record
**ppsubrec
,
5481 bool is_refresh_already_queued(struct subnet_record
*subrec
, struct name_record
*namerec
);
5483 /* The following definitions come from nmbd/nmbd_sendannounce.c */
5485 void send_browser_reset(int reset_type
, const char *to_name
, int to_type
, struct in_addr to_ip
);
5486 void broadcast_announce_request(struct subnet_record
*subrec
, struct work_record
*work
);
5487 void announce_my_server_names(time_t t
);
5488 void announce_my_lm_server_names(time_t t
);
5489 void reset_announce_timer(void);
5490 void announce_myself_to_domain_master_browser(time_t t
);
5491 void announce_my_servers_removed(void);
5492 void announce_remote(time_t t
);
5493 void browse_sync_remote(time_t t
);
5495 /* The following definitions come from nmbd/nmbd_serverlistdb.c */
5497 void remove_all_servers(struct work_record
*work
);
5498 struct server_record
*find_server_in_workgroup(struct work_record
*work
, const char *name
);
5499 void remove_server_from_workgroup(struct work_record
*work
, struct server_record
*servrec
);
5500 struct server_record
*create_server_on_workgroup(struct work_record
*work
,
5501 const char *name
,int servertype
,
5502 int ttl
, const char *comment
);
5503 void update_server_ttl(struct server_record
*servrec
, int ttl
);
5504 void expire_servers(struct work_record
*work
, time_t t
);
5505 void write_browse_list_entry(XFILE
*fp
, const char *name
, uint32 rec_type
,
5506 const char *local_master_browser_name
, const char *description
);
5507 void write_browse_list(time_t t
, bool force_write
);
5509 /* The following definitions come from nmbd/nmbd_subnetdb.c */
5511 void close_subnet(struct subnet_record
*subrec
);
5512 struct subnet_record
*make_normal_subnet(const struct interface
*iface
);
5513 bool create_subnets(void);
5514 bool we_are_a_wins_client(void);
5515 struct subnet_record
*get_next_subnet_maybe_unicast(struct subnet_record
*subrec
);
5516 struct subnet_record
*get_next_subnet_maybe_unicast_or_wins_server(struct subnet_record
*subrec
);
5518 /* The following definitions come from nmbd/nmbd_synclists.c */
5520 void sync_browse_lists(struct work_record
*work
,
5521 char *name
, int nm_type
,
5522 struct in_addr ip
, bool local
, bool servers
);
5523 void sync_check_completion(void);
5525 /* The following definitions come from nmbd/nmbd_winsproxy.c */
5527 void make_wins_proxy_name_query_request( struct subnet_record
*subrec
,
5528 struct packet_struct
*incoming_packet
,
5529 struct nmb_name
*question_name
);
5531 /* The following definitions come from nmbd/nmbd_winsserver.c */
5533 struct name_record
*find_name_on_wins_subnet(const struct nmb_name
*nmbname
, bool self_only
);
5534 bool wins_store_changed_namerec(const struct name_record
*namerec
);
5535 bool add_name_to_wins_subnet(const struct name_record
*namerec
);
5536 bool remove_name_from_wins_namelist(struct name_record
*namerec
);
5537 void dump_wins_subnet_namelist(XFILE
*fp
);
5538 bool packet_is_for_wins_server(struct packet_struct
*packet
);
5539 bool initialise_wins(void);
5540 void wins_process_name_refresh_request( struct subnet_record
*subrec
,
5541 struct packet_struct
*p
);
5542 void wins_process_name_registration_request(struct subnet_record
*subrec
,
5543 struct packet_struct
*p
);
5544 void wins_process_multihomed_name_registration_request( struct subnet_record
*subrec
,
5545 struct packet_struct
*p
);
5546 void fetch_all_active_wins_1b_names(void);
5547 void send_wins_name_query_response(int rcode
, struct packet_struct
*p
,
5548 struct name_record
*namerec
);
5549 void wins_process_name_query_request(struct subnet_record
*subrec
,
5550 struct packet_struct
*p
);
5551 void wins_process_name_release_request(struct subnet_record
*subrec
,
5552 struct packet_struct
*p
);
5553 void initiate_wins_processing(time_t t
);
5554 void wins_write_name_record(struct name_record
*namerec
, XFILE
*fp
);
5555 void wins_write_database(time_t t
, bool background
);
5556 void nmbd_wins_new_entry(struct messaging_context
*msg
,
5559 struct server_id server_id
,
5562 /* The following definitions come from nmbd/nmbd_workgroupdb.c */
5564 struct work_record
*find_workgroup_on_subnet(struct subnet_record
*subrec
,
5566 struct work_record
*create_workgroup_on_subnet(struct subnet_record
*subrec
,
5567 const char *name
, int ttl
);
5568 void update_workgroup_ttl(struct work_record
*work
, int ttl
);
5569 void initiate_myworkgroup_startup(struct subnet_record
*subrec
, struct work_record
*work
);
5570 void dump_workgroups(bool force_write
);
5571 void expire_workgroups_and_servers(time_t t
);
5573 /* The following definitions come from param/loadparm.c */
5575 char *lp_smb_ports(void);
5576 char *lp_dos_charset(void);
5577 char *lp_unix_charset(void);
5578 char *lp_display_charset(void);
5579 char *lp_logfile(void);
5580 char *lp_configfile(void);
5581 char *lp_smb_passwd_file(void);
5582 char *lp_private_dir(void);
5583 char *lp_serverstring(void);
5584 int lp_printcap_cache_time(void);
5585 char *lp_addport_cmd(void);
5586 char *lp_enumports_cmd(void);
5587 char *lp_addprinter_cmd(void);
5588 char *lp_deleteprinter_cmd(void);
5589 char *lp_os2_driver_map(void);
5590 char *lp_lockdir(void);
5591 char *lp_piddir(void);
5592 char *lp_mangling_method(void);
5593 int lp_mangle_prefix(void);
5594 char *lp_utmpdir(void);
5595 char *lp_wtmpdir(void);
5597 char *lp_rootdir(void);
5598 char *lp_defaultservice(void);
5599 char *lp_msg_command(void);
5600 char *lp_get_quota_command(void);
5601 char *lp_set_quota_command(void);
5602 char *lp_auto_services(void);
5603 char *lp_passwd_program(void);
5604 char *lp_passwd_chat(void);
5605 char *lp_passwordserver(void);
5606 char *lp_name_resolve_order(void);
5607 char *lp_realm(void);
5608 const char *lp_afs_username_map(void);
5609 int lp_afs_token_lifetime(void);
5610 char *lp_log_nt_token_command(void);
5611 char *lp_username_map(void);
5612 const char *lp_logon_script(void);
5613 const char *lp_logon_path(void);
5614 const char *lp_logon_drive(void);
5615 const char *lp_logon_home(void);
5616 char *lp_remote_announce(void);
5617 char *lp_remote_browse_sync(void);
5618 const char **lp_wins_server_list(void);
5619 const char **lp_interfaces(void);
5620 char *lp_nis_home_map_name(void);
5621 const char **lp_netbios_aliases(void);
5622 const char *lp_passdb_backend(void);
5623 const char **lp_preload_modules(void);
5624 char *lp_panic_action(void);
5625 char *lp_adduser_script(void);
5626 char *lp_renameuser_script(void);
5627 char *lp_deluser_script(void);
5628 const char *lp_guestaccount(void);
5629 char *lp_addgroup_script(void);
5630 char *lp_delgroup_script(void);
5631 char *lp_addusertogroup_script(void);
5632 char *lp_deluserfromgroup_script(void);
5633 char *lp_setprimarygroup_script(void);
5634 char *lp_addmachine_script(void);
5635 char *lp_shutdown_script(void);
5636 char *lp_abort_shutdown_script(void);
5637 char *lp_username_map_script(void);
5638 char *lp_check_password_script(void);
5639 char *lp_wins_hook(void);
5640 const char *lp_template_homedir(void);
5641 const char *lp_template_shell(void);
5642 const char *lp_winbind_separator(void);
5643 int lp_acl_compatibility(void);
5644 bool lp_winbind_enum_users(void);
5645 bool lp_winbind_enum_groups(void);
5646 bool lp_winbind_use_default_domain(void);
5647 bool lp_winbind_trusted_domains_only(void);
5648 bool lp_winbind_nested_groups(void);
5649 int lp_winbind_expand_groups(void);
5650 bool lp_winbind_refresh_tickets(void);
5651 bool lp_winbind_offline_logon(void);
5652 bool lp_winbind_normalize_names(void);
5653 bool lp_winbind_rpc_only(void);
5654 const char **lp_idmap_domains(void);
5655 const char **lp_idmap_backend(void);
5656 char *lp_idmap_alloc_backend(void);
5657 int lp_idmap_cache_time(void);
5658 int lp_idmap_negative_cache_time(void);
5659 int lp_keepalive(void);
5660 bool lp_passdb_expand_explicit(void);
5661 char *lp_ldap_suffix(void);
5662 char *lp_ldap_admin_dn(void);
5663 int lp_ldap_ssl(void);
5664 int lp_ldap_passwd_sync(void);
5665 bool lp_ldap_delete_dn(void);
5666 int lp_ldap_replication_sleep(void);
5667 int lp_ldap_timeout(void);
5668 int lp_ldap_connection_timeout(void);
5669 int lp_ldap_page_size(void);
5670 int lp_ldap_debug_level(void);
5671 int lp_ldap_debug_threshold(void);
5672 char *lp_add_share_cmd(void);
5673 char *lp_change_share_cmd(void);
5674 char *lp_delete_share_cmd(void);
5675 char *lp_usershare_path(void);
5676 const char **lp_usershare_prefix_allow_list(void);
5677 const char **lp_usershare_prefix_deny_list(void);
5678 const char **lp_eventlog_list(void);
5679 bool lp_registry_shares(void);
5680 bool lp_usershare_allow_guests(void);
5681 bool lp_usershare_owner_only(void);
5682 bool lp_disable_netbios(void);
5683 bool lp_reset_on_zero_vc(void);
5684 bool lp_ms_add_printer_wizard(void);
5685 bool lp_dns_proxy(void);
5686 bool lp_wins_support(void);
5687 bool lp_we_are_a_wins_server(void);
5688 bool lp_wins_proxy(void);
5689 bool lp_local_master(void);
5690 bool lp_domain_logons(void);
5691 bool lp_load_printers(void);
5692 bool lp_readraw(void);
5693 bool lp_large_readwrite(void);
5694 bool lp_writeraw(void);
5695 bool lp_null_passwords(void);
5696 bool lp_obey_pam_restrictions(void);
5697 bool lp_encrypted_passwords(void);
5698 bool lp_update_encrypted(void);
5699 int lp_client_schannel(void);
5700 int lp_server_schannel(void);
5701 bool lp_syslog_only(void);
5702 bool lp_timestamp_logs(void);
5703 bool lp_debug_prefix_timestamp(void);
5704 bool lp_debug_hires_timestamp(void);
5705 bool lp_debug_pid(void);
5706 bool lp_debug_uid(void);
5707 bool lp_debug_class(void);
5708 bool lp_enable_core_files(void);
5709 bool lp_browse_list(void);
5710 bool lp_nis_home_map(void);
5711 bool lp_bind_interfaces_only(void);
5712 bool lp_pam_password_change(void);
5713 bool lp_unix_password_sync(void);
5714 bool lp_passwd_chat_debug(void);
5715 int lp_passwd_chat_timeout(void);
5716 bool lp_nt_pipe_support(void);
5717 bool lp_nt_status_support(void);
5718 bool lp_stat_cache(void);
5719 int lp_max_stat_cache_size(void);
5720 bool lp_allow_trusted_domains(void);
5721 int lp_restrict_anonymous(void);
5722 bool lp_lanman_auth(void);
5723 bool lp_ntlm_auth(void);
5724 bool lp_client_plaintext_auth(void);
5725 bool lp_client_lanman_auth(void);
5726 bool lp_client_ntlmv2_auth(void);
5727 bool lp_host_msdfs(void);
5728 bool lp_kernel_oplocks(void);
5729 bool lp_enhanced_browsing(void);
5730 bool lp_use_mmap(void);
5731 bool lp_unix_extensions(void);
5732 bool lp_use_spnego(void);
5733 bool lp_client_use_spnego(void);
5734 bool lp_hostname_lookups(void);
5735 bool lp_change_notify(const struct share_params
*p
);
5736 bool lp_kernel_change_notify(const struct share_params
*p
);
5737 bool lp_use_kerberos_keytab(void);
5738 bool lp_defer_sharing_violations(void);
5739 bool lp_enable_privileges(void);
5740 bool lp_enable_asu_support(void);
5741 int lp_os_level(void);
5742 int lp_max_ttl(void);
5743 int lp_max_wins_ttl(void);
5744 int lp_min_wins_ttl(void);
5745 int lp_max_log_size(void);
5746 int lp_max_open_files(void);
5747 int lp_open_files_db_hash_size(void);
5748 int lp_maxxmit(void);
5749 int lp_maxmux(void);
5750 int lp_passwordlevel(void);
5751 int lp_usernamelevel(void);
5752 int lp_deadtime(void);
5753 bool lp_getwd_cache(void);
5754 int lp_maxprotocol(void);
5755 int lp_minprotocol(void);
5756 int lp_security(void);
5757 const char **lp_auth_methods(void);
5758 bool lp_paranoid_server_security(void);
5759 int lp_maxdisksize(void);
5760 int lp_lpqcachetime(void);
5761 int lp_max_smbd_processes(void);
5762 bool _lp_disable_spoolss(void);
5763 int lp_syslog(void);
5764 int lp_lm_announce(void);
5765 int lp_lm_interval(void);
5766 int lp_machine_password_timeout(void);
5767 int lp_map_to_guest(void);
5768 int lp_oplock_break_wait_time(void);
5769 int lp_lock_spin_time(void);
5770 int lp_usershare_max_shares(void);
5771 const char *lp_socket_options(void);
5772 int lp_config_backend(void);
5773 char *lp_preexec(int );
5774 char *lp_postexec(int );
5775 char *lp_rootpreexec(int );
5776 char *lp_rootpostexec(int );
5777 char *lp_servicename(int );
5778 const char *lp_const_servicename(int );
5779 char *lp_pathname(int );
5780 char *lp_dontdescend(int );
5781 char *lp_username(int );
5782 const char **lp_invalid_users(int );
5783 const char **lp_valid_users(int );
5784 const char **lp_admin_users(int );
5785 const char **lp_svcctl_list(void);
5786 char *lp_cups_options(int );
5787 char *lp_cups_server(void);
5788 char *lp_iprint_server(void);
5789 const char *lp_ctdbd_socket(void);
5790 const char **lp_cluster_addresses(void);
5791 bool lp_clustering(void);
5792 char *lp_printcommand(int );
5793 char *lp_lpqcommand(int );
5794 char *lp_lprmcommand(int );
5795 char *lp_lppausecommand(int );
5796 char *lp_lpresumecommand(int );
5797 char *lp_queuepausecommand(int );
5798 char *lp_queueresumecommand(int );
5799 const char *lp_printjob_username(int );
5800 const char **lp_hostsallow(int );
5801 const char **lp_hostsdeny(int );
5802 char *lp_magicscript(int );
5803 char *lp_magicoutput(int );
5804 char *lp_comment(int );
5805 char *lp_force_user(int );
5806 char *lp_force_group(int );
5807 const char **lp_readlist(int );
5808 const char **lp_writelist(int );
5809 const char **lp_printer_admin(int );
5810 char *lp_fstype(int );
5811 const char **lp_vfs_objects(int );
5812 char *lp_msdfs_proxy(int );
5813 char *lp_veto_files(int );
5814 char *lp_hide_files(int );
5815 char *lp_veto_oplocks(int );
5816 bool lp_msdfs_root(int );
5817 char *lp_aio_write_behind(int );
5818 char *lp_dfree_command(int );
5819 bool lp_autoloaded(int );
5820 bool lp_preexec_close(int );
5821 bool lp_rootpreexec_close(int );
5822 int lp_casesensitive(int );
5823 bool lp_preservecase(int );
5824 bool lp_shortpreservecase(int );
5825 bool lp_hide_dot_files(int );
5826 bool lp_hide_special_files(int );
5827 bool lp_hideunreadable(int );
5828 bool lp_hideunwriteable_files(int );
5829 bool lp_browseable(int );
5830 bool lp_readonly(int );
5831 bool lp_no_set_dir(int );
5832 bool lp_guest_ok(int );
5833 bool lp_guest_only(int );
5834 bool lp_administrative_share(int );
5835 bool lp_print_ok(int );
5836 bool lp_map_hidden(int );
5837 bool lp_map_archive(int );
5838 bool lp_store_dos_attributes(int );
5839 bool lp_dmapi_support(int );
5840 bool lp_locking(const struct share_params
*p
);
5841 int lp_strict_locking(const struct share_params
*p
);
5842 bool lp_posix_locking(const struct share_params
*p
);
5843 bool lp_share_modes(int );
5844 bool lp_oplocks(int );
5845 bool lp_level2_oplocks(int );
5846 bool lp_onlyuser(int );
5847 bool lp_manglednames(const struct share_params
*p
);
5848 bool lp_widelinks(int );
5849 bool lp_symlinks(int );
5850 bool lp_syncalways(int );
5851 bool lp_strict_allocate(int );
5852 bool lp_strict_sync(int );
5853 bool lp_map_system(int );
5854 bool lp_delete_readonly(int );
5855 bool lp_fake_oplocks(int );
5856 bool lp_recursive_veto_delete(int );
5857 bool lp_dos_filemode(int );
5858 bool lp_dos_filetimes(int );
5859 bool lp_dos_filetime_resolution(int );
5860 bool lp_fake_dir_create_times(int );
5861 bool lp_blocking_locks(int );
5862 bool lp_inherit_perms(int );
5863 bool lp_inherit_acls(int );
5864 bool lp_inherit_owner(int );
5865 bool lp_use_client_driver(int );
5866 bool lp_default_devmode(int );
5867 bool lp_force_printername(int );
5868 bool lp_nt_acl_support(int );
5869 bool lp_force_unknown_acl_user(int );
5870 bool lp_ea_support(int );
5871 bool _lp_use_sendfile(int );
5872 bool lp_profile_acls(int );
5873 bool lp_map_acl_inherit(int );
5874 bool lp_afs_share(int );
5875 bool lp_acl_check_permissions(int );
5876 bool lp_acl_group_control(int );
5877 bool lp_acl_map_full_control(int );
5878 int lp_create_mask(int );
5879 int lp_force_create_mode(int );
5880 int lp_security_mask(int );
5881 int lp_force_security_mode(int );
5882 int lp_dir_mask(int );
5883 int lp_force_dir_mode(int );
5884 int lp_dir_security_mask(int );
5885 int lp_force_dir_security_mode(int );
5886 int lp_max_connections(int );
5887 int lp_defaultcase(int );
5888 int lp_minprintspace(int );
5889 int lp_printing(int );
5890 int lp_max_reported_jobs(int );
5891 int lp_oplock_contention_limit(int );
5892 int lp_csc_policy(int );
5893 int lp_write_cache_size(int );
5894 int lp_block_size(int );
5895 int lp_dfree_cache_time(int );
5896 int lp_allocation_roundup_size(int );
5897 int lp_aio_read_size(int );
5898 int lp_aio_write_size(int );
5899 int lp_map_readonly(int );
5900 int lp_directory_name_cache_size(int );
5901 int lp_smb_encrypt(int );
5902 char lp_magicchar(const struct share_params
*p
);
5903 int lp_winbind_cache_time(void);
5904 const char **lp_winbind_nss_info(void);
5905 int lp_algorithmic_rid_base(void);
5906 int lp_name_cache_timeout(void);
5907 int lp_client_signing(void);
5908 int lp_server_signing(void);
5909 int lp_client_ldap_sasl_wrapping(void);
5910 char *lp_parm_talloc_string(int snum
, const char *type
, const char *option
, const char *def
);
5911 const char *lp_parm_const_string(int snum
, const char *type
, const char *option
, const char *def
);
5912 const char **lp_parm_string_list(int snum
, const char *type
, const char *option
, const char **def
);
5913 int lp_parm_int(int snum
, const char *type
, const char *option
, int def
);
5914 unsigned long lp_parm_ulong(int snum
, const char *type
, const char *option
, unsigned long def
);
5915 bool lp_parm_bool(int snum
, const char *type
, const char *option
, bool def
);
5916 int lp_parm_enum(int snum
, const char *type
, const char *option
,
5917 const struct enum_list
*_enum
, int def
);
5918 bool lp_add_home(const char *pszHomename
, int iDefaultService
,
5919 const char *user
, const char *pszHomedir
);
5920 int lp_add_service(const char *pszService
, int iDefaultService
);
5921 bool lp_add_printer(const char *pszPrintername
, int iDefaultService
);
5922 bool lp_parameter_is_valid(const char *pszParmName
);
5923 bool lp_parameter_is_global(const char *pszParmName
);
5924 bool lp_parameter_is_canonical(const char *parm_name
);
5925 bool lp_canonicalize_parameter(const char *parm_name
, const char **canon_parm
,
5927 bool lp_canonicalize_parameter_with_value(const char *parm_name
,
5929 const char **canon_parm
,
5930 const char **canon_val
);
5931 void show_parameter_list(void);
5932 bool lp_string_is_valid_boolean(const char *parm_value
);
5933 bool lp_invert_boolean(const char *str
, const char **inverse_str
);
5934 bool lp_canonicalize_boolean(const char *str
, const char**canon_str
);
5935 bool service_ok(int iService
);
5936 bool lp_config_backend_is_registry(void);
5937 bool lp_config_backend_is_file(void);
5938 bool lp_file_list_changed(void);
5939 bool lp_idmap_uid(uid_t
*low
, uid_t
*high
);
5940 bool lp_idmap_gid(gid_t
*low
, gid_t
*high
);
5941 const char *lp_ldap_machine_suffix(void);
5942 const char *lp_ldap_user_suffix(void);
5943 const char *lp_ldap_group_suffix(void);
5944 const char *lp_ldap_idmap_suffix(void);
5945 void *lp_local_ptr(int snum
, void *ptr
);
5946 bool lp_do_parameter(int snum
, const char *pszParmName
, const char *pszParmValue
);
5947 void init_locals(void);
5948 bool lp_is_default(int snum
, struct parm_struct
*parm
);
5949 bool dump_a_parameter(int snum
, char *parm_name
, FILE * f
, bool isGlobal
);
5950 struct parm_struct
*lp_get_parameter(const char *param_name
);
5951 struct parm_struct
*lp_next_parameter(int snum
, int *i
, int allparameters
);
5952 bool lp_snum_ok(int iService
);
5953 void lp_add_one_printer(const char *name
, const char *comment
, void *pdata
);
5954 bool lp_loaded(void);
5955 void lp_killunused(bool (*snumused
) (int));
5956 void lp_kill_all_services(void);
5957 void lp_killservice(int iServiceIn
);
5958 const char* server_role_str(uint32 role
);
5959 enum usershare_err
parse_usershare_file(TALLOC_CTX
*ctx
,
5960 SMB_STRUCT_STAT
*psbuf
,
5961 const char *servicename
,
5965 char **pp_sharepath
,
5968 bool *pallow_guest
);
5969 int load_usershare_service(const char *servicename
);
5970 int load_usershare_shares(void);
5971 void gfree_loadparm(void);
5972 void lp_set_in_client(bool b
);
5973 bool lp_is_in_client(void);
5974 bool lp_load_ex(const char *pszFname
,
5978 bool initialize_globals
,
5979 bool allow_include_registry
,
5980 bool allow_registry_shares
);
5981 bool lp_load(const char *pszFname
,
5985 bool initialize_globals
);
5986 bool lp_load_initial_only(const char *pszFname
);
5987 bool lp_load_with_registry_shares(const char *pszFname
,
5991 bool initialize_globals
);
5992 int lp_numservices(void);
5993 void lp_dump(FILE *f
, bool show_defaults
, int maxtoprint
);
5994 void lp_dump_one(FILE * f
, bool show_defaults
, int snum
);
5995 int lp_servicenumber(const char *pszServiceName
);
5996 bool share_defined(const char *service_name
);
5997 struct share_params
*get_share_params(TALLOC_CTX
*mem_ctx
,
5998 const char *sharename
);
5999 struct share_iterator
*share_list_all(TALLOC_CTX
*mem_ctx
);
6000 struct share_params
*next_share(struct share_iterator
*list
);
6001 struct share_params
*next_printer(struct share_iterator
*list
);
6002 struct share_params
*snum2params_static(int snum
);
6003 const char *volume_label(int snum
);
6004 int lp_server_role(void);
6005 bool lp_domain_master(void);
6006 bool lp_preferred_master(void);
6007 void lp_remove_service(int snum
);
6008 void lp_copy_service(int snum
, const char *new_name
);
6009 int lp_default_server_announce(void);
6010 int lp_major_announce_version(void);
6011 int lp_minor_announce_version(void);
6012 void lp_set_name_resolve_order(const char *new_order
);
6013 const char *lp_printername(int snum
);
6014 void lp_set_logfile(const char *name
);
6015 int lp_maxprintjobs(int snum
);
6016 const char *lp_printcapname(void);
6017 bool lp_disable_spoolss( void );
6018 void lp_set_spoolss_state( uint32 state
);
6019 uint32
lp_get_spoolss_state( void );
6020 bool lp_use_sendfile(int snum
);
6021 void set_use_sendfile(int snum
, bool val
);
6022 void set_store_dos_attributes(int snum
, bool val
);
6023 void lp_set_mangling_method(const char *new_method
);
6024 bool lp_posix_pathnames(void);
6025 void lp_set_posix_pathnames(void);
6026 enum brl_flavour
lp_posix_cifsu_locktype(files_struct
*fsp
);
6027 void lp_set_posix_default_cifsx_readwrite_locktype(enum brl_flavour val
);
6028 int lp_min_receive_file_size(void);
6029 const char *lp_socket_address(void);
6031 /* The following definitions come from param/params.c */
6033 bool pm_process( const char *FileName
,
6034 bool (*sfunc
)(const char *, void *),
6035 bool (*pfunc
)(const char *, const char *, void *),
6038 /* The following definitions come from param/util.c */
6040 uint32
get_int_param( const char* param
);
6041 char* get_string_param( const char* param
);
6043 /* The following definitions come from passdb/login_cache.c */
6045 bool login_cache_init(void);
6046 bool login_cache_shutdown(void);
6047 LOGIN_CACHE
* login_cache_read(struct samu
*sampass
);
6048 bool login_cache_write(const struct samu
*sampass
, LOGIN_CACHE entry
);
6049 bool login_cache_delentry(const struct samu
*sampass
);
6051 /* The following definitions come from passdb/lookup_sid.c */
6053 bool lookup_name(TALLOC_CTX
*mem_ctx
,
6054 const char *full_name
, int flags
,
6055 const char **ret_domain
, const char **ret_name
,
6056 DOM_SID
*ret_sid
, enum lsa_SidType
*ret_type
);
6057 bool lookup_name_smbconf(TALLOC_CTX
*mem_ctx
,
6058 const char *full_name
, int flags
,
6059 const char **ret_domain
, const char **ret_name
,
6060 DOM_SID
*ret_sid
, enum lsa_SidType
*ret_type
);
6061 NTSTATUS
lookup_sids(TALLOC_CTX
*mem_ctx
, int num_sids
,
6062 const DOM_SID
**sids
, int level
,
6063 struct lsa_dom_info
**ret_domains
,
6064 struct lsa_name_info
**ret_names
);
6065 bool lookup_sid(TALLOC_CTX
*mem_ctx
, const DOM_SID
*sid
,
6066 const char **ret_domain
, const char **ret_name
,
6067 enum lsa_SidType
*ret_type
);
6068 void store_uid_sid_cache(const DOM_SID
*psid
, uid_t uid
);
6069 void store_gid_sid_cache(const DOM_SID
*psid
, gid_t gid
);
6070 void uid_to_sid(DOM_SID
*psid
, uid_t uid
);
6071 void gid_to_sid(DOM_SID
*psid
, gid_t gid
);
6072 bool sid_to_uid(const DOM_SID
*psid
, uid_t
*puid
);
6073 bool sid_to_gid(const DOM_SID
*psid
, gid_t
*pgid
);
6075 /* The following definitions come from passdb/machine_sid.c */
6077 DOM_SID
*get_global_sam_sid(void);
6078 void reset_global_sam_sid(void) ;
6079 bool sid_check_is_domain(const DOM_SID
*sid
);
6080 bool sid_check_is_in_our_domain(const DOM_SID
*sid
);
6082 /* The following definitions come from passdb/passdb.c */
6084 const char *my_sam_name(void);
6085 struct samu
*samu_new( TALLOC_CTX
*ctx
);
6086 NTSTATUS
samu_set_unix(struct samu
*user
, const struct passwd
*pwd
);
6087 NTSTATUS
samu_alloc_rid_unix(struct samu
*user
, const struct passwd
*pwd
);
6088 char *pdb_encode_acct_ctrl(uint32 acct_ctrl
, size_t length
);
6089 uint32
pdb_decode_acct_ctrl(const char *p
);
6090 void pdb_sethexpwd(char p
[33], const unsigned char *pwd
, uint32 acct_ctrl
);
6091 bool pdb_gethexpwd(const char *p
, unsigned char *pwd
);
6092 void pdb_sethexhours(char *p
, const unsigned char *hours
);
6093 bool pdb_gethexhours(const char *p
, unsigned char *hours
);
6094 int algorithmic_rid_base(void);
6095 uid_t
algorithmic_pdb_user_rid_to_uid(uint32 user_rid
);
6096 uid_t
max_algorithmic_uid(void);
6097 uint32
algorithmic_pdb_uid_to_user_rid(uid_t uid
);
6098 gid_t
pdb_group_rid_to_gid(uint32 group_rid
);
6099 gid_t
max_algorithmic_gid(void);
6100 uint32
algorithmic_pdb_gid_to_group_rid(gid_t gid
);
6101 bool algorithmic_pdb_rid_is_user(uint32 rid
);
6102 bool lookup_global_sam_name(const char *name
, int flags
, uint32_t *rid
,
6103 enum lsa_SidType
*type
);
6104 NTSTATUS
local_password_change(const char *user_name
,
6106 const char *new_passwd
,
6109 bool init_sam_from_buffer_v3(struct samu
*sampass
, uint8
*buf
, uint32 buflen
);
6110 uint32
init_buffer_from_sam_v3 (uint8
**buf
, struct samu
*sampass
, bool size_only
);
6111 bool pdb_copy_sam_account(struct samu
*dst
, struct samu
*src
);
6112 bool pdb_update_bad_password_count(struct samu
*sampass
, bool *updated
);
6113 bool pdb_update_autolock_flag(struct samu
*sampass
, bool *updated
);
6114 bool pdb_increment_bad_password_count(struct samu
*sampass
);
6115 bool is_trusted_domain_situation(const char *domain_name
);
6116 bool get_trust_pw_clear(const char *domain
, char **ret_pwd
,
6117 const char **account_name
, uint32
*channel
);
6118 bool get_trust_pw_hash(const char *domain
, uint8 ret_pwd
[16],
6119 const char **account_name
, uint32
*channel
);
6120 struct samr_LogonHours
get_logon_hours_from_pdb(TALLOC_CTX
*mem_ctx
,
6123 /* The following definitions come from passdb/pdb_compat.c */
6125 uint32
pdb_get_user_rid (const struct samu
*sampass
);
6126 uint32
pdb_get_group_rid (struct samu
*sampass
);
6127 bool pdb_set_user_sid_from_rid (struct samu
*sampass
, uint32 rid
, enum pdb_value_state flag
);
6128 bool pdb_set_group_sid_from_rid (struct samu
*sampass
, uint32 grid
, enum pdb_value_state flag
);
6130 /* The following definitions come from passdb/pdb_get_set.c */
6132 uint32
pdb_get_acct_ctrl(const struct samu
*sampass
);
6133 time_t pdb_get_logon_time(const struct samu
*sampass
);
6134 time_t pdb_get_logoff_time(const struct samu
*sampass
);
6135 time_t pdb_get_kickoff_time(const struct samu
*sampass
);
6136 time_t pdb_get_bad_password_time(const struct samu
*sampass
);
6137 time_t pdb_get_pass_last_set_time(const struct samu
*sampass
);
6138 time_t pdb_get_pass_can_change_time(const struct samu
*sampass
);
6139 time_t pdb_get_pass_can_change_time_noncalc(const struct samu
*sampass
);
6140 time_t pdb_get_pass_must_change_time(const struct samu
*sampass
);
6141 bool pdb_get_pass_can_change(const struct samu
*sampass
);
6142 uint16
pdb_get_logon_divs(const struct samu
*sampass
);
6143 uint32
pdb_get_hours_len(const struct samu
*sampass
);
6144 const uint8
*pdb_get_hours(const struct samu
*sampass
);
6145 const uint8
*pdb_get_nt_passwd(const struct samu
*sampass
);
6146 const uint8
*pdb_get_lanman_passwd(const struct samu
*sampass
);
6147 const uint8
*pdb_get_pw_history(const struct samu
*sampass
, uint32
*current_hist_len
);
6148 const char *pdb_get_plaintext_passwd(const struct samu
*sampass
);
6149 const DOM_SID
*pdb_get_user_sid(const struct samu
*sampass
);
6150 const DOM_SID
*pdb_get_group_sid(struct samu
*sampass
);
6151 enum pdb_value_state
pdb_get_init_flags(const struct samu
*sampass
, enum pdb_elements element
);
6152 const char *pdb_get_username(const struct samu
*sampass
);
6153 const char *pdb_get_domain(const struct samu
*sampass
);
6154 const char *pdb_get_nt_username(const struct samu
*sampass
);
6155 const char *pdb_get_fullname(const struct samu
*sampass
);
6156 const char *pdb_get_homedir(const struct samu
*sampass
);
6157 const char *pdb_get_unix_homedir(const struct samu
*sampass
);
6158 const char *pdb_get_dir_drive(const struct samu
*sampass
);
6159 const char *pdb_get_logon_script(const struct samu
*sampass
);
6160 const char *pdb_get_profile_path(const struct samu
*sampass
);
6161 const char *pdb_get_acct_desc(const struct samu
*sampass
);
6162 const char *pdb_get_workstations(const struct samu
*sampass
);
6163 const char *pdb_get_comment(const struct samu
*sampass
);
6164 const char *pdb_get_munged_dial(const struct samu
*sampass
);
6165 uint16
pdb_get_bad_password_count(const struct samu
*sampass
);
6166 uint16
pdb_get_logon_count(const struct samu
*sampass
);
6167 uint32
pdb_get_unknown_6(const struct samu
*sampass
);
6168 void *pdb_get_backend_private_data(const struct samu
*sampass
, const struct pdb_methods
*my_methods
);
6169 bool pdb_set_acct_ctrl(struct samu
*sampass
, uint32 acct_ctrl
, enum pdb_value_state flag
);
6170 bool pdb_set_logon_time(struct samu
*sampass
, time_t mytime
, enum pdb_value_state flag
);
6171 bool pdb_set_logoff_time(struct samu
*sampass
, time_t mytime
, enum pdb_value_state flag
);
6172 bool pdb_set_kickoff_time(struct samu
*sampass
, time_t mytime
, enum pdb_value_state flag
);
6173 bool pdb_set_bad_password_time(struct samu
*sampass
, time_t mytime
, enum pdb_value_state flag
);
6174 bool pdb_set_pass_can_change_time(struct samu
*sampass
, time_t mytime
, enum pdb_value_state flag
);
6175 bool pdb_set_pass_must_change_time(struct samu
*sampass
, time_t mytime
, enum pdb_value_state flag
);
6176 bool pdb_set_pass_last_set_time(struct samu
*sampass
, time_t mytime
, enum pdb_value_state flag
);
6177 bool pdb_set_hours_len(struct samu
*sampass
, uint32 len
, enum pdb_value_state flag
);
6178 bool pdb_set_logon_divs(struct samu
*sampass
, uint16 hours
, enum pdb_value_state flag
);
6179 bool pdb_set_init_flags(struct samu
*sampass
, enum pdb_elements element
, enum pdb_value_state value_flag
);
6180 bool pdb_set_user_sid(struct samu
*sampass
, const DOM_SID
*u_sid
, enum pdb_value_state flag
);
6181 bool pdb_set_user_sid_from_string(struct samu
*sampass
, fstring u_sid
, enum pdb_value_state flag
);
6182 bool pdb_set_group_sid(struct samu
*sampass
, const DOM_SID
*g_sid
, enum pdb_value_state flag
);
6183 bool pdb_set_username(struct samu
*sampass
, const char *username
, enum pdb_value_state flag
);
6184 bool pdb_set_domain(struct samu
*sampass
, const char *domain
, enum pdb_value_state flag
);
6185 bool pdb_set_nt_username(struct samu
*sampass
, const char *nt_username
, enum pdb_value_state flag
);
6186 bool pdb_set_fullname(struct samu
*sampass
, const char *full_name
, enum pdb_value_state flag
);
6187 bool pdb_set_logon_script(struct samu
*sampass
, const char *logon_script
, enum pdb_value_state flag
);
6188 bool pdb_set_profile_path(struct samu
*sampass
, const char *profile_path
, enum pdb_value_state flag
);
6189 bool pdb_set_dir_drive(struct samu
*sampass
, const char *dir_drive
, enum pdb_value_state flag
);
6190 bool pdb_set_homedir(struct samu
*sampass
, const char *home_dir
, enum pdb_value_state flag
);
6191 bool pdb_set_acct_desc(struct samu
*sampass
, const char *acct_desc
, enum pdb_value_state flag
);
6192 bool pdb_set_workstations(struct samu
*sampass
, const char *workstations
, enum pdb_value_state flag
);
6193 bool pdb_set_comment(struct samu
*sampass
, const char *comment
, enum pdb_value_state flag
);
6194 bool pdb_set_munged_dial(struct samu
*sampass
, const char *munged_dial
, enum pdb_value_state flag
);
6195 bool pdb_set_nt_passwd(struct samu
*sampass
, const uint8 pwd
[NT_HASH_LEN
], enum pdb_value_state flag
);
6196 bool pdb_set_lanman_passwd(struct samu
*sampass
, const uint8 pwd
[LM_HASH_LEN
], enum pdb_value_state flag
);
6197 bool pdb_set_pw_history(struct samu
*sampass
, const uint8
*pwd
, uint32 historyLen
, enum pdb_value_state flag
);
6198 bool pdb_set_plaintext_pw_only(struct samu
*sampass
, const char *password
, enum pdb_value_state flag
);
6199 bool pdb_set_bad_password_count(struct samu
*sampass
, uint16 bad_password_count
, enum pdb_value_state flag
);
6200 bool pdb_set_logon_count(struct samu
*sampass
, uint16 logon_count
, enum pdb_value_state flag
);
6201 bool pdb_set_unknown_6(struct samu
*sampass
, uint32 unkn
, enum pdb_value_state flag
);
6202 bool pdb_set_hours(struct samu
*sampass
, const uint8
*hours
, enum pdb_value_state flag
);
6203 bool pdb_set_backend_private_data(struct samu
*sampass
, void *private_data
,
6204 void (*free_fn
)(void **),
6205 const struct pdb_methods
*my_methods
,
6206 enum pdb_value_state flag
);
6207 bool pdb_set_pass_can_change(struct samu
*sampass
, bool canchange
);
6208 bool pdb_set_plaintext_passwd(struct samu
*sampass
, const char *plaintext
);
6209 uint32
pdb_build_fields_present(struct samu
*sampass
);
6211 /* The following definitions come from passdb/pdb_interface.c */
6213 NTSTATUS
smb_register_passdb(int version
, const char *name
, pdb_init_function init
) ;
6214 struct pdb_init_function_entry
*pdb_find_backend_entry(const char *name
);
6215 struct event_context
*pdb_get_event_context(void);
6216 NTSTATUS
make_pdb_method_name(struct pdb_methods
**methods
, const char *selected
);
6217 bool pdb_getsampwnam(struct samu
*sam_acct
, const char *username
) ;
6218 bool guest_user_info( struct samu
*user
);
6219 bool pdb_getsampwsid(struct samu
*sam_acct
, const DOM_SID
*sid
) ;
6220 NTSTATUS
pdb_create_user(TALLOC_CTX
*mem_ctx
, const char *name
, uint32 flags
,
6222 NTSTATUS
pdb_delete_user(TALLOC_CTX
*mem_ctx
, struct samu
*sam_acct
);
6223 NTSTATUS
pdb_add_sam_account(struct samu
*sam_acct
) ;
6224 NTSTATUS
pdb_update_sam_account(struct samu
*sam_acct
) ;
6225 NTSTATUS
pdb_delete_sam_account(struct samu
*sam_acct
) ;
6226 NTSTATUS
pdb_rename_sam_account(struct samu
*oldname
, const char *newname
);
6227 NTSTATUS
pdb_update_login_attempts(struct samu
*sam_acct
, bool success
);
6228 bool pdb_getgrsid(GROUP_MAP
*map
, DOM_SID sid
);
6229 bool pdb_getgrgid(GROUP_MAP
*map
, gid_t gid
);
6230 bool pdb_getgrnam(GROUP_MAP
*map
, const char *name
);
6231 NTSTATUS
pdb_create_dom_group(TALLOC_CTX
*mem_ctx
, const char *name
,
6233 NTSTATUS
pdb_delete_dom_group(TALLOC_CTX
*mem_ctx
, uint32 rid
);
6234 NTSTATUS
pdb_add_group_mapping_entry(GROUP_MAP
*map
);
6235 NTSTATUS
pdb_update_group_mapping_entry(GROUP_MAP
*map
);
6236 NTSTATUS
pdb_delete_group_mapping_entry(DOM_SID sid
);
6237 bool pdb_enum_group_mapping(const DOM_SID
*sid
, enum lsa_SidType sid_name_use
, GROUP_MAP
**pp_rmap
,
6238 size_t *p_num_entries
, bool unix_only
);
6239 NTSTATUS
pdb_enum_group_members(TALLOC_CTX
*mem_ctx
,
6241 uint32
**pp_member_rids
,
6242 size_t *p_num_members
);
6243 NTSTATUS
pdb_enum_group_memberships(TALLOC_CTX
*mem_ctx
, struct samu
*user
,
6244 DOM_SID
**pp_sids
, gid_t
**pp_gids
,
6245 size_t *p_num_groups
);
6246 NTSTATUS
pdb_set_unix_primary_group(TALLOC_CTX
*mem_ctx
, struct samu
*user
);
6247 NTSTATUS
pdb_add_groupmem(TALLOC_CTX
*mem_ctx
, uint32 group_rid
,
6249 NTSTATUS
pdb_del_groupmem(TALLOC_CTX
*mem_ctx
, uint32 group_rid
,
6251 NTSTATUS
pdb_create_alias(const char *name
, uint32
*rid
);
6252 NTSTATUS
pdb_delete_alias(const DOM_SID
*sid
);
6253 NTSTATUS
pdb_get_aliasinfo(const DOM_SID
*sid
, struct acct_info
*info
);
6254 NTSTATUS
pdb_set_aliasinfo(const DOM_SID
*sid
, struct acct_info
*info
);
6255 NTSTATUS
pdb_add_aliasmem(const DOM_SID
*alias
, const DOM_SID
*member
);
6256 NTSTATUS
pdb_del_aliasmem(const DOM_SID
*alias
, const DOM_SID
*member
);
6257 NTSTATUS
pdb_enum_aliasmem(const DOM_SID
*alias
,
6258 DOM_SID
**pp_members
, size_t *p_num_members
);
6259 NTSTATUS
pdb_enum_alias_memberships(TALLOC_CTX
*mem_ctx
,
6260 const DOM_SID
*domain_sid
,
6261 const DOM_SID
*members
, size_t num_members
,
6262 uint32
**pp_alias_rids
,
6263 size_t *p_num_alias_rids
);
6264 NTSTATUS
pdb_lookup_rids(const DOM_SID
*domain_sid
,
6268 enum lsa_SidType
*attrs
);
6269 NTSTATUS
pdb_lookup_names(const DOM_SID
*domain_sid
,
6273 enum lsa_SidType
*attrs
);
6274 bool pdb_get_account_policy(int policy_index
, uint32
*value
);
6275 bool pdb_set_account_policy(int policy_index
, uint32 value
);
6276 bool pdb_get_seq_num(time_t *seq_num
);
6277 bool pdb_uid_to_rid(uid_t uid
, uint32
*rid
);
6278 bool pdb_uid_to_sid(uid_t uid
, DOM_SID
*sid
);
6279 bool pdb_gid_to_sid(gid_t gid
, DOM_SID
*sid
);
6280 bool pdb_sid_to_id(const DOM_SID
*sid
, union unid_t
*id
,
6281 enum lsa_SidType
*type
);
6282 bool pdb_rid_algorithm(void);
6283 bool pdb_new_rid(uint32
*rid
);
6284 bool initialize_password_db(bool reload
, struct event_context
*event_ctx
);
6285 struct pdb_search
*pdb_search_init(enum pdb_search_type type
);
6286 struct pdb_search
*pdb_search_users(uint32 acct_flags
);
6287 struct pdb_search
*pdb_search_groups(void);
6288 struct pdb_search
*pdb_search_aliases(const DOM_SID
*sid
);
6289 uint32
pdb_search_entries(struct pdb_search
*search
,
6290 uint32 start_idx
, uint32 max_entries
,
6291 struct samr_displayentry
**result
);
6292 void pdb_search_destroy(struct pdb_search
*search
);
6293 bool pdb_get_trusteddom_pw(const char *domain
, char** pwd
, DOM_SID
*sid
,
6294 time_t *pass_last_set_time
);
6295 bool pdb_set_trusteddom_pw(const char* domain
, const char* pwd
,
6296 const DOM_SID
*sid
);
6297 bool pdb_del_trusteddom_pw(const char *domain
);
6298 NTSTATUS
pdb_enum_trusteddoms(TALLOC_CTX
*mem_ctx
, uint32
*num_domains
,
6299 struct trustdom_info
***domains
);
6300 NTSTATUS
make_pdb_method( struct pdb_methods
**methods
) ;
6302 /* The following definitions come from passdb/pdb_ldap.c */
6304 const char** get_userattr_list( TALLOC_CTX
*mem_ctx
, int schema_ver
);
6305 int ldapsam_search_suffix_by_name(struct ldapsam_privates
*ldap_state
,
6307 LDAPMessage
** result
,
6309 const char **talloc_attrs(TALLOC_CTX
*mem_ctx
, ...);
6310 NTSTATUS
pdb_init_ldapsam_compat(struct pdb_methods
**pdb_method
, const char *location
);
6311 NTSTATUS
pdb_init_ldapsam(struct pdb_methods
**pdb_method
, const char *location
);
6312 NTSTATUS
pdb_ldap_init(void);
6314 /* The following definitions come from passdb/pdb_nds.c */
6316 int pdb_nds_get_password(
6317 struct smbldap_state
*ldap_state
,
6321 int pdb_nds_set_password(
6322 struct smbldap_state
*ldap_state
,
6325 NTSTATUS
pdb_nds_init(void);
6327 /* The following definitions come from passdb/pdb_smbpasswd.c */
6329 NTSTATUS
pdb_smbpasswd_init(void) ;
6331 /* The following definitions come from passdb/pdb_tdb.c */
6333 bool init_sam_from_buffer_v2(struct samu
*sampass
, uint8
*buf
, uint32 buflen
);
6334 NTSTATUS
pdb_tdbsam_init(void);
6336 /* The following definitions come from passdb/secrets.c */
6338 bool secrets_init(void);
6339 struct db_context
*secrets_db_ctx(void);
6340 void secrets_shutdown(void);
6341 void *secrets_fetch(const char *key
, size_t *size
);
6342 bool secrets_store(const char *key
, const void *data
, size_t size
);
6343 bool secrets_delete(const char *key
);
6344 bool secrets_store_domain_sid(const char *domain
, const DOM_SID
*sid
);
6345 bool secrets_fetch_domain_sid(const char *domain
, DOM_SID
*sid
);
6346 bool secrets_store_domain_guid(const char *domain
, struct GUID
*guid
);
6347 bool secrets_fetch_domain_guid(const char *domain
, struct GUID
*guid
);
6348 void *secrets_get_trust_account_lock(TALLOC_CTX
*mem_ctx
, const char *domain
);
6349 uint32
get_default_sec_channel(void);
6350 bool secrets_fetch_trust_account_password_legacy(const char *domain
,
6352 time_t *pass_last_set_time
,
6354 bool secrets_fetch_trust_account_password(const char *domain
, uint8 ret_pwd
[16],
6355 time_t *pass_last_set_time
,
6357 bool secrets_fetch_trusted_domain_password(const char *domain
, char** pwd
,
6358 DOM_SID
*sid
, time_t *pass_last_set_time
);
6359 bool secrets_store_trusted_domain_password(const char* domain
, const char* pwd
,
6360 const DOM_SID
*sid
);
6361 bool secrets_delete_machine_password(const char *domain
);
6362 bool secrets_delete_machine_password_ex(const char *domain
);
6363 bool secrets_delete_domain_sid(const char *domain
);
6364 bool secrets_store_machine_password(const char *pass
, const char *domain
, uint32 sec_channel
);
6365 char *secrets_fetch_machine_password(const char *domain
,
6366 time_t *pass_last_set_time
,
6368 bool trusted_domain_password_delete(const char *domain
);
6369 bool secrets_store_ldap_pw(const char* dn
, char* pw
);
6370 bool fetch_ldap_pw(char **dn
, char** pw
);
6371 NTSTATUS
secrets_trusted_domains(TALLOC_CTX
*mem_ctx
, uint32
*num_domains
,
6372 struct trustdom_info
***domains
);
6373 bool secrets_store_afs_keyfile(const char *cell
, const struct afs_keyfile
*keyfile
);
6374 bool secrets_fetch_afs_key(const char *cell
, struct afs_key
*result
);
6375 void secrets_fetch_ipc_userpass(char **username
, char **domain
, char **password
);
6376 bool secrets_store_schannel_session_info(TALLOC_CTX
*mem_ctx
,
6377 const char *remote_machine
,
6378 const struct dcinfo
*pdc
);
6379 bool secrets_restore_schannel_session_info(TALLOC_CTX
*mem_ctx
,
6380 const char *remote_machine
,
6381 struct dcinfo
**ppdc
);
6382 bool secrets_store_generic(const char *owner
, const char *key
, const char *secret
);
6383 char *secrets_fetch_generic(const char *owner
, const char *key
);
6385 /* The following definitions come from passdb/util_builtin.c */
6387 bool lookup_builtin_rid(TALLOC_CTX
*mem_ctx
, uint32 rid
, const char **name
);
6388 bool lookup_builtin_name(const char *name
, uint32
*rid
);
6389 const char *builtin_domain_name(void);
6390 bool sid_check_is_builtin(const DOM_SID
*sid
);
6391 bool sid_check_is_in_builtin(const DOM_SID
*sid
);
6393 /* The following definitions come from passdb/util_unixsids.c */
6395 bool sid_check_is_unix_users(const DOM_SID
*sid
);
6396 bool sid_check_is_in_unix_users(const DOM_SID
*sid
);
6397 bool uid_to_unix_users_sid(uid_t uid
, DOM_SID
*sid
);
6398 bool gid_to_unix_groups_sid(gid_t gid
, DOM_SID
*sid
);
6399 const char *unix_users_domain_name(void);
6400 bool lookup_unix_user_name(const char *name
, DOM_SID
*sid
);
6401 bool sid_check_is_unix_groups(const DOM_SID
*sid
);
6402 bool sid_check_is_in_unix_groups(const DOM_SID
*sid
);
6403 const char *unix_groups_domain_name(void);
6404 bool lookup_unix_group_name(const char *name
, DOM_SID
*sid
);
6406 /* The following definitions come from passdb/util_wellknown.c */
6408 bool sid_check_is_wellknown_domain(const DOM_SID
*sid
, const char **name
);
6409 bool sid_check_is_in_wellknown_domain(const DOM_SID
*sid
);
6410 bool lookup_wellknown_sid(TALLOC_CTX
*mem_ctx
, const DOM_SID
*sid
,
6411 const char **domain
, const char **name
);
6412 bool lookup_wellknown_name(TALLOC_CTX
*mem_ctx
, const char *name
,
6413 DOM_SID
*sid
, const char **domain
);
6415 /* The following definitions come from printing/load.c */
6417 void load_printers(void);
6419 /* The following definitions come from printing/lpq_parse.c */
6421 bool parse_lpq_entry(enum printing_types printing_type
,char *line
,
6422 print_queue_struct
*buf
,
6423 print_status_struct
*status
,bool first
);
6425 /* The following definitions come from printing/notify.c */
6427 int print_queue_snum(const char *qname
);
6428 bool print_notify_messages_pending(void);
6429 void print_notify_send_messages(struct messaging_context
*msg_ctx
,
6430 unsigned int timeout
);
6431 void notify_printer_status_byname(const char *sharename
, uint32 status
);
6432 void notify_printer_status(int snum
, uint32 status
);
6433 void notify_job_status_byname(const char *sharename
, uint32 jobid
, uint32 status
,
6435 void notify_job_status(const char *sharename
, uint32 jobid
, uint32 status
);
6436 void notify_job_total_bytes(const char *sharename
, uint32 jobid
,
6438 void notify_job_total_pages(const char *sharename
, uint32 jobid
,
6440 void notify_job_username(const char *sharename
, uint32 jobid
, char *name
);
6441 void notify_job_name(const char *sharename
, uint32 jobid
, char *name
);
6442 void notify_job_submitted(const char *sharename
, uint32 jobid
,
6444 void notify_printer_driver(int snum
, char *driver_name
);
6445 void notify_printer_comment(int snum
, char *comment
);
6446 void notify_printer_sharename(int snum
, char *share_name
);
6447 void notify_printer_printername(int snum
, char *printername
);
6448 void notify_printer_port(int snum
, char *port_name
);
6449 void notify_printer_location(int snum
, char *location
);
6450 void notify_printer_byname( const char *printername
, uint32 change
, const char *value
);
6451 bool print_notify_pid_list(const char *printername
, TALLOC_CTX
*mem_ctx
, size_t *p_num_pids
, pid_t
**pp_pid_list
);
6453 /* The following definitions come from printing/nt_printing.c */
6455 bool nt_printing_init(struct messaging_context
*msg_ctx
);
6456 uint32
update_c_setprinter(bool initialize
);
6457 uint32
get_c_setprinter(void);
6458 int get_builtin_ntforms(nt_forms_struct
**list
);
6459 bool get_a_builtin_ntform(UNISTR2
*uni_formname
,nt_forms_struct
*form
);
6460 int get_ntforms(nt_forms_struct
**list
);
6461 int write_ntforms(nt_forms_struct
**list
, int number
);
6462 bool add_a_form(nt_forms_struct
**list
, const FORM
*form
, int *count
);
6463 bool delete_a_form(nt_forms_struct
**list
, UNISTR2
*del_name
, int *count
, WERROR
*ret
);
6464 void update_a_form(nt_forms_struct
**list
, const FORM
*form
, int count
);
6465 int get_ntdrivers(fstring
**list
, const char *architecture
, uint32 version
);
6466 const char *get_short_archi(const char *long_archi
);
6467 WERROR
clean_up_driver_struct(NT_PRINTER_DRIVER_INFO_LEVEL driver_abstract
,
6468 uint32 level
, struct current_user
*user
);
6469 WERROR
move_driver_to_download_area(NT_PRINTER_DRIVER_INFO_LEVEL driver_abstract
, uint32 level
,
6470 struct current_user
*user
, WERROR
*perr
);
6471 int pack_devicemode(NT_DEVICEMODE
*nt_devmode
, uint8
*buf
, int buflen
);
6472 uint32
del_a_printer(const char *sharename
);
6473 NT_DEVICEMODE
*construct_nt_devicemode(const fstring default_devicename
);
6474 NT_DEVICEMODE
*dup_nt_devicemode(NT_DEVICEMODE
*nt_devicemode
);
6475 void free_nt_devicemode(NT_DEVICEMODE
**devmode_ptr
);
6476 int unpack_devicemode(NT_DEVICEMODE
**nt_devmode
, const uint8
*buf
, int buflen
);
6477 int add_new_printer_key( NT_PRINTER_DATA
*data
, const char *name
);
6478 int delete_printer_key( NT_PRINTER_DATA
*data
, const char *name
);
6479 int lookup_printerkey( NT_PRINTER_DATA
*data
, const char *name
);
6480 int get_printer_subkeys( NT_PRINTER_DATA
*data
, const char* key
, fstring
**subkeys
);
6481 WERROR
nt_printer_publish(Printer_entry
*print_hnd
, int snum
, int action
);
6482 WERROR
check_published_printers(void);
6483 bool is_printer_published(Printer_entry
*print_hnd
, int snum
,
6485 WERROR
nt_printer_publish(Printer_entry
*print_hnd
, int snum
, int action
);
6486 WERROR
check_published_printers(void);
6487 bool is_printer_published(Printer_entry
*print_hnd
, int snum
,
6489 WERROR
delete_all_printer_data( NT_PRINTER_INFO_LEVEL_2
*p2
, const char *key
);
6490 WERROR
delete_printer_data( NT_PRINTER_INFO_LEVEL_2
*p2
, const char *key
, const char *value
);
6491 WERROR
add_printer_data( NT_PRINTER_INFO_LEVEL_2
*p2
, const char *key
, const char *value
,
6492 uint32 type
, uint8
*data
, int real_len
);
6493 REGISTRY_VALUE
* get_printer_data( NT_PRINTER_INFO_LEVEL_2
*p2
, const char *key
, const char *value
);
6494 WERROR
mod_a_printer(NT_PRINTER_INFO_LEVEL
*printer
, uint32 level
);
6495 bool set_driver_init(NT_PRINTER_INFO_LEVEL
*printer
, uint32 level
);
6496 bool del_driver_init(char *drivername
);
6497 WERROR
save_driver_init(NT_PRINTER_INFO_LEVEL
*printer
, uint32 level
, uint8
*data
, uint32 data_len
);
6498 WERROR
get_a_printer( Printer_entry
*print_hnd
,
6499 NT_PRINTER_INFO_LEVEL
**pp_printer
,
6501 const char *sharename
);
6502 WERROR
get_a_printer_search( Printer_entry
*print_hnd
,
6503 NT_PRINTER_INFO_LEVEL
**pp_printer
,
6505 const char *sharename
);
6506 uint32
free_a_printer(NT_PRINTER_INFO_LEVEL
**pp_printer
, uint32 level
);
6507 uint32
add_a_printer_driver(NT_PRINTER_DRIVER_INFO_LEVEL driver
, uint32 level
);
6508 WERROR
get_a_printer_driver(NT_PRINTER_DRIVER_INFO_LEVEL
*driver
, uint32 level
,
6509 fstring drivername
, const char *architecture
, uint32 version
);
6510 uint32
free_a_printer_driver(NT_PRINTER_DRIVER_INFO_LEVEL driver
, uint32 level
);
6511 bool printer_driver_in_use ( NT_PRINTER_DRIVER_INFO_LEVEL_3
*info_3
);
6512 bool printer_driver_files_in_use ( NT_PRINTER_DRIVER_INFO_LEVEL_3
*info
);
6513 WERROR
delete_printer_driver( NT_PRINTER_DRIVER_INFO_LEVEL_3
*info_3
, struct current_user
*user
,
6514 uint32 version
, bool delete_files
);
6515 WERROR
nt_printing_setsec(const char *sharename
, SEC_DESC_BUF
*secdesc_ctr
);
6516 bool nt_printing_getsec(TALLOC_CTX
*ctx
, const char *sharename
, SEC_DESC_BUF
**secdesc_ctr
);
6517 void map_printer_permissions(SEC_DESC
*sd
);
6518 void map_job_permissions(SEC_DESC
*sd
);
6519 bool print_access_check(struct current_user
*user
, int snum
, int access_type
);
6520 bool print_time_access_check(const char *servicename
);
6521 char* get_server_name( Printer_entry
*printer
);
6523 /* The following definitions come from printing/pcap.c */
6525 bool pcap_cache_add_specific(struct pcap_cache
**ppcache
, const char *name
, const char *comment
);
6526 void pcap_cache_destroy_specific(struct pcap_cache
**pp_cache
);
6527 bool pcap_cache_add(const char *name
, const char *comment
);
6528 bool pcap_cache_loaded(void);
6529 void pcap_cache_replace(const struct pcap_cache
*pcache
);
6530 void pcap_cache_reload(void);
6531 bool pcap_printername_ok(const char *printername
);
6532 void pcap_printer_fn_specific(const struct pcap_cache
*pc
,
6533 void (*fn
)(const char *, const char *, void *),
6535 void pcap_printer_fn(void (*fn
)(const char *, const char *, void *), void *pdata
);
6537 /* The following definitions come from printing/print_aix.c */
6539 bool aix_cache_reload(void);
6541 /* The following definitions come from printing/print_cups.c */
6543 bool cups_cache_reload(void);
6544 bool cups_pull_comment_location(NT_PRINTER_INFO_LEVEL_2
*printer
);
6546 /* The following definitions come from printing/print_generic.c */
6549 /* The following definitions come from printing/print_iprint.c */
6551 bool iprint_cache_reload(void);
6553 /* The following definitions come from printing/print_svid.c */
6555 bool sysv_cache_reload(void);
6557 /* The following definitions come from printing/printfsp.c */
6559 NTSTATUS
print_fsp_open(connection_struct
*conn
, const char *fname
,
6560 files_struct
*fsp
, SMB_STRUCT_STAT
*psbuf
);
6561 void print_fsp_end(files_struct
*fsp
, enum file_close_type close_type
);
6563 /* The following definitions come from printing/printing.c */
6565 uint16
pjobid_to_rap(const char* sharename
, uint32 jobid
);
6566 bool rap_to_pjobid(uint16 rap_jobid
, fstring sharename
, uint32
*pjobid
);
6567 bool print_backend_init(struct messaging_context
*msg_ctx
);
6568 void printing_end(void);
6569 int unpack_pjob( uint8
*buf
, int buflen
, struct printjob
*pjob
);
6570 uint32
sysjob_to_jobid(int unix_jobid
);
6571 void pjob_delete(const char* sharename
, uint32 jobid
);
6572 void start_background_queue(void);
6573 bool print_notify_register_pid(int snum
);
6574 bool print_notify_deregister_pid(int snum
);
6575 bool print_job_exists(const char* sharename
, uint32 jobid
);
6576 int print_job_fd(const char* sharename
, uint32 jobid
);
6577 char *print_job_fname(const char* sharename
, uint32 jobid
);
6578 NT_DEVICEMODE
*print_job_devmode(const char* sharename
, uint32 jobid
);
6579 bool print_job_set_place(const char *sharename
, uint32 jobid
, int place
);
6580 bool print_job_set_name(const char *sharename
, uint32 jobid
, char *name
);
6581 bool print_job_delete(struct current_user
*user
, int snum
, uint32 jobid
, WERROR
*errcode
);
6582 bool print_job_pause(struct current_user
*user
, int snum
, uint32 jobid
, WERROR
*errcode
);
6583 bool print_job_resume(struct current_user
*user
, int snum
, uint32 jobid
, WERROR
*errcode
);
6584 ssize_t
print_job_write(int snum
, uint32 jobid
, const char *buf
, SMB_OFF_T pos
, size_t size
);
6585 int print_queue_length(int snum
, print_status_struct
*pstatus
);
6586 uint32
print_job_start(struct current_user
*user
, int snum
, char *jobname
, NT_DEVICEMODE
*nt_devmode
);
6587 void print_job_endpage(int snum
, uint32 jobid
);
6588 bool print_job_end(int snum
, uint32 jobid
, enum file_close_type close_type
);
6589 int print_queue_status(int snum
,
6590 print_queue_struct
**ppqueue
,
6591 print_status_struct
*status
);
6592 bool print_queue_pause(struct current_user
*user
, int snum
, WERROR
*errcode
);
6593 bool print_queue_resume(struct current_user
*user
, int snum
, WERROR
*errcode
);
6594 bool print_queue_purge(struct current_user
*user
, int snum
, WERROR
*errcode
);
6596 /* The following definitions come from printing/printing_db.c */
6598 struct tdb_print_db
*get_print_db_byname(const char *printername
);
6599 void release_print_db( struct tdb_print_db
*pdb
);
6600 void close_all_print_db(void);
6601 TDB_DATA
get_printer_notify_pid_list(TDB_CONTEXT
*tdb
, const char *printer_name
, bool cleanlist
);
6603 /* The following definitions come from profile/profile.c */
6605 void set_profile_level(int level
, struct server_id src
);
6606 bool profile_setup(struct messaging_context
*msg_ctx
, bool rdonly
);
6608 /* The following definitions come from registry/reg_api.c */
6610 WERROR
reg_openhive(TALLOC_CTX
*mem_ctx
, const char *hive
,
6611 uint32 desired_access
,
6612 const struct nt_user_token
*token
,
6613 struct registry_key
**pkey
);
6614 WERROR
reg_openkey(TALLOC_CTX
*mem_ctx
, struct registry_key
*parent
,
6615 const char *name
, uint32 desired_access
,
6616 struct registry_key
**pkey
);
6617 WERROR
reg_enumkey(TALLOC_CTX
*mem_ctx
, struct registry_key
*key
,
6618 uint32 idx
, char **name
, NTTIME
*last_write_time
);
6619 WERROR
reg_enumvalue(TALLOC_CTX
*mem_ctx
, struct registry_key
*key
,
6620 uint32 idx
, char **pname
, struct registry_value
**pval
);
6621 WERROR
reg_queryvalue(TALLOC_CTX
*mem_ctx
, struct registry_key
*key
,
6622 const char *name
, struct registry_value
**pval
);
6623 WERROR
reg_queryinfokey(struct registry_key
*key
, uint32_t *num_subkeys
,
6624 uint32_t *max_subkeylen
, uint32_t *max_subkeysize
,
6625 uint32_t *num_values
, uint32_t *max_valnamelen
,
6626 uint32_t *max_valbufsize
, uint32_t *secdescsize
,
6627 NTTIME
*last_changed_time
);
6628 WERROR
reg_createkey(TALLOC_CTX
*ctx
, struct registry_key
*parent
,
6629 const char *subkeypath
, uint32 desired_access
,
6630 struct registry_key
**pkey
,
6631 enum winreg_CreateAction
*paction
);
6632 WERROR
reg_deletekey(struct registry_key
*parent
, const char *path
);
6633 WERROR
reg_setvalue(struct registry_key
*key
, const char *name
,
6634 const struct registry_value
*val
);
6635 WERROR
reg_deletevalue(struct registry_key
*key
, const char *name
);
6636 WERROR
reg_getkeysecurity(TALLOC_CTX
*mem_ctx
, struct registry_key
*key
,
6637 struct security_descriptor
**psecdesc
);
6638 WERROR
reg_setkeysecurity(struct registry_key
*key
,
6639 struct security_descriptor
*psecdesc
);
6640 WERROR
reg_getversion(uint32_t *version
);
6641 WERROR
reg_restorekey(struct registry_key
*key
, const char *fname
);
6642 WERROR
reg_savekey(struct registry_key
*key
, const char *fname
);
6643 WERROR
reg_deleteallvalues(struct registry_key
*key
);
6644 WERROR
reg_open_path(TALLOC_CTX
*mem_ctx
, const char *orig_path
,
6645 uint32 desired_access
, const struct nt_user_token
*token
,
6646 struct registry_key
**pkey
);
6647 WERROR
reg_deletekey_recursive(TALLOC_CTX
*ctx
,
6648 struct registry_key
*parent
,
6650 WERROR
reg_deletesubkeys_recursive(TALLOC_CTX
*ctx
,
6651 struct registry_key
*parent
,
6653 WERROR
reg_create_path(TALLOC_CTX
*mem_ctx
, const char *orig_path
,
6654 uint32 desired_access
,
6655 const struct nt_user_token
*token
,
6656 enum winreg_CreateAction
*paction
,
6657 struct registry_key
**pkey
);
6658 WERROR
reg_delete_path(const struct nt_user_token
*token
,
6659 const char *orig_path
);
6661 /* The following definitions come from registry/reg_backend_current_version.c */
6664 /* The following definitions come from registry/reg_backend_db.c */
6666 WERROR
init_registry_key(const char *add_path
);
6667 WERROR
init_registry_data(void);
6668 WERROR
regdb_init(void);
6669 WERROR
regdb_open( void );
6670 int regdb_close( void );
6671 int regdb_get_seqnum(void);
6672 bool regdb_store_keys(const char *key
, REGSUBKEY_CTR
*ctr
);
6673 int regdb_fetch_keys(const char *key
, REGSUBKEY_CTR
*ctr
);
6674 int regdb_fetch_values( const char* key
, REGVAL_CTR
*values
);
6675 bool regdb_store_values( const char *key
, REGVAL_CTR
*values
);
6676 bool regdb_subkeys_need_update(REGSUBKEY_CTR
*subkeys
);
6677 bool regdb_values_need_update(REGVAL_CTR
*values
);
6679 /* The following definitions come from registry/reg_backend_hkpt_params.c */
6682 /* The following definitions come from registry/reg_backend_netlogon_params.c */
6685 /* The following definitions come from registry/reg_backend_perflib.c */
6688 /* The following definitions come from registry/reg_backend_printing.c */
6691 /* The following definitions come from registry/reg_backend_prod_options.c */
6694 /* The following definitions come from registry/reg_backend_shares.c */
6697 /* The following definitions come from registry/reg_backend_smbconf.c */
6700 /* The following definitions come from registry/reg_backend_tcpip_params.c */
6703 /* The following definitions come from registry/reg_cachehook.c */
6705 WERROR
reghook_cache_init(void);
6706 WERROR
reghook_cache_add(const char *keyname
, REGISTRY_OPS
*ops
);
6707 REGISTRY_OPS
*reghook_cache_find(const char *keyname
);
6708 void reghook_dump_cache( int debuglevel
);
6710 /* The following definitions come from registry/reg_dispatcher.c */
6712 bool store_reg_keys( REGISTRY_KEY
*key
, REGSUBKEY_CTR
*subkeys
);
6713 bool store_reg_values( REGISTRY_KEY
*key
, REGVAL_CTR
*val
);
6714 int fetch_reg_keys( REGISTRY_KEY
*key
, REGSUBKEY_CTR
*subkey_ctr
);
6715 int fetch_reg_values( REGISTRY_KEY
*key
, REGVAL_CTR
*val
);
6716 bool regkey_access_check( REGISTRY_KEY
*key
, uint32 requested
, uint32
*granted
,
6717 const struct nt_user_token
*token
);
6718 WERROR
regkey_get_secdesc(TALLOC_CTX
*mem_ctx
, REGISTRY_KEY
*key
,
6719 struct security_descriptor
**psecdesc
);
6720 WERROR
regkey_set_secdesc(REGISTRY_KEY
*key
,
6721 struct security_descriptor
*psecdesc
);
6722 bool reg_subkeys_need_update(REGISTRY_KEY
*key
, REGSUBKEY_CTR
*subkeys
);
6723 bool reg_values_need_update(REGISTRY_KEY
*key
, REGVAL_CTR
*values
);
6725 /* The following definitions come from registry/reg_eventlog.c */
6727 bool eventlog_init_keys(void);
6728 bool eventlog_add_source( const char *eventlog
, const char *sourcename
,
6729 const char *messagefile
);
6731 /* The following definitions come from registry/reg_init_basic.c */
6733 WERROR
registry_init_common(void);
6734 WERROR
registry_init_basic(void);
6736 /* The following definitions come from registry/reg_init_full.c */
6738 WERROR
registry_init_full(void);
6740 /* The following definitions come from registry/reg_init_smbconf.c */
6742 NTSTATUS
registry_create_admin_token(TALLOC_CTX
*mem_ctx
,
6743 NT_USER_TOKEN
**ptoken
);
6744 WERROR
registry_init_smbconf(const char *keyname
);
6746 /* The following definitions come from registry/reg_objects.c */
6748 WERROR
regsubkey_ctr_addkey( REGSUBKEY_CTR
*ctr
, const char *keyname
);
6749 int regsubkey_ctr_delkey( REGSUBKEY_CTR
*ctr
, const char *keyname
);
6750 bool regsubkey_ctr_key_exists( REGSUBKEY_CTR
*ctr
, const char *keyname
);
6751 int regsubkey_ctr_numkeys( REGSUBKEY_CTR
*ctr
);
6752 char* regsubkey_ctr_specific_key( REGSUBKEY_CTR
*ctr
, uint32 key_index
);
6753 int regval_ctr_numvals( REGVAL_CTR
*ctr
);
6754 REGISTRY_VALUE
* dup_registry_value( REGISTRY_VALUE
*val
);
6755 void free_registry_value( REGISTRY_VALUE
*val
);
6756 uint8
* regval_data_p( REGISTRY_VALUE
*val
);
6757 uint32
regval_size( REGISTRY_VALUE
*val
);
6758 char* regval_name( REGISTRY_VALUE
*val
);
6759 uint32
regval_type( REGISTRY_VALUE
*val
);
6760 REGISTRY_VALUE
* regval_ctr_specific_value( REGVAL_CTR
*ctr
, uint32 idx
);
6761 bool regval_ctr_key_exists( REGVAL_CTR
*ctr
, const char *value
);
6762 REGISTRY_VALUE
*regval_compose(TALLOC_CTX
*ctx
, const char *name
, uint16 type
,
6763 const char *data_p
, size_t size
);
6764 int regval_ctr_addvalue( REGVAL_CTR
*ctr
, const char *name
, uint16 type
,
6765 const char *data_p
, size_t size
);
6766 int regval_ctr_copyvalue( REGVAL_CTR
*ctr
, REGISTRY_VALUE
*val
);
6767 int regval_ctr_delvalue( REGVAL_CTR
*ctr
, const char *name
);
6768 REGISTRY_VALUE
* regval_ctr_getvalue( REGVAL_CTR
*ctr
, const char *name
);
6769 uint32
regval_dword( REGISTRY_VALUE
*val
);
6770 char *regval_sz(REGISTRY_VALUE
*val
);
6772 /* The following definitions come from registry/reg_perfcount.c */
6774 void perfcount_init_keys( void );
6775 uint32
reg_perfcount_get_base_index(void);
6776 uint32
reg_perfcount_get_last_counter(uint32 base_index
);
6777 uint32
reg_perfcount_get_last_help(uint32 last_counter
);
6778 uint32
reg_perfcount_get_counter_help(uint32 base_index
, char **retbuf
);
6779 uint32
reg_perfcount_get_counter_names(uint32 base_index
, char **retbuf
);
6780 bool _reg_perfcount_get_counter_data(TDB_DATA key
, TDB_DATA
*data
);
6781 bool _reg_perfcount_get_instance_info(PERF_INSTANCE_DEFINITION
*inst
,
6784 PERF_OBJECT_TYPE
*obj
,
6785 TDB_CONTEXT
*names
);
6786 bool _reg_perfcount_add_instance(PERF_OBJECT_TYPE
*obj
,
6789 TDB_CONTEXT
*names
);
6790 uint32
reg_perfcount_get_perf_data_block(uint32 base_index
,
6792 PERF_DATA_BLOCK
*block
,
6793 const char *object_ids
);
6794 WERROR
reg_perfcount_get_hkpd(prs_struct
*ps
, uint32 max_buf_size
, uint32
*outbuf_len
, const char *object_ids
);
6796 /* The following definitions come from registry/reg_util.c */
6798 bool reg_split_path(char *path
, char **base
, char **new_path
);
6799 bool reg_split_key(char *path
, char **base
, char **key
);
6800 char *normalize_reg_path(TALLOC_CTX
*ctx
, const char *keyname
);
6801 void normalize_dbkey(char *key
);
6802 char *reg_remaining_path(TALLOC_CTX
*ctx
, const char *key
);
6803 int regval_convert_multi_sz( uint16
*multi_string
, size_t byte_len
, char ***values
);
6804 size_t regval_build_multi_sz( char **values
, uint16
**buffer
);
6806 /* The following definitions come from registry/reg_util_legacy.c */
6808 WERROR
regkey_open_internal( TALLOC_CTX
*ctx
, REGISTRY_KEY
**regkey
,
6810 const struct nt_user_token
*token
,
6811 uint32 access_desired
);
6813 /* The following definitions come from registry/regfio.c */
6816 /* The following definitions come from rpc_client/cli_lsarpc.c */
6818 NTSTATUS
rpccli_lsa_open_policy(struct rpc_pipe_client
*cli
,
6819 TALLOC_CTX
*mem_ctx
,
6820 bool sec_qos
, uint32 des_access
,
6822 NTSTATUS
rpccli_lsa_open_policy2(struct rpc_pipe_client
*cli
,
6823 TALLOC_CTX
*mem_ctx
, bool sec_qos
,
6824 uint32 des_access
, POLICY_HND
*pol
);
6825 NTSTATUS
rpccli_lsa_lookup_sids(struct rpc_pipe_client
*cli
,
6826 TALLOC_CTX
*mem_ctx
,
6829 const DOM_SID
*sids
,
6832 enum lsa_SidType
**ptypes
);
6833 NTSTATUS
rpccli_lsa_lookup_names(struct rpc_pipe_client
*cli
,
6834 TALLOC_CTX
*mem_ctx
,
6835 POLICY_HND
*pol
, int num_names
,
6837 const char ***dom_names
,
6840 enum lsa_SidType
**types
);
6841 bool fetch_domain_sid( char *domain
, char *remote_machine
, DOM_SID
*psid
);
6843 /* The following definitions come from rpc_client/cli_netlogon.c */
6845 NTSTATUS
rpccli_netlogon_setup_creds(struct rpc_pipe_client
*cli
,
6846 const char *server_name
,
6848 const char *clnt_name
,
6849 const char *machine_account
,
6850 const unsigned char machine_pwd
[16],
6851 enum netr_SchannelType sec_chan_type
,
6852 uint32_t *neg_flags_inout
);
6853 NTSTATUS
rpccli_netlogon_sam_logon(struct rpc_pipe_client
*cli
,
6854 TALLOC_CTX
*mem_ctx
,
6855 uint32 logon_parameters
,
6857 const char *username
,
6858 const char *password
,
6859 const char *workstation
,
6861 NTSTATUS
rpccli_netlogon_sam_network_logon(struct rpc_pipe_client
*cli
,
6862 TALLOC_CTX
*mem_ctx
,
6863 uint32 logon_parameters
,
6865 const char *username
,
6867 const char *workstation
,
6868 const uint8 chal
[8],
6869 DATA_BLOB lm_response
,
6870 DATA_BLOB nt_response
,
6871 struct netr_SamInfo3
**info3
);
6872 NTSTATUS
rpccli_netlogon_sam_network_logon_ex(struct rpc_pipe_client
*cli
,
6873 TALLOC_CTX
*mem_ctx
,
6874 uint32 logon_parameters
,
6876 const char *username
,
6878 const char *workstation
,
6879 const uint8 chal
[8],
6880 DATA_BLOB lm_response
,
6881 DATA_BLOB nt_response
,
6882 struct netr_SamInfo3
**info3
);
6884 /* The following definitions come from rpc_client/cli_pipe.c */
6886 NTSTATUS
rpc_api_pipe_req(struct rpc_pipe_client
*cli
,
6888 prs_struct
*in_data
,
6889 prs_struct
*out_data
);
6890 struct rpc_pipe_client
*cli_rpc_pipe_open_noauth(struct cli_state
*cli
, int pipe_idx
, NTSTATUS
*perr
);
6891 struct rpc_pipe_client
*cli_rpc_pipe_open_ntlmssp(struct cli_state
*cli
,
6893 enum pipe_auth_level auth_level
,
6895 const char *username
,
6896 const char *password
,
6898 struct rpc_pipe_client
*cli_rpc_pipe_open_spnego_ntlmssp(struct cli_state
*cli
,
6900 enum pipe_auth_level auth_level
,
6902 const char *username
,
6903 const char *password
,
6905 struct rpc_pipe_client
*get_schannel_session_key(struct cli_state
*cli
,
6909 struct rpc_pipe_client
*cli_rpc_pipe_open_schannel_with_key(struct cli_state
*cli
,
6911 enum pipe_auth_level auth_level
,
6913 const struct dcinfo
*pdc
,
6915 struct rpc_pipe_client
*cli_rpc_pipe_open_ntlmssp_auth_schannel(struct cli_state
*cli
,
6917 enum pipe_auth_level auth_level
,
6919 const char *username
,
6920 const char *password
,
6922 struct rpc_pipe_client
*cli_rpc_pipe_open_schannel(struct cli_state
*cli
,
6924 enum pipe_auth_level auth_level
,
6927 struct rpc_pipe_client
*cli_rpc_pipe_open_krb5(struct cli_state
*cli
,
6929 enum pipe_auth_level auth_level
,
6930 const char *service_princ
,
6931 const char *username
,
6932 const char *password
,
6935 /* The following definitions come from rpc_client/cli_reg.c */
6937 NTSTATUS
rpccli_winreg_Connect(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
6938 uint32 reg_type
, uint32 access_mask
,
6939 POLICY_HND
*reg_hnd
);
6940 uint32
reg_init_regval_buffer( REGVAL_BUFFER
*buf2
, REGISTRY_VALUE
*val
);
6942 /* The following definitions come from rpc_client/cli_samr.c */
6944 NTSTATUS
rpccli_samr_chgpasswd_user(struct rpc_pipe_client
*cli
,
6945 TALLOC_CTX
*mem_ctx
,
6946 const char *username
,
6947 const char *newpassword
,
6948 const char *oldpassword
);
6949 NTSTATUS
rpccli_samr_chng_pswd_auth_crap(struct rpc_pipe_client
*cli
,
6950 TALLOC_CTX
*mem_ctx
,
6951 const char *username
,
6952 DATA_BLOB new_nt_password_blob
,
6953 DATA_BLOB old_nt_hash_enc_blob
,
6954 DATA_BLOB new_lm_password_blob
,
6955 DATA_BLOB old_lm_hash_enc_blob
);
6956 NTSTATUS
rpccli_samr_chgpasswd3(struct rpc_pipe_client
*cli
,
6957 TALLOC_CTX
*mem_ctx
,
6958 const char *username
,
6959 const char *newpassword
,
6960 const char *oldpassword
,
6961 struct samr_DomInfo1
**dominfo1
,
6962 struct samr_ChangeReject
**reject
);
6963 void get_query_dispinfo_params(int loop_count
, uint32
*max_entries
,
6965 NTSTATUS
rpccli_try_samr_connects(struct rpc_pipe_client
*cli
,
6966 TALLOC_CTX
*mem_ctx
,
6967 uint32_t access_mask
,
6968 POLICY_HND
*connect_pol
);
6970 /* The following definitions come from rpc_client/cli_spoolss.c */
6972 WERROR
rpccli_spoolss_open_printer_ex(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
6973 const char *printername
, const char *datatype
, uint32 access_required
,
6974 const char *station
, const char *username
, POLICY_HND
*pol
);
6975 WERROR
rpccli_spoolss_close_printer(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
6977 WERROR
rpccli_spoolss_enum_printers(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
6978 char *name
, uint32 flags
, uint32 level
,
6979 uint32
*num_printers
, PRINTER_INFO_CTR
*ctr
);
6980 WERROR
rpccli_spoolss_enum_ports(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
6981 uint32 level
, uint32
*num_ports
, PORT_INFO_CTR
*ctr
);
6982 WERROR
rpccli_spoolss_getprinter(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
6983 POLICY_HND
*pol
, uint32 level
,
6984 PRINTER_INFO_CTR
*ctr
);
6985 WERROR
rpccli_spoolss_setprinter(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
6986 POLICY_HND
*pol
, uint32 level
,
6987 PRINTER_INFO_CTR
*ctr
, uint32 command
);
6988 WERROR
rpccli_spoolss_getprinterdriver(struct rpc_pipe_client
*cli
,
6989 TALLOC_CTX
*mem_ctx
,
6990 POLICY_HND
*pol
, uint32 level
,
6991 const char *env
, int version
, PRINTER_DRIVER_CTR
*ctr
);
6992 WERROR
rpccli_spoolss_enumprinterdrivers (struct rpc_pipe_client
*cli
,
6993 TALLOC_CTX
*mem_ctx
,
6994 uint32 level
, const char *env
,
6995 uint32
*num_drivers
,
6996 PRINTER_DRIVER_CTR
*ctr
);
6997 WERROR
rpccli_spoolss_getprinterdriverdir (struct rpc_pipe_client
*cli
,
6998 TALLOC_CTX
*mem_ctx
,
6999 uint32 level
, char *env
,
7000 DRIVER_DIRECTORY_CTR
*ctr
);
7001 WERROR
rpccli_spoolss_addprinterdriver (struct rpc_pipe_client
*cli
,
7002 TALLOC_CTX
*mem_ctx
, uint32 level
,
7003 PRINTER_DRIVER_CTR
*ctr
);
7004 WERROR
rpccli_spoolss_addprinterex (struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7005 uint32 level
, PRINTER_INFO_CTR
*ctr
);
7006 WERROR
rpccli_spoolss_deleteprinterdriverex(struct rpc_pipe_client
*cli
,
7007 TALLOC_CTX
*mem_ctx
, const char *arch
,
7008 const char *driver
, int version
);
7009 WERROR
rpccli_spoolss_deleteprinterdriver (struct rpc_pipe_client
*cli
,
7010 TALLOC_CTX
*mem_ctx
, const char *arch
,
7011 const char *driver
);
7012 WERROR
rpccli_spoolss_getprintprocessordirectory(struct rpc_pipe_client
*cli
,
7013 TALLOC_CTX
*mem_ctx
,
7014 char *name
, char *environment
,
7016 WERROR
rpccli_spoolss_addform(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7017 POLICY_HND
*handle
, uint32 level
, FORM
*form
);
7018 WERROR
rpccli_spoolss_setform(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7019 POLICY_HND
*handle
, uint32 level
,
7020 const char *form_name
, FORM
*form
);
7021 WERROR
rpccli_spoolss_getform(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7022 POLICY_HND
*handle
, const char *formname
,
7023 uint32 level
, FORM_1
*form
);
7024 WERROR
rpccli_spoolss_deleteform(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7025 POLICY_HND
*handle
, const char *form_name
);
7026 WERROR
rpccli_spoolss_enumforms(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7027 POLICY_HND
*handle
, int level
, uint32
*num_forms
,
7029 WERROR
rpccli_spoolss_enumjobs(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7030 POLICY_HND
*hnd
, uint32 level
, uint32 firstjob
,
7031 uint32 num_jobs
, uint32
*returned
, JOB_INFO_CTR
*ctr
);
7032 WERROR
rpccli_spoolss_setjob(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7033 POLICY_HND
*hnd
, uint32 jobid
, uint32 level
,
7035 WERROR
rpccli_spoolss_getjob(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7036 POLICY_HND
*hnd
, uint32 jobid
, uint32 level
,
7038 WERROR
rpccli_spoolss_startpageprinter(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7040 WERROR
rpccli_spoolss_endpageprinter(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7042 WERROR
rpccli_spoolss_startdocprinter(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7043 POLICY_HND
*hnd
, char *docname
,
7044 char *outputfile
, char *datatype
,
7046 WERROR
rpccli_spoolss_enddocprinter(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7048 WERROR
rpccli_spoolss_getprinterdata(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7049 POLICY_HND
*hnd
, const char *valuename
,
7050 REGISTRY_VALUE
*value
);
7051 WERROR
rpccli_spoolss_getprinterdataex(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7052 POLICY_HND
*hnd
, const char *keyname
,
7053 const char *valuename
,
7054 REGISTRY_VALUE
*value
);
7055 WERROR
rpccli_spoolss_setprinterdata(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7056 POLICY_HND
*hnd
, REGISTRY_VALUE
*value
);
7057 WERROR
rpccli_spoolss_setprinterdataex(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7058 POLICY_HND
*hnd
, char *keyname
,
7059 REGISTRY_VALUE
*value
);
7060 WERROR
rpccli_spoolss_enumprinterdata(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7061 POLICY_HND
*hnd
, uint32 ndx
,
7062 uint32 value_offered
, uint32 data_offered
,
7063 uint32
*value_needed
, uint32
*data_needed
,
7064 REGISTRY_VALUE
*value
);
7065 WERROR
rpccli_spoolss_enumprinterdataex(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7066 POLICY_HND
*hnd
, const char *keyname
,
7068 WERROR
rpccli_spoolss_writeprinter(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7069 POLICY_HND
*hnd
, uint32 data_size
, char *data
,
7070 uint32
*num_written
);
7071 WERROR
rpccli_spoolss_deleteprinterdata(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7072 POLICY_HND
*hnd
, char *valuename
);
7073 WERROR
rpccli_spoolss_deleteprinterdataex(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7074 POLICY_HND
*hnd
, char *keyname
,
7076 WERROR
rpccli_spoolss_enumprinterkey(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7077 POLICY_HND
*hnd
, const char *keyname
,
7078 uint16
**keylist
, uint32
*len
);
7079 WERROR
rpccli_spoolss_deleteprinterkey(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7080 POLICY_HND
*hnd
, char *keyname
);
7082 /* The following definitions come from rpc_client/cli_spoolss_notify.c */
7084 WERROR
rpccli_spoolss_reply_open_printer(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7085 const char *printer
, uint32 printerlocal
, uint32 type
,
7086 POLICY_HND
*handle
);
7087 WERROR
rpccli_spoolss_reply_close_printer(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7088 POLICY_HND
*handle
);
7089 WERROR
rpccli_spoolss_routerreplyprinter(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7090 POLICY_HND
*pol
, uint32 condition
, uint32 change_id
);
7091 WERROR
rpccli_spoolss_rrpcn(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7092 POLICY_HND
*pol
, uint32 notify_data_len
,
7093 SPOOL_NOTIFY_INFO_DATA
*notify_data
,
7094 uint32 change_low
, uint32 change_high
);
7095 WERROR
rpccli_spoolss_rffpcnex(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7096 POLICY_HND
*pol
, uint32 flags
, uint32 options
,
7097 const char *localmachine
, uint32 printerlocal
,
7098 SPOOL_NOTIFY_OPTION
*option
);
7100 /* The following definitions come from rpc_client/cli_svcctl.c */
7102 const char* svc_status_string( uint32 state
);
7103 WERROR
rpccli_svcctl_enumerate_services( struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7104 POLICY_HND
*hSCM
, uint32 type
, uint32 state
,
7105 uint32
*returned
, ENUM_SERVICES_STATUS
**service_array
);
7106 WERROR
rpccli_svcctl_query_config(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
,
7107 POLICY_HND
*hService
, SERVICE_CONFIG
*config
);
7109 /* The following definitions come from rpc_client/init_lsa.c */
7111 void init_lsa_String(struct lsa_String
*name
, const char *s
);
7112 void init_lsa_StringLarge(struct lsa_StringLarge
*name
, const char *s
);
7113 void init_lsa_AsciiString(struct lsa_AsciiString
*name
, const char *s
);
7114 void init_lsa_AsciiStringLarge(struct lsa_AsciiStringLarge
*name
, const char *s
);
7115 void init_lsa_sec_qos(struct lsa_QosInfo
*r
,
7117 uint16_t impersonation_level
,
7118 uint8_t context_mode
,
7119 uint8_t effective_only
);
7120 void init_lsa_obj_attr(struct lsa_ObjectAttribute
*r
,
7123 const char *object_name
,
7124 uint32_t attributes
,
7125 struct security_descriptor
*sec_desc
,
7126 struct lsa_QosInfo
*sec_qos
);
7127 void init_lsa_translated_sid(struct lsa_TranslatedSid
*r
,
7128 enum lsa_SidType sid_type
,
7130 uint32_t sid_index
);
7131 void init_lsa_translated_name2(struct lsa_TranslatedName2
*r
,
7132 enum lsa_SidType sid_type
,
7137 /* The following definitions come from rpc_client/init_netlogon.c */
7139 void init_netr_SamBaseInfo(struct netr_SamBaseInfo
*r
,
7143 NTTIME last_password_change
,
7144 NTTIME allow_password_change
,
7145 NTTIME force_password_change
,
7146 const char *account_name
,
7147 const char *full_name
,
7148 const char *logon_script
,
7149 const char *profile_path
,
7150 const char *home_directory
,
7151 const char *home_drive
,
7152 uint16_t logon_count
,
7153 uint16_t bad_password_count
,
7155 uint32_t primary_gid
,
7156 struct samr_RidWithAttributeArray groups
,
7157 uint32_t user_flags
,
7158 struct netr_UserSessionKey key
,
7159 const char *logon_server
,
7161 struct dom_sid2
*domain_sid
,
7162 struct netr_LMSessionKey LMSessKey
,
7163 uint32_t acct_flags
);
7164 void init_netr_SamInfo3(struct netr_SamInfo3
*r
,
7168 NTTIME last_password_change
,
7169 NTTIME allow_password_change
,
7170 NTTIME force_password_change
,
7171 const char *account_name
,
7172 const char *full_name
,
7173 const char *logon_script
,
7174 const char *profile_path
,
7175 const char *home_directory
,
7176 const char *home_drive
,
7177 uint16_t logon_count
,
7178 uint16_t bad_password_count
,
7180 uint32_t primary_gid
,
7181 struct samr_RidWithAttributeArray groups
,
7182 uint32_t user_flags
,
7183 struct netr_UserSessionKey key
,
7184 const char *logon_server
,
7186 struct dom_sid2
*domain_sid
,
7187 struct netr_LMSessionKey LMSessKey
,
7188 uint32_t acct_flags
,
7190 struct netr_SidAttr
*sids
);
7191 void init_netr_IdentityInfo(struct netr_IdentityInfo
*r
,
7192 const char *domain_name
,
7193 uint32_t parameter_control
,
7194 uint32_t logon_id_low
,
7195 uint32_t logon_id_high
,
7196 const char *account_name
,
7197 const char *workstation
);
7198 void init_netr_NetworkInfo(struct netr_NetworkInfo
*r
,
7199 const char *domain_name
,
7200 uint32_t parameter_control
,
7201 uint32_t logon_id_low
,
7202 uint32_t logon_id_high
,
7203 const char *account_name
,
7204 const char *workstation
,
7205 uint8_t challenge
[8],
7206 struct netr_ChallengeResponse nt
,
7207 struct netr_ChallengeResponse lm
);
7208 void init_netr_PasswordInfo(struct netr_PasswordInfo
*r
,
7209 const char *domain_name
,
7210 uint32_t parameter_control
,
7211 uint32_t logon_id_low
,
7212 uint32_t logon_id_high
,
7213 const char *account_name
,
7214 const char *workstation
,
7215 struct samr_Password lmpassword
,
7216 struct samr_Password ntpassword
);
7218 /* The following definitions come from rpc_client/init_samr.c */
7220 void init_samr_DomInfo1(struct samr_DomInfo1
*r
,
7221 uint16_t min_password_length
,
7222 uint16_t password_history_length
,
7223 uint32_t password_properties
,
7224 int64_t max_password_age
,
7225 int64_t min_password_age
);
7226 void init_samr_DomInfo2(struct samr_DomInfo2
*r
,
7227 NTTIME force_logoff_time
,
7228 const char *comment
,
7229 const char *domain_name
,
7230 const char *primary
,
7231 uint64_t sequence_num
,
7233 enum samr_Role role
,
7236 uint32_t num_groups
,
7237 uint32_t num_aliases
);
7238 void init_samr_DomInfo3(struct samr_DomInfo3
*r
,
7239 NTTIME force_logoff_time
);
7240 void init_samr_DomInfo4(struct samr_DomInfo4
*r
,
7241 const char *comment
);
7242 void init_samr_DomInfo5(struct samr_DomInfo5
*r
,
7243 const char *domain_name
);
7244 void init_samr_DomInfo6(struct samr_DomInfo6
*r
,
7245 const char *primary
);
7246 void init_samr_DomInfo7(struct samr_DomInfo7
*r
,
7247 enum samr_Role role
);
7248 void init_samr_DomInfo8(struct samr_DomInfo8
*r
,
7249 uint64_t sequence_num
,
7250 NTTIME domain_create_time
);
7251 void init_samr_DomInfo9(struct samr_DomInfo9
*r
,
7253 void init_samr_DomInfo12(struct samr_DomInfo12
*r
,
7254 uint64_t lockout_duration
,
7255 uint64_t lockout_window
,
7256 uint16_t lockout_threshold
);
7257 void init_samr_group_info1(struct samr_GroupInfoAll
*r
,
7259 uint32_t attributes
,
7260 uint32_t num_members
,
7261 const char *description
);
7262 void init_samr_group_info2(struct lsa_String
*r
, const char *group_name
);
7263 void init_samr_group_info3(struct samr_GroupInfoAttributes
*r
,
7264 uint32_t attributes
);
7265 void init_samr_group_info4(struct lsa_String
*r
, const char *description
);
7266 void init_samr_group_info5(struct samr_GroupInfoAll
*r
,
7268 uint32_t attributes
,
7269 uint32_t num_members
,
7270 const char *description
);
7271 void init_samr_alias_info1(struct samr_AliasInfoAll
*r
,
7273 uint32_t num_members
,
7274 const char *description
);
7275 void init_samr_alias_info3(struct lsa_String
*r
,
7276 const char *description
);
7277 void init_samr_user_info7(struct samr_UserInfo7
*r
,
7278 const char *account_name
);
7279 void init_samr_user_info9(struct samr_UserInfo9
*r
,
7280 uint32_t primary_gid
);
7281 void init_samr_user_info16(struct samr_UserInfo16
*r
,
7282 uint32_t acct_flags
);
7283 void init_samr_user_info18(struct samr_UserInfo18
*r
,
7284 const uint8 lm_pwd
[16],
7285 const uint8 nt_pwd
[16]);
7286 void init_samr_user_info20(struct samr_UserInfo20
*r
,
7287 struct lsa_BinaryString
*parameters
);
7288 void init_samr_user_info21(struct samr_UserInfo21
*r
,
7291 NTTIME last_password_change
,
7293 NTTIME allow_password_change
,
7294 NTTIME force_password_change
,
7295 const char *account_name
,
7296 const char *full_name
,
7297 const char *home_directory
,
7298 const char *home_drive
,
7299 const char *logon_script
,
7300 const char *profile_path
,
7301 const char *description
,
7302 const char *workstations
,
7303 const char *comment
,
7304 struct lsa_BinaryString
*parameters
,
7306 uint32_t primary_gid
,
7307 uint32_t acct_flags
,
7308 uint32_t fields_present
,
7309 struct samr_LogonHours logon_hours
,
7310 uint16_t bad_password_count
,
7311 uint16_t logon_count
,
7312 uint16_t country_code
,
7314 uint8_t nt_password_set
,
7315 uint8_t lm_password_set
,
7316 uint8_t password_expired
);
7317 void init_samr_user_info23(struct samr_UserInfo23
*r
,
7320 NTTIME last_password_change
,
7322 NTTIME allow_password_change
,
7323 NTTIME force_password_change
,
7324 const char *account_name
,
7325 const char *full_name
,
7326 const char *home_directory
,
7327 const char *home_drive
,
7328 const char *logon_script
,
7329 const char *profile_path
,
7330 const char *description
,
7331 const char *workstations
,
7332 const char *comment
,
7333 struct lsa_BinaryString
*parameters
,
7335 uint32_t primary_gid
,
7336 uint32_t acct_flags
,
7337 uint32_t fields_present
,
7338 struct samr_LogonHours logon_hours
,
7339 uint16_t bad_password_count
,
7340 uint16_t logon_count
,
7341 uint16_t country_code
,
7343 uint8_t nt_password_set
,
7344 uint8_t lm_password_set
,
7345 uint8_t password_expired
,
7346 struct samr_CryptPassword
*pwd_buf
);
7347 void init_samr_user_info24(struct samr_UserInfo24
*r
,
7348 struct samr_CryptPassword
*pwd_buf
,
7349 uint8_t password_expired
);
7350 void init_samr_user_info25(struct samr_UserInfo25
*r
,
7353 NTTIME last_password_change
,
7355 NTTIME allow_password_change
,
7356 NTTIME force_password_change
,
7357 const char *account_name
,
7358 const char *full_name
,
7359 const char *home_directory
,
7360 const char *home_drive
,
7361 const char *logon_script
,
7362 const char *profile_path
,
7363 const char *description
,
7364 const char *workstations
,
7365 const char *comment
,
7366 struct lsa_BinaryString
*parameters
,
7368 uint32_t primary_gid
,
7369 uint32_t acct_flags
,
7370 uint32_t fields_present
,
7371 struct samr_LogonHours logon_hours
,
7372 uint16_t bad_password_count
,
7373 uint16_t logon_count
,
7374 uint16_t country_code
,
7376 uint8_t nt_password_set
,
7377 uint8_t lm_password_set
,
7378 uint8_t password_expired
,
7379 struct samr_CryptPasswordEx
*pwd_buf
);
7380 void init_samr_user_info26(struct samr_UserInfo26
*r
,
7381 struct samr_CryptPasswordEx
*pwd_buf
,
7382 uint8_t password_expired
);
7383 void init_samr_CryptPasswordEx(const char *pwd
,
7384 DATA_BLOB
*session_key
,
7385 struct samr_CryptPasswordEx
*pwd_buf
);
7386 void init_samr_CryptPassword(const char *pwd
,
7387 DATA_BLOB
*session_key
,
7388 struct samr_CryptPassword
*pwd_buf
);
7390 /* The following definitions come from rpc_client/init_srvsvc.c */
7392 void init_srvsvc_NetSrvInfo102(struct srvsvc_NetSrvInfo102
*r
,
7393 enum srvsvc_PlatformId platform_id
,
7394 const char *server_name
,
7395 uint32_t version_major
,
7396 uint32_t version_minor
,
7397 uint32_t server_type
,
7398 const char *comment
,
7405 const char *userpath
);
7406 void init_srvsvc_NetSrvInfo101(struct srvsvc_NetSrvInfo101
*r
,
7407 enum srvsvc_PlatformId platform_id
,
7408 const char *server_name
,
7409 uint32_t version_major
,
7410 uint32_t version_minor
,
7411 uint32_t server_type
,
7412 const char *comment
);
7413 void init_srvsvc_NetSrvInfo100(struct srvsvc_NetSrvInfo100
*r
,
7414 enum srvsvc_PlatformId platform_id
,
7415 const char *server_name
);
7416 void init_srvsvc_NetShareInfo0(struct srvsvc_NetShareInfo0
*r
,
7418 void init_srvsvc_NetShareInfo1(struct srvsvc_NetShareInfo1
*r
,
7420 enum srvsvc_ShareType type
,
7421 const char *comment
);
7422 void init_srvsvc_NetShareInfo2(struct srvsvc_NetShareInfo2
*r
,
7424 enum srvsvc_ShareType type
,
7425 const char *comment
,
7426 uint32_t permissions
,
7428 uint32_t current_users
,
7430 const char *password
);
7431 void init_srvsvc_NetShareInfo501(struct srvsvc_NetShareInfo501
*r
,
7433 enum srvsvc_ShareType type
,
7434 const char *comment
,
7435 uint32_t csc_policy
);
7436 void init_srvsvc_NetShareInfo502(struct srvsvc_NetShareInfo502
*r
,
7438 enum srvsvc_ShareType type
,
7439 const char *comment
,
7440 uint32_t permissions
,
7442 uint32_t current_users
,
7444 const char *password
,
7445 struct sec_desc_buf
*sd_buf
);
7446 void init_srvsvc_NetShareInfo1004(struct srvsvc_NetShareInfo1004
*r
,
7447 const char *comment
);
7448 void init_srvsvc_NetShareInfo1005(struct srvsvc_NetShareInfo1005
*r
,
7449 uint32_t dfs_flags
);
7450 void init_srvsvc_NetShareInfo1006(struct srvsvc_NetShareInfo1006
*r
,
7451 uint32_t max_users
);
7452 void init_srvsvc_NetShareInfo1007(struct srvsvc_NetShareInfo1007
*r
,
7454 const char *alternate_directory_name
);
7455 void init_srvsvc_NetRemoteTODInfo(struct srvsvc_NetRemoteTODInfo
*r
,
7468 void init_srvsvc_NetSessInfo0(struct srvsvc_NetSessInfo0
*r
,
7469 const char *client
);
7470 void init_srvsvc_NetSessInfo1(struct srvsvc_NetSessInfo1
*r
,
7476 uint32_t user_flags
);
7477 void init_srvsvc_NetSessInfo2(struct srvsvc_NetSessInfo2
*r
,
7483 uint32_t user_flags
,
7484 const char *client_type
);
7485 void init_srvsvc_NetSessInfo10(struct srvsvc_NetSessInfo10
*r
,
7489 uint32_t idle_time
);
7490 void init_srvsvc_NetSessInfo502(struct srvsvc_NetSessInfo502
*r
,
7496 uint32_t user_flags
,
7497 const char *client_type
,
7498 const char *transport
);
7499 void init_srvsvc_NetFileInfo2(struct srvsvc_NetFileInfo2
*r
,
7501 void init_srvsvc_NetFileInfo3(struct srvsvc_NetFileInfo3
*r
,
7503 uint32_t permissions
,
7507 void init_srvsvc_NetConnInfo0(struct srvsvc_NetConnInfo0
*r
,
7509 void init_srvsvc_NetConnInfo1(struct srvsvc_NetConnInfo1
*r
,
7518 /* The following definitions come from rpc_client/ndr.c */
7520 NTSTATUS
cli_do_rpc_ndr(struct rpc_pipe_client
*cli
,
7521 TALLOC_CTX
*mem_ctx
, int p_idx
,
7522 const struct ndr_interface_table
*table
,
7523 uint32 opnum
, void *r
);
7525 /* The following definitions come from rpc_parse/parse_buffer.c */
7527 void rpcbuf_init(RPC_BUFFER
*buffer
, uint32 size
, TALLOC_CTX
*ctx
);
7528 bool prs_rpcbuffer(const char *desc
, prs_struct
*ps
, int depth
, RPC_BUFFER
*buffer
);
7529 bool prs_rpcbuffer_p(const char *desc
, prs_struct
*ps
, int depth
, RPC_BUFFER
**buffer
);
7530 bool rpcbuf_alloc_size(RPC_BUFFER
*buffer
, uint32 buffer_size
);
7531 void rpcbuf_move(RPC_BUFFER
*src
, RPC_BUFFER
**dest
);
7532 uint32
rpcbuf_get_size(RPC_BUFFER
*buffer
);
7533 bool smb_io_relstr(const char *desc
, RPC_BUFFER
*buffer
, int depth
, UNISTR
*string
);
7534 bool smb_io_relarraystr(const char *desc
, RPC_BUFFER
*buffer
, int depth
, uint16
**string
);
7535 bool smb_io_relsecdesc(const char *desc
, RPC_BUFFER
*buffer
, int depth
, SEC_DESC
**secdesc
);
7536 uint32
size_of_relative_string(UNISTR
*string
);
7538 /* The following definitions come from rpc_parse/parse_eventlog.c */
7540 bool eventlog_io_q_read_eventlog(const char *desc
, EVENTLOG_Q_READ_EVENTLOG
*q_u
,
7541 prs_struct
*ps
, int depth
);
7542 bool eventlog_io_r_read_eventlog(const char *desc
,
7543 EVENTLOG_Q_READ_EVENTLOG
*q_u
,
7544 EVENTLOG_R_READ_EVENTLOG
*r_u
,
7548 /* The following definitions come from rpc_parse/parse_misc.c */
7550 bool smb_io_time(const char *desc
, NTTIME
*nttime
, prs_struct
*ps
, int depth
);
7551 bool smb_io_nttime(const char *desc
, prs_struct
*ps
, int depth
, NTTIME
*nttime
);
7552 uint32
get_enum_hnd(ENUM_HND
*enh
);
7553 void init_enum_hnd(ENUM_HND
*enh
, uint32 hnd
);
7554 bool smb_io_enum_hnd(const char *desc
, ENUM_HND
*hnd
, prs_struct
*ps
, int depth
);
7555 bool smb_io_dom_sid(const char *desc
, DOM_SID
*sid
, prs_struct
*ps
, int depth
);
7556 void init_dom_sid2(DOM_SID2
*sid2
, const DOM_SID
*sid
);
7557 bool smb_io_dom_sid2_p(const char *desc
, prs_struct
*ps
, int depth
, DOM_SID2
**sid2
);
7558 bool smb_io_dom_sid2(const char *desc
, DOM_SID2
*sid
, prs_struct
*ps
, int depth
);
7559 bool smb_io_uuid(const char *desc
, struct GUID
*uuid
,
7560 prs_struct
*ps
, int depth
);
7561 void init_str_hdr(STRHDR
*hdr
, int max_len
, int len
, uint32 buffer
);
7562 bool smb_io_strhdr(const char *desc
, STRHDR
*hdr
, prs_struct
*ps
, int depth
);
7563 void init_uni_hdr(UNIHDR
*hdr
, UNISTR2
*str2
);
7564 bool smb_io_unihdr(const char *desc
, UNIHDR
*hdr
, prs_struct
*ps
, int depth
);
7565 void init_buf_hdr(BUFHDR
*hdr
, int max_len
, int len
);
7566 bool smb_io_hdrbuf_pre(const char *desc
, BUFHDR
*hdr
, prs_struct
*ps
, int depth
, uint32
*offset
);
7567 bool smb_io_hdrbuf_post(const char *desc
, BUFHDR
*hdr
, prs_struct
*ps
, int depth
,
7568 uint32 ptr_hdrbuf
, uint32 max_len
, uint32 len
);
7569 bool smb_io_hdrbuf(const char *desc
, BUFHDR
*hdr
, prs_struct
*ps
, int depth
);
7570 void init_unistr(UNISTR
*str
, const char *buf
);
7571 bool smb_io_unistr(const char *desc
, UNISTR
*uni
, prs_struct
*ps
, int depth
);
7572 void init_rpc_blob_uint32(RPC_DATA_BLOB
*str
, uint32 val
);
7573 void init_rpc_blob_str(RPC_DATA_BLOB
*str
, const char *buf
, int len
);
7574 void init_rpc_blob_hex(RPC_DATA_BLOB
*str
, const char *buf
);
7575 void init_rpc_blob_bytes(RPC_DATA_BLOB
*str
, uint8
*buf
, size_t len
);
7576 bool smb_io_buffer5(const char *desc
, BUFFER5
*buf5
, prs_struct
*ps
, int depth
);
7577 void init_regval_buffer(REGVAL_BUFFER
*str
, const uint8
*buf
, size_t len
);
7578 bool smb_io_regval_buffer(const char *desc
, prs_struct
*ps
, int depth
, REGVAL_BUFFER
*buf2
);
7579 void init_buf_unistr2(UNISTR2
*str
, uint32
*ptr
, const char *buf
);
7580 void copy_unistr2(UNISTR2
*str
, const UNISTR2
*from
);
7581 void init_string2(STRING2
*str
, const char *buf
, size_t max_len
, size_t str_len
);
7582 bool smb_io_string2(const char *desc
, STRING2
*str2
, uint32 buffer
, prs_struct
*ps
, int depth
);
7583 void init_unistr2(UNISTR2
*str
, const char *buf
, enum unistr2_term_codes flags
);
7584 void init_unistr4(UNISTR4
*uni4
, const char *buf
, enum unistr2_term_codes flags
);
7585 void init_unistr4_w( TALLOC_CTX
*ctx
, UNISTR4
*uni4
, const smb_ucs2_t
*buf
);
7586 void init_unistr2_w(TALLOC_CTX
*ctx
, UNISTR2
*str
, const smb_ucs2_t
*buf
);
7587 void init_unistr2_from_unistr(TALLOC_CTX
*ctx
, UNISTR2
*to
, const UNISTR
*from
);
7588 void init_unistr2_from_datablob(UNISTR2
*str
, DATA_BLOB
*blob
) ;
7589 bool prs_io_unistr2_p(const char *desc
, prs_struct
*ps
, int depth
, UNISTR2
**uni2
);
7590 bool prs_io_unistr2(const char *desc
, prs_struct
*ps
, int depth
, UNISTR2
*uni2
);
7591 bool smb_io_unistr2(const char *desc
, UNISTR2
*uni2
, uint32 buffer
, prs_struct
*ps
, int depth
);
7592 bool prs_unistr4(const char *desc
, prs_struct
*ps
, int depth
, UNISTR4
*uni4
);
7593 bool prs_unistr4_hdr(const char *desc
, prs_struct
*ps
, int depth
, UNISTR4
*uni4
);
7594 bool prs_unistr4_str(const char *desc
, prs_struct
*ps
, int depth
, UNISTR4
*uni4
);
7595 bool prs_unistr4_array(const char *desc
, prs_struct
*ps
, int depth
, UNISTR4_ARRAY
*array
);
7596 bool init_unistr4_array( UNISTR4_ARRAY
*array
, uint32 count
, const char **strings
);
7597 void init_dom_rid(DOM_RID
*prid
, uint32 rid
, uint16 type
, uint32 idx
);
7598 bool smb_io_dom_rid(const char *desc
, DOM_RID
*rid
, prs_struct
*ps
, int depth
);
7599 bool smb_io_dom_rid2(const char *desc
, DOM_RID2
*rid
, prs_struct
*ps
, int depth
);
7600 void init_dom_rid3(DOM_RID3
*rid3
, uint32 rid
, uint8 type
);
7601 bool smb_io_dom_rid3(const char *desc
, DOM_RID3
*rid3
, prs_struct
*ps
, int depth
);
7602 void init_dom_rid4(DOM_RID4
*rid4
, uint16 unknown
, uint16 attr
, uint32 rid
);
7603 void init_clnt_srv(DOM_CLNT_SRV
*logcln
, const char *logon_srv
,
7604 const char *comp_name
);
7605 bool smb_io_clnt_srv(const char *desc
, DOM_CLNT_SRV
*logcln
, prs_struct
*ps
, int depth
);
7606 void init_log_info(DOM_LOG_INFO
*loginfo
, const char *logon_srv
, const char *acct_name
,
7607 uint16 sec_chan
, const char *comp_name
);
7608 bool smb_io_log_info(const char *desc
, DOM_LOG_INFO
*loginfo
, prs_struct
*ps
, int depth
);
7609 bool smb_io_chal(const char *desc
, DOM_CHAL
*chal
, prs_struct
*ps
, int depth
);
7610 bool smb_io_cred(const char *desc
, DOM_CRED
*cred
, prs_struct
*ps
, int depth
);
7611 void init_clnt_info2(DOM_CLNT_INFO2
*clnt
,
7612 const char *logon_srv
, const char *comp_name
,
7613 const DOM_CRED
*clnt_cred
);
7614 bool smb_io_clnt_info2(const char *desc
, DOM_CLNT_INFO2
*clnt
, prs_struct
*ps
, int depth
);
7615 void init_clnt_info(DOM_CLNT_INFO
*clnt
,
7616 const char *logon_srv
, const char *acct_name
,
7617 uint16 sec_chan
, const char *comp_name
,
7618 const DOM_CRED
*cred
);
7619 bool smb_io_clnt_info(const char *desc
, DOM_CLNT_INFO
*clnt
, prs_struct
*ps
, int depth
);
7620 void init_logon_id(DOM_LOGON_ID
*logonid
, uint32 log_id_low
, uint32 log_id_high
);
7621 bool smb_io_logon_id(const char *desc
, DOM_LOGON_ID
*logonid
, prs_struct
*ps
, int depth
);
7622 void init_owf_info(OWF_INFO
*hash
, const uint8 data
[16]);
7623 bool smb_io_owf_info(const char *desc
, OWF_INFO
*hash
, prs_struct
*ps
, int depth
);
7624 bool smb_io_gid(const char *desc
, DOM_GID
*gid
, prs_struct
*ps
, int depth
);
7625 bool smb_io_pol_hnd(const char *desc
, POLICY_HND
*pol
, prs_struct
*ps
, int depth
);
7626 void init_unistr3(UNISTR3
*str
, const char *buf
);
7627 bool smb_io_unistr3(const char *desc
, UNISTR3
*name
, prs_struct
*ps
, int depth
);
7628 bool prs_uint64(const char *name
, prs_struct
*ps
, int depth
, uint64
*data64
);
7629 bool smb_io_bufhdr2(const char *desc
, BUFHDR2
*hdr
, prs_struct
*ps
, int depth
);
7630 bool smb_io_bufhdr4(const char *desc
, BUFHDR4
*hdr
, prs_struct
*ps
, int depth
);
7631 bool smb_io_rpc_blob(const char *desc
, RPC_DATA_BLOB
*blob
, prs_struct
*ps
, int depth
);
7632 bool make_uni_hdr(UNIHDR
*hdr
, int len
);
7633 bool make_bufhdr2(BUFHDR2
*hdr
, uint32 info_level
, uint32 length
, uint32 buffer
);
7634 uint32
str_len_uni(UNISTR
*source
);
7635 bool policy_handle_is_valid(const POLICY_HND
*hnd
);
7637 /* The following definitions come from rpc_parse/parse_ntsvcs.c */
7639 bool ntsvcs_io_q_get_device_list(const char *desc
, NTSVCS_Q_GET_DEVICE_LIST
*q_u
, prs_struct
*ps
, int depth
);
7640 bool ntsvcs_io_r_get_device_list(const char *desc
, NTSVCS_R_GET_DEVICE_LIST
*r_u
, prs_struct
*ps
, int depth
);
7641 bool ntsvcs_io_q_get_device_reg_property(const char *desc
, NTSVCS_Q_GET_DEVICE_REG_PROPERTY
*q_u
, prs_struct
*ps
, int depth
);
7642 bool ntsvcs_io_r_get_device_reg_property(const char *desc
, NTSVCS_R_GET_DEVICE_REG_PROPERTY
*r_u
, prs_struct
*ps
, int depth
);
7644 /* The following definitions come from rpc_parse/parse_prs.c */
7646 void prs_dump(const char *name
, int v
, prs_struct
*ps
);
7647 void prs_dump_before(const char *name
, int v
, prs_struct
*ps
);
7648 void prs_dump_region(const char *name
, int v
, prs_struct
*ps
,
7649 int from_off
, int to_off
);
7650 void prs_debug(prs_struct
*ps
, int depth
, const char *desc
, const char *fn_name
);
7651 bool prs_init(prs_struct
*ps
, uint32 size
, TALLOC_CTX
*ctx
, bool io
);
7652 void prs_mem_free(prs_struct
*ps
);
7653 void prs_mem_clear(prs_struct
*ps
);
7654 char *prs_alloc_mem_(prs_struct
*ps
, size_t size
, unsigned int count
);
7655 char *prs_alloc_mem(prs_struct
*ps
, size_t size
, unsigned int count
);
7656 TALLOC_CTX
*prs_get_mem_context(prs_struct
*ps
);
7657 void prs_give_memory(prs_struct
*ps
, char *buf
, uint32 size
, bool is_dynamic
);
7658 char *prs_take_memory(prs_struct
*ps
, uint32
*psize
);
7659 bool prs_set_buffer_size(prs_struct
*ps
, uint32 newsize
);
7660 bool prs_grow(prs_struct
*ps
, uint32 extra_space
);
7661 bool prs_force_grow(prs_struct
*ps
, uint32 extra_space
);
7662 char *prs_data_p(prs_struct
*ps
);
7663 uint32
prs_data_size(prs_struct
*ps
);
7664 uint32
prs_offset(prs_struct
*ps
);
7665 bool prs_set_offset(prs_struct
*ps
, uint32 offset
);
7666 bool prs_append_prs_data(prs_struct
*dst
, prs_struct
*src
);
7667 bool prs_append_some_prs_data(prs_struct
*dst
, prs_struct
*src
, int32 start
, uint32 len
);
7668 bool prs_copy_data_in(prs_struct
*dst
, const char *src
, uint32 len
);
7669 bool prs_copy_data_out(char *dst
, prs_struct
*src
, uint32 len
);
7670 bool prs_copy_all_data_out(char *dst
, prs_struct
*src
);
7671 void prs_set_endian_data(prs_struct
*ps
, bool endian
);
7672 bool prs_align(prs_struct
*ps
);
7673 bool prs_align_uint16(prs_struct
*ps
);
7674 bool prs_align_uint64(prs_struct
*ps
);
7675 bool prs_align_custom(prs_struct
*ps
, uint8 boundary
);
7676 bool prs_align_needed(prs_struct
*ps
, uint32 needed
);
7677 char *prs_mem_get(prs_struct
*ps
, uint32 extra_size
);
7678 void prs_switch_type(prs_struct
*ps
, bool io
);
7679 void prs_force_dynamic(prs_struct
*ps
);
7680 void prs_set_session_key(prs_struct
*ps
, const char sess_key
[16]);
7681 bool prs_uint8(const char *name
, prs_struct
*ps
, int depth
, uint8
*data8
);
7682 bool prs_pointer( const char *name
, prs_struct
*ps
, int depth
,
7683 void *dta
, size_t data_size
,
7684 bool (*prs_fn
)(const char*, prs_struct
*, int, void*) );
7685 bool prs_uint16(const char *name
, prs_struct
*ps
, int depth
, uint16
*data16
);
7686 bool prs_uint32(const char *name
, prs_struct
*ps
, int depth
, uint32
*data32
);
7687 bool prs_int32(const char *name
, prs_struct
*ps
, int depth
, int32
*data32
);
7688 bool prs_ntstatus(const char *name
, prs_struct
*ps
, int depth
, NTSTATUS
*status
);
7689 bool prs_dcerpc_status(const char *name
, prs_struct
*ps
, int depth
, NTSTATUS
*status
);
7690 bool prs_werror(const char *name
, prs_struct
*ps
, int depth
, WERROR
*status
);
7691 bool prs_uint8s(bool charmode
, const char *name
, prs_struct
*ps
, int depth
, uint8
*data8s
, int len
);
7692 bool prs_uint16s(bool charmode
, const char *name
, prs_struct
*ps
, int depth
, uint16
*data16s
, int len
);
7693 bool prs_uint16uni(bool charmode
, const char *name
, prs_struct
*ps
, int depth
, uint16
*data16s
, int len
);
7694 bool prs_uint32s(bool charmode
, const char *name
, prs_struct
*ps
, int depth
, uint32
*data32s
, int len
);
7695 bool prs_buffer5(bool charmode
, const char *name
, prs_struct
*ps
, int depth
, BUFFER5
*str
);
7696 bool prs_regval_buffer(bool charmode
, const char *name
, prs_struct
*ps
, int depth
, REGVAL_BUFFER
*buf
);
7697 bool prs_string2(bool charmode
, const char *name
, prs_struct
*ps
, int depth
, STRING2
*str
);
7698 bool prs_unistr2(bool charmode
, const char *name
, prs_struct
*ps
, int depth
, UNISTR2
*str
);
7699 bool prs_unistr3(bool charmode
, const char *name
, UNISTR3
*str
, prs_struct
*ps
, int depth
);
7700 bool prs_unistr(const char *name
, prs_struct
*ps
, int depth
, UNISTR
*str
);
7701 bool prs_string(const char *name
, prs_struct
*ps
, int depth
, char *str
, int max_buf_size
);
7702 bool prs_string_alloc(const char *name
, prs_struct
*ps
, int depth
, const char **str
);
7703 bool prs_uint16_pre(const char *name
, prs_struct
*ps
, int depth
, uint16
*data16
, uint32
*offset
);
7704 bool prs_uint16_post(const char *name
, prs_struct
*ps
, int depth
, uint16
*data16
,
7705 uint32 ptr_uint16
, uint32 start_offset
);
7706 bool prs_uint32_pre(const char *name
, prs_struct
*ps
, int depth
, uint32
*data32
, uint32
*offset
);
7707 bool prs_uint32_post(const char *name
, prs_struct
*ps
, int depth
, uint32
*data32
,
7708 uint32 ptr_uint32
, uint32 data_size
);
7709 int tdb_prs_store(TDB_CONTEXT
*tdb
, TDB_DATA kbuf
, prs_struct
*ps
);
7710 int tdb_prs_fetch(TDB_CONTEXT
*tdb
, TDB_DATA kbuf
, prs_struct
*ps
, TALLOC_CTX
*mem_ctx
);
7711 bool prs_hash1(prs_struct
*ps
, uint32 offset
, int len
);
7712 void schannel_encode(struct schannel_auth_struct
*a
, enum pipe_auth_level auth_level
,
7713 enum schannel_direction direction
,
7714 RPC_AUTH_SCHANNEL_CHK
* verf
,
7715 char *data
, size_t data_len
);
7716 bool schannel_decode(struct schannel_auth_struct
*a
, enum pipe_auth_level auth_level
,
7717 enum schannel_direction direction
,
7718 RPC_AUTH_SCHANNEL_CHK
* verf
, char *data
, size_t data_len
);
7719 bool prs_init_data_blob(prs_struct
*prs
, DATA_BLOB
*blob
, TALLOC_CTX
*mem_ctx
);
7720 bool prs_data_blob(prs_struct
*prs
, DATA_BLOB
*blob
, TALLOC_CTX
*mem_ctx
);
7722 /* The following definitions come from rpc_parse/parse_rpc.c */
7724 const char *cli_get_pipe_name(int pipe_idx
);
7725 void init_rpc_hdr(RPC_HDR
*hdr
, enum RPC_PKT_TYPE pkt_type
, uint8 flags
,
7726 uint32 call_id
, int data_len
, int auth_len
);
7727 bool smb_io_rpc_hdr(const char *desc
, RPC_HDR
*rpc
, prs_struct
*ps
, int depth
);
7728 void init_rpc_context(RPC_CONTEXT
*rpc_ctx
, uint16 context_id
, RPC_IFACE
*abstract
, RPC_IFACE
*transfer
);
7729 void init_rpc_hdr_rb(RPC_HDR_RB
*rpc
,
7730 uint16 max_tsize
, uint16 max_rsize
, uint32 assoc_gid
,
7731 RPC_CONTEXT
*context
);
7732 bool smb_io_rpc_context(const char *desc
, RPC_CONTEXT
*rpc_ctx
, prs_struct
*ps
, int depth
);
7733 bool smb_io_rpc_hdr_rb(const char *desc
, RPC_HDR_RB
*rpc
, prs_struct
*ps
, int depth
);
7734 void init_rpc_hdr_ba(RPC_HDR_BA
*rpc
,
7735 uint16 max_tsize
, uint16 max_rsize
, uint32 assoc_gid
,
7736 const char *pipe_addr
,
7737 uint8 num_results
, uint16 result
, uint16 reason
,
7738 RPC_IFACE
*transfer
);
7739 bool smb_io_rpc_hdr_ba(const char *desc
, RPC_HDR_BA
*rpc
, prs_struct
*ps
, int depth
);
7740 void init_rpc_hdr_req(RPC_HDR_REQ
*hdr
, uint32 alloc_hint
, uint16 opnum
);
7741 bool smb_io_rpc_hdr_req(const char *desc
, RPC_HDR_REQ
*rpc
, prs_struct
*ps
, int depth
);
7742 bool smb_io_rpc_hdr_resp(const char *desc
, RPC_HDR_RESP
*rpc
, prs_struct
*ps
, int depth
);
7743 bool smb_io_rpc_hdr_fault(const char *desc
, RPC_HDR_FAULT
*rpc
, prs_struct
*ps
, int depth
);
7744 void init_rpc_hdr_auth(RPC_HDR_AUTH
*rai
,
7745 uint8 auth_type
, uint8 auth_level
,
7747 uint32 auth_context_id
);
7748 bool smb_io_rpc_hdr_auth(const char *desc
, RPC_HDR_AUTH
*rai
, prs_struct
*ps
, int depth
);
7749 bool rpc_auth_verifier_chk(RPC_AUTH_VERIFIER
*rav
,
7750 const char *signature
, uint32 msg_type
);
7751 void init_rpc_auth_verifier(RPC_AUTH_VERIFIER
*rav
,
7752 const char *signature
, uint32 msg_type
);
7753 bool smb_io_rpc_auth_verifier(const char *desc
, RPC_AUTH_VERIFIER
*rav
, prs_struct
*ps
, int depth
);
7754 bool smb_io_rpc_schannel_verifier(const char *desc
, RPC_AUTH_VERIFIER
*rav
, prs_struct
*ps
, int depth
);
7755 void init_rpc_auth_schannel_neg(RPC_AUTH_SCHANNEL_NEG
*neg
,
7756 const char *domain
, const char *myname
);
7757 bool smb_io_rpc_auth_schannel_neg(const char *desc
, RPC_AUTH_SCHANNEL_NEG
*neg
,
7758 prs_struct
*ps
, int depth
);
7759 bool smb_io_rpc_auth_schannel_chk(const char *desc
, int auth_len
,
7760 RPC_AUTH_SCHANNEL_CHK
* chk
,
7761 prs_struct
*ps
, int depth
);
7763 /* The following definitions come from rpc_parse/parse_sec.c */
7765 bool sec_io_desc(const char *desc
, SEC_DESC
**ppsd
, prs_struct
*ps
, int depth
);
7766 bool sec_io_desc_buf(const char *desc
, SEC_DESC_BUF
**ppsdb
, prs_struct
*ps
, int depth
);
7768 /* The following definitions come from rpc_parse/parse_spoolss.c */
7770 bool spoolss_io_system_time(const char *desc
, prs_struct
*ps
, int depth
, SYSTEMTIME
*systime
);
7771 bool make_systemtime(SYSTEMTIME
*systime
, struct tm
*unixtime
);
7772 bool smb_io_notify_info_data_strings(const char *desc
,SPOOL_NOTIFY_INFO_DATA
*data
,
7773 prs_struct
*ps
, int depth
);
7774 bool spool_io_user_level_1( const char *desc
, prs_struct
*ps
, int depth
, SPOOL_USER_1
*q_u
);
7775 bool spoolss_io_devmode(const char *desc
, prs_struct
*ps
, int depth
, DEVICEMODE
*devmode
);
7776 bool make_spoolss_q_open_printer_ex(SPOOL_Q_OPEN_PRINTER_EX
*q_u
,
7777 const fstring printername
,
7778 const fstring datatype
,
7779 uint32 access_required
,
7780 const fstring clientname
,
7781 const fstring user_name
);
7782 bool make_spoolss_q_addprinterex( TALLOC_CTX
*mem_ctx
, SPOOL_Q_ADDPRINTEREX
*q_u
,
7783 const char *srv_name
, const char* clientname
, const char* user_name
,
7784 uint32 level
, PRINTER_INFO_CTR
*ctr
);
7785 bool make_spoolss_printer_info_2(TALLOC_CTX
*ctx
, SPOOL_PRINTER_INFO_LEVEL_2
**spool_info2
,
7786 PRINTER_INFO_2
*info
);
7787 bool make_spoolss_printer_info_3(TALLOC_CTX
*mem_ctx
, SPOOL_PRINTER_INFO_LEVEL_3
**spool_info3
,
7788 PRINTER_INFO_3
*info
);
7789 bool make_spoolss_printer_info_7(TALLOC_CTX
*mem_ctx
, SPOOL_PRINTER_INFO_LEVEL_7
**spool_info7
,
7790 PRINTER_INFO_7
*info
);
7791 bool spoolss_io_q_open_printer(const char *desc
, SPOOL_Q_OPEN_PRINTER
*q_u
, prs_struct
*ps
, int depth
);
7792 bool spoolss_io_r_open_printer(const char *desc
, SPOOL_R_OPEN_PRINTER
*r_u
, prs_struct
*ps
, int depth
);
7793 bool spoolss_io_q_open_printer_ex(const char *desc
, SPOOL_Q_OPEN_PRINTER_EX
*q_u
, prs_struct
*ps
, int depth
);
7794 bool spoolss_io_r_open_printer_ex(const char *desc
, SPOOL_R_OPEN_PRINTER_EX
*r_u
, prs_struct
*ps
, int depth
);
7795 bool make_spoolss_q_deleteprinterdriverex( TALLOC_CTX
*mem_ctx
,
7796 SPOOL_Q_DELETEPRINTERDRIVEREX
*q_u
,
7801 bool make_spoolss_q_deleteprinterdriver(
7802 TALLOC_CTX
*mem_ctx
,
7803 SPOOL_Q_DELETEPRINTERDRIVER
*q_u
,
7808 bool make_spoolss_q_getprinterdata(SPOOL_Q_GETPRINTERDATA
*q_u
,
7809 const POLICY_HND
*handle
,
7810 const char *valuename
, uint32 size
);
7811 bool make_spoolss_q_getprinterdataex(SPOOL_Q_GETPRINTERDATAEX
*q_u
,
7812 const POLICY_HND
*handle
,
7813 const char *keyname
,
7814 const char *valuename
, uint32 size
);
7815 bool spoolss_io_q_getprinterdata(const char *desc
, SPOOL_Q_GETPRINTERDATA
*q_u
, prs_struct
*ps
, int depth
);
7816 bool spoolss_io_q_deleteprinterdata(const char *desc
, SPOOL_Q_DELETEPRINTERDATA
*q_u
, prs_struct
*ps
, int depth
);
7817 bool spoolss_io_r_deleteprinterdata(const char *desc
, SPOOL_R_DELETEPRINTERDATA
*r_u
, prs_struct
*ps
, int depth
);
7818 bool spoolss_io_q_deleteprinterdataex(const char *desc
, SPOOL_Q_DELETEPRINTERDATAEX
*q_u
, prs_struct
*ps
, int depth
);
7819 bool spoolss_io_r_deleteprinterdataex(const char *desc
, SPOOL_R_DELETEPRINTERDATAEX
*r_u
, prs_struct
*ps
, int depth
);
7820 bool spoolss_io_r_getprinterdata(const char *desc
, SPOOL_R_GETPRINTERDATA
*r_u
, prs_struct
*ps
, int depth
);
7821 bool make_spoolss_q_closeprinter(SPOOL_Q_CLOSEPRINTER
*q_u
, POLICY_HND
*hnd
);
7822 bool spoolss_io_q_abortprinter(const char *desc
, SPOOL_Q_ABORTPRINTER
*q_u
, prs_struct
*ps
, int depth
);
7823 bool spoolss_io_r_abortprinter(const char *desc
, SPOOL_R_ABORTPRINTER
*r_u
, prs_struct
*ps
, int depth
);
7824 bool spoolss_io_q_deleteprinter(const char *desc
, SPOOL_Q_DELETEPRINTER
*q_u
, prs_struct
*ps
, int depth
);
7825 bool spoolss_io_r_deleteprinter(const char *desc
, SPOOL_R_DELETEPRINTER
*r_u
, prs_struct
*ps
, int depth
);
7826 bool spoolss_io_q_deleteprinterdriver(const char *desc
, SPOOL_Q_DELETEPRINTERDRIVER
*q_u
, prs_struct
*ps
, int depth
);
7827 bool spoolss_io_r_deleteprinterdriver(const char *desc
, SPOOL_R_DELETEPRINTERDRIVER
*r_u
, prs_struct
*ps
, int depth
);
7828 bool spoolss_io_q_deleteprinterdriverex(const char *desc
, SPOOL_Q_DELETEPRINTERDRIVEREX
*q_u
, prs_struct
*ps
, int depth
);
7829 bool spoolss_io_r_deleteprinterdriverex(const char *desc
, SPOOL_R_DELETEPRINTERDRIVEREX
*r_u
, prs_struct
*ps
, int depth
);
7830 bool spoolss_io_q_closeprinter(const char *desc
, SPOOL_Q_CLOSEPRINTER
*q_u
, prs_struct
*ps
, int depth
);
7831 bool spoolss_io_r_closeprinter(const char *desc
, SPOOL_R_CLOSEPRINTER
*r_u
, prs_struct
*ps
, int depth
);
7832 bool spoolss_io_q_startdocprinter(const char *desc
, SPOOL_Q_STARTDOCPRINTER
*q_u
, prs_struct
*ps
, int depth
);
7833 bool spoolss_io_r_startdocprinter(const char *desc
, SPOOL_R_STARTDOCPRINTER
*r_u
, prs_struct
*ps
, int depth
);
7834 bool spoolss_io_q_enddocprinter(const char *desc
, SPOOL_Q_ENDDOCPRINTER
*q_u
, prs_struct
*ps
, int depth
);
7835 bool spoolss_io_r_enddocprinter(const char *desc
, SPOOL_R_ENDDOCPRINTER
*r_u
, prs_struct
*ps
, int depth
);
7836 bool spoolss_io_q_startpageprinter(const char *desc
, SPOOL_Q_STARTPAGEPRINTER
*q_u
, prs_struct
*ps
, int depth
);
7837 bool spoolss_io_r_startpageprinter(const char *desc
, SPOOL_R_STARTPAGEPRINTER
*r_u
, prs_struct
*ps
, int depth
);
7838 bool spoolss_io_q_endpageprinter(const char *desc
, SPOOL_Q_ENDPAGEPRINTER
*q_u
, prs_struct
*ps
, int depth
);
7839 bool spoolss_io_r_endpageprinter(const char *desc
, SPOOL_R_ENDPAGEPRINTER
*r_u
, prs_struct
*ps
, int depth
);
7840 bool spoolss_io_q_writeprinter(const char *desc
, SPOOL_Q_WRITEPRINTER
*q_u
, prs_struct
*ps
, int depth
);
7841 bool spoolss_io_r_writeprinter(const char *desc
, SPOOL_R_WRITEPRINTER
*r_u
, prs_struct
*ps
, int depth
);
7842 bool spoolss_io_q_rffpcnex(const char *desc
, SPOOL_Q_RFFPCNEX
*q_u
, prs_struct
*ps
, int depth
);
7843 bool spoolss_io_r_rffpcnex(const char *desc
, SPOOL_R_RFFPCNEX
*r_u
, prs_struct
*ps
, int depth
);
7844 bool spoolss_io_q_rfnpcnex(const char *desc
, SPOOL_Q_RFNPCNEX
*q_u
, prs_struct
*ps
, int depth
);
7845 bool spoolss_io_r_rfnpcnex(const char *desc
, SPOOL_R_RFNPCNEX
*r_u
, prs_struct
*ps
, int depth
);
7846 bool smb_io_printer_info_0(const char *desc
, RPC_BUFFER
*buffer
, PRINTER_INFO_0
*info
, int depth
);
7847 bool smb_io_printer_info_1(const char *desc
, RPC_BUFFER
*buffer
, PRINTER_INFO_1
*info
, int depth
);
7848 bool smb_io_printer_info_2(const char *desc
, RPC_BUFFER
*buffer
, PRINTER_INFO_2
*info
, int depth
);
7849 bool smb_io_printer_info_3(const char *desc
, RPC_BUFFER
*buffer
, PRINTER_INFO_3
*info
, int depth
);
7850 bool smb_io_printer_info_4(const char *desc
, RPC_BUFFER
*buffer
, PRINTER_INFO_4
*info
, int depth
);
7851 bool smb_io_printer_info_5(const char *desc
, RPC_BUFFER
*buffer
, PRINTER_INFO_5
*info
, int depth
);
7852 bool smb_io_printer_info_6(const char *desc
, RPC_BUFFER
*buffer
,
7853 PRINTER_INFO_6
*info
, int depth
);
7854 bool smb_io_printer_info_7(const char *desc
, RPC_BUFFER
*buffer
, PRINTER_INFO_7
*info
, int depth
);
7855 bool smb_io_port_info_1(const char *desc
, RPC_BUFFER
*buffer
, PORT_INFO_1
*info
, int depth
);
7856 bool smb_io_port_info_2(const char *desc
, RPC_BUFFER
*buffer
, PORT_INFO_2
*info
, int depth
);
7857 bool smb_io_printer_driver_info_1(const char *desc
, RPC_BUFFER
*buffer
, DRIVER_INFO_1
*info
, int depth
) ;
7858 bool smb_io_printer_driver_info_2(const char *desc
, RPC_BUFFER
*buffer
, DRIVER_INFO_2
*info
, int depth
) ;
7859 bool smb_io_printer_driver_info_3(const char *desc
, RPC_BUFFER
*buffer
, DRIVER_INFO_3
*info
, int depth
);
7860 bool smb_io_printer_driver_info_6(const char *desc
, RPC_BUFFER
*buffer
, DRIVER_INFO_6
*info
, int depth
);
7861 bool smb_io_job_info_1(const char *desc
, RPC_BUFFER
*buffer
, JOB_INFO_1
*info
, int depth
);
7862 bool smb_io_job_info_2(const char *desc
, RPC_BUFFER
*buffer
, JOB_INFO_2
*info
, int depth
);
7863 bool smb_io_form_1(const char *desc
, RPC_BUFFER
*buffer
, FORM_1
*info
, int depth
);
7864 bool smb_io_driverdir_1(const char *desc
, RPC_BUFFER
*buffer
, DRIVER_DIRECTORY_1
*info
, int depth
);
7865 bool smb_io_port_1(const char *desc
, RPC_BUFFER
*buffer
, PORT_INFO_1
*info
, int depth
);
7866 bool smb_io_port_2(const char *desc
, RPC_BUFFER
*buffer
, PORT_INFO_2
*info
, int depth
);
7867 bool smb_io_printprocessor_info_1(const char *desc
, RPC_BUFFER
*buffer
, PRINTPROCESSOR_1
*info
, int depth
);
7868 bool smb_io_printprocdatatype_info_1(const char *desc
, RPC_BUFFER
*buffer
, PRINTPROCDATATYPE_1
*info
, int depth
);
7869 bool smb_io_printmonitor_info_1(const char *desc
, RPC_BUFFER
*buffer
, PRINTMONITOR_1
*info
, int depth
);
7870 bool smb_io_printmonitor_info_2(const char *desc
, RPC_BUFFER
*buffer
, PRINTMONITOR_2
*info
, int depth
);
7871 uint32
spoolss_size_printer_info_0(PRINTER_INFO_0
*info
);
7872 uint32
spoolss_size_printer_info_1(PRINTER_INFO_1
*info
);
7873 uint32
spoolss_size_printer_info_2(PRINTER_INFO_2
*info
);
7874 uint32
spoolss_size_printer_info_4(PRINTER_INFO_4
*info
);
7875 uint32
spoolss_size_printer_info_5(PRINTER_INFO_5
*info
);
7876 uint32
spoolss_size_printer_info_6(PRINTER_INFO_6
*info
);
7877 uint32
spoolss_size_printer_info_3(PRINTER_INFO_3
*info
);
7878 uint32
spoolss_size_printer_info_7(PRINTER_INFO_7
*info
);
7879 uint32
spoolss_size_printer_driver_info_1(DRIVER_INFO_1
*info
);
7880 uint32
spoolss_size_printer_driver_info_2(DRIVER_INFO_2
*info
);
7881 uint32
spoolss_size_string_array(uint16
*string
);
7882 uint32
spoolss_size_printer_driver_info_3(DRIVER_INFO_3
*info
);
7883 uint32
spoolss_size_printer_driver_info_6(DRIVER_INFO_6
*info
);
7884 uint32
spoolss_size_job_info_1(JOB_INFO_1
*info
);
7885 uint32
spoolss_size_job_info_2(JOB_INFO_2
*info
);
7886 uint32
spoolss_size_form_1(FORM_1
*info
);
7887 uint32
spoolss_size_port_info_1(PORT_INFO_1
*info
);
7888 uint32
spoolss_size_driverdir_info_1(DRIVER_DIRECTORY_1
*info
);
7889 uint32
spoolss_size_printprocessordirectory_info_1(PRINTPROCESSOR_DIRECTORY_1
*info
);
7890 uint32
spoolss_size_port_info_2(PORT_INFO_2
*info
);
7891 uint32
spoolss_size_printprocessor_info_1(PRINTPROCESSOR_1
*info
);
7892 uint32
spoolss_size_printprocdatatype_info_1(PRINTPROCDATATYPE_1
*info
);
7893 uint32
spoolss_size_printer_enum_values(PRINTER_ENUM_VALUES
*p
);
7894 uint32
spoolss_size_printmonitor_info_1(PRINTMONITOR_1
*info
);
7895 uint32
spoolss_size_printmonitor_info_2(PRINTMONITOR_2
*info
);
7896 bool make_spoolss_q_getprinterdriver2(SPOOL_Q_GETPRINTERDRIVER2
*q_u
,
7897 const POLICY_HND
*hnd
,
7898 const fstring architecture
,
7899 uint32 level
, uint32 clientmajor
, uint32 clientminor
,
7900 RPC_BUFFER
*buffer
, uint32 offered
);
7901 bool spoolss_io_q_getprinterdriver2(const char *desc
, SPOOL_Q_GETPRINTERDRIVER2
*q_u
, prs_struct
*ps
, int depth
);
7902 bool spoolss_io_r_getprinterdriver2(const char *desc
, SPOOL_R_GETPRINTERDRIVER2
*r_u
, prs_struct
*ps
, int depth
);
7903 bool make_spoolss_q_enumprinters(
7904 SPOOL_Q_ENUMPRINTERS
*q_u
,
7911 bool make_spoolss_q_enumports(SPOOL_Q_ENUMPORTS
*q_u
,
7912 fstring servername
, uint32 level
,
7913 RPC_BUFFER
*buffer
, uint32 offered
);
7914 bool spoolss_io_q_enumprinters(const char *desc
, SPOOL_Q_ENUMPRINTERS
*q_u
, prs_struct
*ps
, int depth
);
7915 bool spoolss_io_r_enumprinters(const char *desc
, SPOOL_R_ENUMPRINTERS
*r_u
, prs_struct
*ps
, int depth
);
7916 bool spoolss_io_r_getprinter(const char *desc
, SPOOL_R_GETPRINTER
*r_u
, prs_struct
*ps
, int depth
);
7917 bool spoolss_io_q_getprinter(const char *desc
, SPOOL_Q_GETPRINTER
*q_u
, prs_struct
*ps
, int depth
);
7918 bool make_spoolss_q_getprinter(
7919 TALLOC_CTX
*mem_ctx
,
7920 SPOOL_Q_GETPRINTER
*q_u
,
7921 const POLICY_HND
*hnd
,
7926 bool make_spoolss_q_setprinter(TALLOC_CTX
*mem_ctx
, SPOOL_Q_SETPRINTER
*q_u
,
7927 const POLICY_HND
*hnd
, uint32 level
, PRINTER_INFO_CTR
*info
,
7929 bool spoolss_io_r_setprinter(const char *desc
, SPOOL_R_SETPRINTER
*r_u
, prs_struct
*ps
, int depth
);
7930 bool spoolss_io_q_setprinter(const char *desc
, SPOOL_Q_SETPRINTER
*q_u
, prs_struct
*ps
, int depth
);
7931 bool spoolss_io_r_fcpn(const char *desc
, SPOOL_R_FCPN
*r_u
, prs_struct
*ps
, int depth
);
7932 bool spoolss_io_q_fcpn(const char *desc
, SPOOL_Q_FCPN
*q_u
, prs_struct
*ps
, int depth
);
7933 bool spoolss_io_r_addjob(const char *desc
, SPOOL_R_ADDJOB
*r_u
, prs_struct
*ps
, int depth
);
7934 bool spoolss_io_q_addjob(const char *desc
, SPOOL_Q_ADDJOB
*q_u
, prs_struct
*ps
, int depth
);
7935 bool spoolss_io_r_enumjobs(const char *desc
, SPOOL_R_ENUMJOBS
*r_u
, prs_struct
*ps
, int depth
);
7936 bool make_spoolss_q_enumjobs(SPOOL_Q_ENUMJOBS
*q_u
, const POLICY_HND
*hnd
,
7942 bool spoolss_io_q_enumjobs(const char *desc
, SPOOL_Q_ENUMJOBS
*q_u
, prs_struct
*ps
, int depth
);
7943 bool spoolss_io_r_schedulejob(const char *desc
, SPOOL_R_SCHEDULEJOB
*r_u
, prs_struct
*ps
, int depth
);
7944 bool spoolss_io_q_schedulejob(const char *desc
, SPOOL_Q_SCHEDULEJOB
*q_u
, prs_struct
*ps
, int depth
);
7945 bool spoolss_io_r_setjob(const char *desc
, SPOOL_R_SETJOB
*r_u
, prs_struct
*ps
, int depth
);
7946 bool spoolss_io_q_setjob(const char *desc
, SPOOL_Q_SETJOB
*q_u
, prs_struct
*ps
, int depth
);
7947 bool spoolss_io_r_enumprinterdrivers(const char *desc
, SPOOL_R_ENUMPRINTERDRIVERS
*r_u
, prs_struct
*ps
, int depth
);
7948 bool make_spoolss_q_enumprinterdrivers(SPOOL_Q_ENUMPRINTERDRIVERS
*q_u
,
7950 const char *environment
,
7952 RPC_BUFFER
*buffer
, uint32 offered
);
7953 bool spoolss_io_q_enumprinterdrivers(const char *desc
, SPOOL_Q_ENUMPRINTERDRIVERS
*q_u
, prs_struct
*ps
, int depth
);
7954 bool spoolss_io_q_enumforms(const char *desc
, SPOOL_Q_ENUMFORMS
*q_u
, prs_struct
*ps
, int depth
);
7955 bool spoolss_io_r_enumforms(const char *desc
, SPOOL_R_ENUMFORMS
*r_u
, prs_struct
*ps
, int depth
);
7956 bool spoolss_io_q_getform(const char *desc
, SPOOL_Q_GETFORM
*q_u
, prs_struct
*ps
, int depth
);
7957 bool spoolss_io_r_getform(const char *desc
, SPOOL_R_GETFORM
*r_u
, prs_struct
*ps
, int depth
);
7958 bool spoolss_io_r_enumports(const char *desc
, SPOOL_R_ENUMPORTS
*r_u
, prs_struct
*ps
, int depth
);
7959 bool spoolss_io_q_enumports(const char *desc
, SPOOL_Q_ENUMPORTS
*q_u
, prs_struct
*ps
, int depth
);
7960 bool spool_io_printer_info_level_1(const char *desc
, SPOOL_PRINTER_INFO_LEVEL_1
*il
, prs_struct
*ps
, int depth
);
7961 bool spool_io_printer_info_level_3(const char *desc
, SPOOL_PRINTER_INFO_LEVEL_3
*il
, prs_struct
*ps
, int depth
);
7962 bool spool_io_printer_info_level_2(const char *desc
, SPOOL_PRINTER_INFO_LEVEL_2
*il
, prs_struct
*ps
, int depth
);
7963 bool spool_io_printer_info_level_7(const char *desc
, SPOOL_PRINTER_INFO_LEVEL_7
*il
, prs_struct
*ps
, int depth
);
7964 bool spool_io_printer_info_level(const char *desc
, SPOOL_PRINTER_INFO_LEVEL
*il
, prs_struct
*ps
, int depth
);
7965 bool spoolss_io_q_addprinterex(const char *desc
, SPOOL_Q_ADDPRINTEREX
*q_u
, prs_struct
*ps
, int depth
);
7966 bool spoolss_io_r_addprinterex(const char *desc
, SPOOL_R_ADDPRINTEREX
*r_u
,
7967 prs_struct
*ps
, int depth
);
7968 bool spool_io_printer_driver_info_level_3(const char *desc
, SPOOL_PRINTER_DRIVER_INFO_LEVEL_3
**q_u
,
7969 prs_struct
*ps
, int depth
);
7970 bool spool_io_printer_driver_info_level_6(const char *desc
, SPOOL_PRINTER_DRIVER_INFO_LEVEL_6
**q_u
,
7971 prs_struct
*ps
, int depth
);
7972 bool smb_io_unibuffer(const char *desc
, UNISTR2
*buffer
, prs_struct
*ps
, int depth
);
7973 bool spool_io_printer_driver_info_level(const char *desc
, SPOOL_PRINTER_DRIVER_INFO_LEVEL
*il
, prs_struct
*ps
, int depth
);
7974 bool make_spoolss_q_addprinterdriver(TALLOC_CTX
*mem_ctx
,
7975 SPOOL_Q_ADDPRINTERDRIVER
*q_u
, const char* srv_name
,
7976 uint32 level
, PRINTER_DRIVER_CTR
*info
);
7977 bool make_spoolss_driver_info_3(TALLOC_CTX
*mem_ctx
,
7978 SPOOL_PRINTER_DRIVER_INFO_LEVEL_3
**spool_drv_info
,
7979 DRIVER_INFO_3
*info3
);
7980 bool make_spoolss_buffer5(TALLOC_CTX
*mem_ctx
, BUFFER5
*buf5
, uint32 len
, uint16
*src
);
7981 bool spoolss_io_q_addprinterdriver(const char *desc
, SPOOL_Q_ADDPRINTERDRIVER
*q_u
, prs_struct
*ps
, int depth
);
7982 bool spoolss_io_r_addprinterdriver(const char *desc
, SPOOL_R_ADDPRINTERDRIVER
*q_u
, prs_struct
*ps
, int depth
);
7983 bool spoolss_io_q_addprinterdriverex(const char *desc
, SPOOL_Q_ADDPRINTERDRIVEREX
*q_u
, prs_struct
*ps
, int depth
);
7984 bool spoolss_io_r_addprinterdriverex(const char *desc
, SPOOL_R_ADDPRINTERDRIVEREX
*q_u
, prs_struct
*ps
, int depth
);
7985 bool uni_2_asc_printer_driver_3(SPOOL_PRINTER_DRIVER_INFO_LEVEL_3
*uni
,
7986 NT_PRINTER_DRIVER_INFO_LEVEL_3
**asc
);
7987 bool uni_2_asc_printer_driver_6(SPOOL_PRINTER_DRIVER_INFO_LEVEL_6
*uni
,
7988 NT_PRINTER_DRIVER_INFO_LEVEL_6
**asc
);
7989 bool uni_2_asc_printer_info_2(const SPOOL_PRINTER_INFO_LEVEL_2
*uni
,
7990 NT_PRINTER_INFO_LEVEL_2
*d
);
7991 bool make_spoolss_q_getprinterdriverdir(SPOOL_Q_GETPRINTERDRIVERDIR
*q_u
,
7992 fstring servername
, fstring env_name
, uint32 level
,
7993 RPC_BUFFER
*buffer
, uint32 offered
);
7994 bool spoolss_io_q_getprinterdriverdir(const char *desc
, SPOOL_Q_GETPRINTERDRIVERDIR
*q_u
, prs_struct
*ps
, int depth
);
7995 bool spoolss_io_r_getprinterdriverdir(const char *desc
, SPOOL_R_GETPRINTERDRIVERDIR
*r_u
, prs_struct
*ps
, int depth
);
7996 bool spoolss_io_r_enumprintprocessors(const char *desc
, SPOOL_R_ENUMPRINTPROCESSORS
*r_u
, prs_struct
*ps
, int depth
);
7997 bool spoolss_io_q_enumprintprocessors(const char *desc
, SPOOL_Q_ENUMPRINTPROCESSORS
*q_u
, prs_struct
*ps
, int depth
);
7998 bool spoolss_io_q_addprintprocessor(const char *desc
, SPOOL_Q_ADDPRINTPROCESSOR
*q_u
, prs_struct
*ps
, int depth
);
7999 bool spoolss_io_r_addprintprocessor(const char *desc
, SPOOL_R_ADDPRINTPROCESSOR
*r_u
, prs_struct
*ps
, int depth
);
8000 bool spoolss_io_r_enumprintprocdatatypes(const char *desc
, SPOOL_R_ENUMPRINTPROCDATATYPES
*r_u
, prs_struct
*ps
, int depth
);
8001 bool spoolss_io_q_enumprintprocdatatypes(const char *desc
, SPOOL_Q_ENUMPRINTPROCDATATYPES
*q_u
, prs_struct
*ps
, int depth
);
8002 bool spoolss_io_q_enumprintmonitors(const char *desc
, SPOOL_Q_ENUMPRINTMONITORS
*q_u
, prs_struct
*ps
, int depth
);
8003 bool spoolss_io_r_enumprintmonitors(const char *desc
, SPOOL_R_ENUMPRINTMONITORS
*r_u
, prs_struct
*ps
, int depth
);
8004 bool spoolss_io_r_enumprinterdata(const char *desc
, SPOOL_R_ENUMPRINTERDATA
*r_u
, prs_struct
*ps
, int depth
);
8005 bool spoolss_io_q_enumprinterdata(const char *desc
, SPOOL_Q_ENUMPRINTERDATA
*q_u
, prs_struct
*ps
, int depth
);
8006 bool make_spoolss_q_enumprinterdata(SPOOL_Q_ENUMPRINTERDATA
*q_u
,
8007 const POLICY_HND
*hnd
,
8008 uint32 idx
, uint32 valuelen
, uint32 datalen
);
8009 bool make_spoolss_q_enumprinterdataex(SPOOL_Q_ENUMPRINTERDATAEX
*q_u
,
8010 const POLICY_HND
*hnd
, const char *key
,
8012 bool make_spoolss_q_setprinterdata(SPOOL_Q_SETPRINTERDATA
*q_u
, const POLICY_HND
*hnd
,
8013 char* value
, uint32 data_type
, char* data
, uint32 data_size
);
8014 bool make_spoolss_q_setprinterdataex(SPOOL_Q_SETPRINTERDATAEX
*q_u
, const POLICY_HND
*hnd
,
8015 char *key
, char* value
, uint32 data_type
, char* data
,
8017 bool spoolss_io_q_setprinterdata(const char *desc
, SPOOL_Q_SETPRINTERDATA
*q_u
, prs_struct
*ps
, int depth
);
8018 bool spoolss_io_r_setprinterdata(const char *desc
, SPOOL_R_SETPRINTERDATA
*r_u
, prs_struct
*ps
, int depth
);
8019 bool spoolss_io_q_resetprinter(const char *desc
, SPOOL_Q_RESETPRINTER
*q_u
, prs_struct
*ps
, int depth
);
8020 bool spoolss_io_r_resetprinter(const char *desc
, SPOOL_R_RESETPRINTER
*r_u
, prs_struct
*ps
, int depth
);
8021 bool spoolss_io_q_deleteform(const char *desc
, SPOOL_Q_DELETEFORM
*q_u
, prs_struct
*ps
, int depth
);
8022 bool spoolss_io_r_deleteform(const char *desc
, SPOOL_R_DELETEFORM
*r_u
, prs_struct
*ps
, int depth
);
8023 bool spoolss_io_q_addform(const char *desc
, SPOOL_Q_ADDFORM
*q_u
, prs_struct
*ps
, int depth
);
8024 bool spoolss_io_r_addform(const char *desc
, SPOOL_R_ADDFORM
*r_u
, prs_struct
*ps
, int depth
);
8025 bool spoolss_io_q_setform(const char *desc
, SPOOL_Q_SETFORM
*q_u
, prs_struct
*ps
, int depth
);
8026 bool spoolss_io_r_setform(const char *desc
, SPOOL_R_SETFORM
*r_u
, prs_struct
*ps
, int depth
);
8027 bool spoolss_io_r_getjob(const char *desc
, SPOOL_R_GETJOB
*r_u
, prs_struct
*ps
, int depth
);
8028 bool spoolss_io_q_getjob(const char *desc
, SPOOL_Q_GETJOB
*q_u
, prs_struct
*ps
, int depth
);
8029 void free_devmode(DEVICEMODE
*devmode
);
8030 void free_printer_info_1(PRINTER_INFO_1
*printer
);
8031 void free_printer_info_2(PRINTER_INFO_2
*printer
);
8032 void free_printer_info_3(PRINTER_INFO_3
*printer
);
8033 void free_printer_info_4(PRINTER_INFO_4
*printer
);
8034 void free_printer_info_5(PRINTER_INFO_5
*printer
);
8035 void free_printer_info_6(PRINTER_INFO_6
*printer
);
8036 void free_printer_info_7(PRINTER_INFO_7
*printer
);
8037 void free_job_info_2(JOB_INFO_2
*job
);
8038 bool make_spoolss_q_replyopenprinter(SPOOL_Q_REPLYOPENPRINTER
*q_u
,
8039 const fstring string
, uint32 printer
, uint32 type
);
8040 bool spoolss_io_q_replyopenprinter(const char *desc
, SPOOL_Q_REPLYOPENPRINTER
*q_u
, prs_struct
*ps
, int depth
);
8041 bool spoolss_io_r_replyopenprinter(const char *desc
, SPOOL_R_REPLYOPENPRINTER
*r_u
, prs_struct
*ps
, int depth
);
8042 bool make_spoolss_q_routerreplyprinter(SPOOL_Q_ROUTERREPLYPRINTER
*q_u
, POLICY_HND
*hnd
,
8043 uint32 condition
, uint32 change_id
);
8044 bool spoolss_io_q_routerreplyprinter (const char *desc
, SPOOL_Q_ROUTERREPLYPRINTER
*q_u
, prs_struct
*ps
, int depth
);
8045 bool spoolss_io_r_routerreplyprinter (const char *desc
, SPOOL_R_ROUTERREPLYPRINTER
*r_u
, prs_struct
*ps
, int depth
);
8046 bool make_spoolss_q_reply_closeprinter(SPOOL_Q_REPLYCLOSEPRINTER
*q_u
, POLICY_HND
*hnd
);
8047 bool spoolss_io_q_replycloseprinter(const char *desc
, SPOOL_Q_REPLYCLOSEPRINTER
*q_u
, prs_struct
*ps
, int depth
);
8048 bool spoolss_io_r_replycloseprinter(const char *desc
, SPOOL_R_REPLYCLOSEPRINTER
*r_u
, prs_struct
*ps
, int depth
);
8049 bool make_spoolss_q_reply_rrpcn(SPOOL_Q_REPLY_RRPCN
*q_u
, POLICY_HND
*hnd
,
8050 uint32 change_low
, uint32 change_high
,
8051 SPOOL_NOTIFY_INFO
*info
);
8052 bool spoolss_io_q_reply_rrpcn(const char *desc
, SPOOL_Q_REPLY_RRPCN
*q_u
, prs_struct
*ps
, int depth
);
8053 bool spoolss_io_r_reply_rrpcn(const char *desc
, SPOOL_R_REPLY_RRPCN
*r_u
, prs_struct
*ps
, int depth
);
8054 bool spoolss_io_q_getprinterdataex(const char *desc
, SPOOL_Q_GETPRINTERDATAEX
*q_u
, prs_struct
*ps
, int depth
);
8055 bool spoolss_io_r_getprinterdataex(const char *desc
, SPOOL_R_GETPRINTERDATAEX
*r_u
, prs_struct
*ps
, int depth
);
8056 bool spoolss_io_q_setprinterdataex(const char *desc
, SPOOL_Q_SETPRINTERDATAEX
*q_u
, prs_struct
*ps
, int depth
);
8057 bool spoolss_io_r_setprinterdataex(const char *desc
, SPOOL_R_SETPRINTERDATAEX
*r_u
, prs_struct
*ps
, int depth
);
8058 bool make_spoolss_q_enumprinterkey(SPOOL_Q_ENUMPRINTERKEY
*q_u
,
8059 POLICY_HND
*hnd
, const char *key
,
8061 bool spoolss_io_q_enumprinterkey(const char *desc
, SPOOL_Q_ENUMPRINTERKEY
*q_u
, prs_struct
*ps
, int depth
);
8062 bool spoolss_io_r_enumprinterkey(const char *desc
, SPOOL_R_ENUMPRINTERKEY
*r_u
, prs_struct
*ps
, int depth
);
8063 bool make_spoolss_q_deleteprinterkey(SPOOL_Q_DELETEPRINTERKEY
*q_u
,
8064 POLICY_HND
*hnd
, char *keyname
);
8065 bool spoolss_io_q_deleteprinterkey(const char *desc
, SPOOL_Q_DELETEPRINTERKEY
*q_u
, prs_struct
*ps
, int depth
);
8066 bool spoolss_io_r_deleteprinterkey(const char *desc
, SPOOL_R_DELETEPRINTERKEY
*r_u
, prs_struct
*ps
, int depth
);
8067 bool spoolss_io_q_enumprinterdataex(const char *desc
, SPOOL_Q_ENUMPRINTERDATAEX
*q_u
, prs_struct
*ps
, int depth
);
8068 bool spoolss_io_r_enumprinterdataex(const char *desc
, SPOOL_R_ENUMPRINTERDATAEX
*r_u
, prs_struct
*ps
, int depth
);
8069 bool make_spoolss_q_getprintprocessordirectory(SPOOL_Q_GETPRINTPROCESSORDIRECTORY
*q_u
, const char *name
, char *environment
, int level
, RPC_BUFFER
*buffer
, uint32 offered
);
8070 bool spoolss_io_q_getprintprocessordirectory(const char *desc
, SPOOL_Q_GETPRINTPROCESSORDIRECTORY
*q_u
, prs_struct
*ps
, int depth
);
8071 bool spoolss_io_r_getprintprocessordirectory(const char *desc
, SPOOL_R_GETPRINTPROCESSORDIRECTORY
*r_u
, prs_struct
*ps
, int depth
);
8072 bool smb_io_printprocessordirectory_1(const char *desc
, RPC_BUFFER
*buffer
, PRINTPROCESSOR_DIRECTORY_1
*info
, int depth
);
8073 bool make_spoolss_q_addform(SPOOL_Q_ADDFORM
*q_u
, POLICY_HND
*handle
,
8074 int level
, FORM
*form
);
8075 bool make_spoolss_q_setform(SPOOL_Q_SETFORM
*q_u
, POLICY_HND
*handle
,
8076 int level
, const char *form_name
, FORM
*form
);
8077 bool make_spoolss_q_deleteform(SPOOL_Q_DELETEFORM
*q_u
, POLICY_HND
*handle
,
8079 bool make_spoolss_q_getform(SPOOL_Q_GETFORM
*q_u
, POLICY_HND
*handle
,
8080 const char *formname
, uint32 level
,
8081 RPC_BUFFER
*buffer
, uint32 offered
);
8082 bool make_spoolss_q_enumforms(SPOOL_Q_ENUMFORMS
*q_u
, POLICY_HND
*handle
,
8083 uint32 level
, RPC_BUFFER
*buffer
,
8085 bool make_spoolss_q_setjob(SPOOL_Q_SETJOB
*q_u
, POLICY_HND
*handle
,
8086 uint32 jobid
, uint32 level
, uint32 command
);
8087 bool make_spoolss_q_getjob(SPOOL_Q_GETJOB
*q_u
, POLICY_HND
*handle
,
8088 uint32 jobid
, uint32 level
, RPC_BUFFER
*buffer
,
8090 bool make_spoolss_q_startpageprinter(SPOOL_Q_STARTPAGEPRINTER
*q_u
,
8091 POLICY_HND
*handle
);
8092 bool make_spoolss_q_endpageprinter(SPOOL_Q_ENDPAGEPRINTER
*q_u
,
8093 POLICY_HND
*handle
);
8094 bool make_spoolss_q_startdocprinter(SPOOL_Q_STARTDOCPRINTER
*q_u
,
8095 POLICY_HND
*handle
, uint32 level
,
8096 char *docname
, char *outputfile
,
8098 bool make_spoolss_q_enddocprinter(SPOOL_Q_ENDDOCPRINTER
*q_u
,
8099 POLICY_HND
*handle
);
8100 bool make_spoolss_q_writeprinter(SPOOL_Q_WRITEPRINTER
*q_u
,
8101 POLICY_HND
*handle
, uint32 data_size
,
8103 bool make_spoolss_q_deleteprinterdata(SPOOL_Q_DELETEPRINTERDATA
*q_u
,
8104 POLICY_HND
*handle
, char *valuename
);
8105 bool make_spoolss_q_deleteprinterdataex(SPOOL_Q_DELETEPRINTERDATAEX
*q_u
,
8106 POLICY_HND
*handle
, char *key
,
8108 bool make_spoolss_q_rffpcnex(SPOOL_Q_RFFPCNEX
*q_u
, POLICY_HND
*handle
,
8109 uint32 flags
, uint32 options
, const char *localmachine
,
8110 uint32 printerlocal
, SPOOL_NOTIFY_OPTION
*option
);
8111 bool spoolss_io_q_xcvdataport(const char *desc
, SPOOL_Q_XCVDATAPORT
*q_u
, prs_struct
*ps
, int depth
);
8112 bool spoolss_io_r_xcvdataport(const char *desc
, SPOOL_R_XCVDATAPORT
*r_u
, prs_struct
*ps
, int depth
);
8113 bool make_monitorui_buf( RPC_BUFFER
*buf
, const char *dllname
);
8114 bool convert_port_data_1( NT_PORT_DATA_1
*port1
, RPC_BUFFER
*buf
) ;
8116 /* The following definitions come from rpc_parse/parse_svcctl.c */
8118 bool svcctl_io_enum_services_status( const char *desc
, ENUM_SERVICES_STATUS
*enum_status
, RPC_BUFFER
*buffer
, int depth
);
8119 bool svcctl_io_service_status_process( const char *desc
, SERVICE_STATUS_PROCESS
*status
, RPC_BUFFER
*buffer
, int depth
);
8120 uint32
svcctl_sizeof_enum_services_status( ENUM_SERVICES_STATUS
*status
);
8121 uint32
svcctl_sizeof_service_config( SERVICE_CONFIG
*config
);
8122 bool svcctl_io_q_enum_services_status(const char *desc
, SVCCTL_Q_ENUM_SERVICES_STATUS
*q_u
, prs_struct
*ps
, int depth
);
8123 bool svcctl_io_r_enum_services_status(const char *desc
, SVCCTL_R_ENUM_SERVICES_STATUS
*r_u
, prs_struct
*ps
, int depth
);
8124 bool svcctl_io_q_enum_dependent_services(const char *desc
, SVCCTL_Q_ENUM_DEPENDENT_SERVICES
*q_u
, prs_struct
*ps
, int depth
);
8125 bool svcctl_io_r_enum_dependent_services(const char *desc
, SVCCTL_R_ENUM_DEPENDENT_SERVICES
*r_u
, prs_struct
*ps
, int depth
);
8126 bool svcctl_io_q_query_service_config(const char *desc
, SVCCTL_Q_QUERY_SERVICE_CONFIG
*q_u
, prs_struct
*ps
, int depth
);
8127 bool svcctl_io_r_query_service_config(const char *desc
, SVCCTL_R_QUERY_SERVICE_CONFIG
*r_u
, prs_struct
*ps
, int depth
);
8128 bool svcctl_io_q_query_service_config2(const char *desc
, SVCCTL_Q_QUERY_SERVICE_CONFIG2
*q_u
, prs_struct
*ps
, int depth
);
8129 void init_service_description_buffer(SERVICE_DESCRIPTION
*desc
, const char *service_desc
);
8130 bool svcctl_io_service_description( const char *desc
, SERVICE_DESCRIPTION
*description
, RPC_BUFFER
*buffer
, int depth
);
8131 uint32
svcctl_sizeof_service_description( SERVICE_DESCRIPTION
*desc
);
8132 bool svcctl_io_service_fa( const char *desc
, SERVICE_FAILURE_ACTIONS
*fa
, RPC_BUFFER
*buffer
, int depth
);
8133 uint32
svcctl_sizeof_service_fa( SERVICE_FAILURE_ACTIONS
*fa
);
8134 bool svcctl_io_r_query_service_config2(const char *desc
, SVCCTL_R_QUERY_SERVICE_CONFIG2
*r_u
, prs_struct
*ps
, int depth
);
8135 bool svcctl_io_q_query_service_status_ex(const char *desc
, SVCCTL_Q_QUERY_SERVICE_STATUSEX
*q_u
, prs_struct
*ps
, int depth
);
8136 bool svcctl_io_r_query_service_status_ex(const char *desc
, SVCCTL_R_QUERY_SERVICE_STATUSEX
*r_u
, prs_struct
*ps
, int depth
);
8138 /* The following definitions come from rpc_server/srv_dfs_nt.c */
8140 void _dfs_GetManagerVersion(pipes_struct
*p
, struct dfs_GetManagerVersion
*r
);
8141 WERROR
_dfs_Add(pipes_struct
*p
, struct dfs_Add
*r
);
8142 WERROR
_dfs_Remove(pipes_struct
*p
, struct dfs_Remove
*r
);
8143 WERROR
_dfs_Enum(pipes_struct
*p
, struct dfs_Enum
*r
);
8144 WERROR
_dfs_GetInfo(pipes_struct
*p
, struct dfs_GetInfo
*r
);
8145 WERROR
_dfs_SetInfo(pipes_struct
*p
, struct dfs_SetInfo
*r
);
8146 WERROR
_dfs_Rename(pipes_struct
*p
, struct dfs_Rename
*r
);
8147 WERROR
_dfs_Move(pipes_struct
*p
, struct dfs_Move
*r
);
8148 WERROR
_dfs_ManagerGetConfigInfo(pipes_struct
*p
, struct dfs_ManagerGetConfigInfo
*r
);
8149 WERROR
_dfs_ManagerSendSiteInfo(pipes_struct
*p
, struct dfs_ManagerSendSiteInfo
*r
);
8150 WERROR
_dfs_AddFtRoot(pipes_struct
*p
, struct dfs_AddFtRoot
*r
);
8151 WERROR
_dfs_RemoveFtRoot(pipes_struct
*p
, struct dfs_RemoveFtRoot
*r
);
8152 WERROR
_dfs_AddStdRoot(pipes_struct
*p
, struct dfs_AddStdRoot
*r
);
8153 WERROR
_dfs_RemoveStdRoot(pipes_struct
*p
, struct dfs_RemoveStdRoot
*r
);
8154 WERROR
_dfs_ManagerInitialize(pipes_struct
*p
, struct dfs_ManagerInitialize
*r
);
8155 WERROR
_dfs_AddStdRootForced(pipes_struct
*p
, struct dfs_AddStdRootForced
*r
);
8156 WERROR
_dfs_GetDcAddress(pipes_struct
*p
, struct dfs_GetDcAddress
*r
);
8157 WERROR
_dfs_SetDcAddress(pipes_struct
*p
, struct dfs_SetDcAddress
*r
);
8158 WERROR
_dfs_FlushFtTable(pipes_struct
*p
, struct dfs_FlushFtTable
*r
);
8159 WERROR
_dfs_Add2(pipes_struct
*p
, struct dfs_Add2
*r
);
8160 WERROR
_dfs_Remove2(pipes_struct
*p
, struct dfs_Remove2
*r
);
8161 WERROR
_dfs_EnumEx(pipes_struct
*p
, struct dfs_EnumEx
*r
);
8162 WERROR
_dfs_SetInfo2(pipes_struct
*p
, struct dfs_SetInfo2
*r
);
8164 /* The following definitions come from rpc_server/srv_dssetup_nt.c */
8166 WERROR
_dssetup_DsRoleGetPrimaryDomainInformation(pipes_struct
*p
,
8167 struct dssetup_DsRoleGetPrimaryDomainInformation
*r
);
8168 WERROR
_dssetup_DsRoleDnsNameToFlatName(pipes_struct
*p
,
8169 struct dssetup_DsRoleDnsNameToFlatName
*r
);
8170 WERROR
_dssetup_DsRoleDcAsDc(pipes_struct
*p
,
8171 struct dssetup_DsRoleDcAsDc
*r
);
8172 WERROR
_dssetup_DsRoleDcAsReplica(pipes_struct
*p
,
8173 struct dssetup_DsRoleDcAsReplica
*r
);
8174 WERROR
_dssetup_DsRoleDemoteDc(pipes_struct
*p
,
8175 struct dssetup_DsRoleDemoteDc
*r
);
8176 WERROR
_dssetup_DsRoleGetDcOperationProgress(pipes_struct
*p
,
8177 struct dssetup_DsRoleGetDcOperationProgress
*r
);
8178 WERROR
_dssetup_DsRoleGetDcOperationResults(pipes_struct
*p
,
8179 struct dssetup_DsRoleGetDcOperationResults
*r
);
8180 WERROR
_dssetup_DsRoleCancel(pipes_struct
*p
,
8181 struct dssetup_DsRoleCancel
*r
);
8182 WERROR
_dssetup_DsRoleServerSaveStateForUpgrade(pipes_struct
*p
,
8183 struct dssetup_DsRoleServerSaveStateForUpgrade
*r
);
8184 WERROR
_dssetup_DsRoleUpgradeDownlevelServer(pipes_struct
*p
,
8185 struct dssetup_DsRoleUpgradeDownlevelServer
*r
);
8186 WERROR
_dssetup_DsRoleAbortDownlevelServerUpgrade(pipes_struct
*p
,
8187 struct dssetup_DsRoleAbortDownlevelServerUpgrade
*r
);
8189 /* The following definitions come from rpc_server/srv_echo_nt.c */
8191 void _echo_AddOne(pipes_struct
*p
, struct echo_AddOne
*r
);
8192 void _echo_EchoData(pipes_struct
*p
, struct echo_EchoData
*r
);
8193 void _echo_SinkData(pipes_struct
*p
, struct echo_SinkData
*r
);
8194 void _echo_SourceData(pipes_struct
*p
, struct echo_SourceData
*r
);
8195 void _echo_TestCall(pipes_struct
*p
, struct echo_TestCall
*r
);
8196 NTSTATUS
_echo_TestCall2(pipes_struct
*p
, struct echo_TestCall2
*r
);
8197 uint32
_echo_TestSleep(pipes_struct
*p
, struct echo_TestSleep
*r
);
8198 void _echo_TestEnum(pipes_struct
*p
, struct echo_TestEnum
*r
);
8199 void _echo_TestSurrounding(pipes_struct
*p
, struct echo_TestSurrounding
*r
);
8200 uint16
_echo_TestDoublePointer(pipes_struct
*p
, struct echo_TestDoublePointer
*r
);
8202 /* The following definitions come from rpc_server/srv_eventlog.c */
8204 NTSTATUS
rpc_eventlog2_init(void);
8205 void eventlog2_get_pipe_fns(struct api_struct
**fns
, int *n_fns
);
8207 /* The following definitions come from rpc_server/srv_eventlog_lib.c */
8209 TDB_CONTEXT
*elog_init_tdb( char *tdbfilename
);
8210 char *elog_tdbname(TALLOC_CTX
*ctx
, const char *name
);
8211 int elog_tdb_size( TDB_CONTEXT
* tdb
, int *MaxSize
, int *Retention
);
8212 bool prune_eventlog( TDB_CONTEXT
* tdb
);
8213 bool can_write_to_eventlog( TDB_CONTEXT
* tdb
, int32_t needed
);
8214 ELOG_TDB
*elog_open_tdb( char *logname
, bool force_clear
);
8215 int elog_close_tdb( ELOG_TDB
*etdb
, bool force_close
);
8216 int write_eventlog_tdb( TDB_CONTEXT
* the_tdb
, Eventlog_entry
* ee
);
8217 void fixup_eventlog_entry( Eventlog_entry
* ee
);
8218 bool parse_logentry( char *line
, Eventlog_entry
* entry
, bool * eor
);
8220 /* The following definitions come from rpc_server/srv_eventlog_nt.c */
8222 NTSTATUS
_eventlog_OpenEventLogW(pipes_struct
*p
,
8223 struct eventlog_OpenEventLogW
*r
);
8224 NTSTATUS
_eventlog_ClearEventLogW(pipes_struct
*p
,
8225 struct eventlog_ClearEventLogW
*r
);
8226 NTSTATUS
_eventlog_CloseEventLog( pipes_struct
* p
, struct eventlog_CloseEventLog
*r
);
8227 NTSTATUS
_eventlog_read_eventlog( pipes_struct
* p
,
8228 EVENTLOG_Q_READ_EVENTLOG
* q_u
,
8229 EVENTLOG_R_READ_EVENTLOG
* r_u
);
8230 NTSTATUS
_eventlog_GetOldestRecord(pipes_struct
*p
,
8231 struct eventlog_GetOldestRecord
*r
);
8232 NTSTATUS
_eventlog_GetNumRecords(pipes_struct
*p
,
8233 struct eventlog_GetNumRecords
*r
);
8234 NTSTATUS
_eventlog_BackupEventLogW(pipes_struct
*p
, struct eventlog_BackupEventLogW
*r
);
8235 NTSTATUS
_eventlog_DeregisterEventSource(pipes_struct
*p
, struct eventlog_DeregisterEventSource
*r
);
8236 NTSTATUS
_eventlog_ChangeNotify(pipes_struct
*p
, struct eventlog_ChangeNotify
*r
);
8237 NTSTATUS
_eventlog_RegisterEventSourceW(pipes_struct
*p
, struct eventlog_RegisterEventSourceW
*r
);
8238 NTSTATUS
_eventlog_OpenBackupEventLogW(pipes_struct
*p
, struct eventlog_OpenBackupEventLogW
*r
);
8239 NTSTATUS
_eventlog_ReadEventLogW(pipes_struct
*p
, struct eventlog_ReadEventLogW
*r
);
8240 NTSTATUS
_eventlog_ReportEventW(pipes_struct
*p
, struct eventlog_ReportEventW
*r
);
8241 NTSTATUS
_eventlog_ClearEventLogA(pipes_struct
*p
, struct eventlog_ClearEventLogA
*r
);
8242 NTSTATUS
_eventlog_BackupEventLogA(pipes_struct
*p
, struct eventlog_BackupEventLogA
*r
);
8243 NTSTATUS
_eventlog_OpenEventLogA(pipes_struct
*p
, struct eventlog_OpenEventLogA
*r
);
8244 NTSTATUS
_eventlog_RegisterEventSourceA(pipes_struct
*p
, struct eventlog_RegisterEventSourceA
*r
);
8245 NTSTATUS
_eventlog_OpenBackupEventLogA(pipes_struct
*p
, struct eventlog_OpenBackupEventLogA
*r
);
8246 NTSTATUS
_eventlog_ReadEventLogA(pipes_struct
*p
, struct eventlog_ReadEventLogA
*r
);
8247 NTSTATUS
_eventlog_ReportEventA(pipes_struct
*p
, struct eventlog_ReportEventA
*r
);
8248 NTSTATUS
_eventlog_RegisterClusterSvc(pipes_struct
*p
, struct eventlog_RegisterClusterSvc
*r
);
8249 NTSTATUS
_eventlog_DeregisterClusterSvc(pipes_struct
*p
, struct eventlog_DeregisterClusterSvc
*r
);
8250 NTSTATUS
_eventlog_WriteClusterEvents(pipes_struct
*p
, struct eventlog_WriteClusterEvents
*r
);
8251 NTSTATUS
_eventlog_GetLogIntormation(pipes_struct
*p
, struct eventlog_GetLogIntormation
*r
);
8252 NTSTATUS
_eventlog_FlushEventLog(pipes_struct
*p
, struct eventlog_FlushEventLog
*r
);
8254 /* The following definitions come from rpc_server/srv_initshutdown_nt.c */
8256 WERROR
_initshutdown_Init(pipes_struct
*p
, struct initshutdown_Init
*r
);
8257 WERROR
_initshutdown_InitEx(pipes_struct
*p
, struct initshutdown_InitEx
*r
);
8258 WERROR
_initshutdown_Abort(pipes_struct
*p
, struct initshutdown_Abort
*r
);
8260 /* The following definitions come from rpc_server/srv_lsa_hnd.c */
8262 bool init_pipe_handle_list(pipes_struct
*p
, const char *pipe_name
);
8263 bool create_policy_hnd(pipes_struct
*p
, POLICY_HND
*hnd
, void (*free_fn
)(void *), void *data_ptr
);
8264 bool find_policy_by_hnd(pipes_struct
*p
, POLICY_HND
*hnd
, void **data_p
);
8265 bool close_policy_hnd(pipes_struct
*p
, POLICY_HND
*hnd
);
8266 void close_policy_by_pipe(pipes_struct
*p
);
8267 bool pipe_access_check(pipes_struct
*p
);
8269 /* The following definitions come from rpc_server/srv_lsa_nt.c */
8271 NTSTATUS
_lsa_OpenPolicy2(pipes_struct
*p
,
8272 struct lsa_OpenPolicy2
*r
);
8273 NTSTATUS
_lsa_OpenPolicy(pipes_struct
*p
,
8274 struct lsa_OpenPolicy
*r
);
8275 NTSTATUS
_lsa_EnumTrustDom(pipes_struct
*p
,
8276 struct lsa_EnumTrustDom
*r
);
8277 NTSTATUS
_lsa_QueryInfoPolicy(pipes_struct
*p
,
8278 struct lsa_QueryInfoPolicy
*r
);
8279 NTSTATUS
_lsa_LookupSids(pipes_struct
*p
,
8280 struct lsa_LookupSids
*r
);
8281 NTSTATUS
_lsa_LookupSids2(pipes_struct
*p
,
8282 struct lsa_LookupSids2
*r
);
8283 NTSTATUS
_lsa_LookupSids3(pipes_struct
*p
,
8284 struct lsa_LookupSids3
*r
);
8285 NTSTATUS
_lsa_LookupNames(pipes_struct
*p
,
8286 struct lsa_LookupNames
*r
);
8287 NTSTATUS
_lsa_LookupNames2(pipes_struct
*p
,
8288 struct lsa_LookupNames2
*r
);
8289 NTSTATUS
_lsa_LookupNames3(pipes_struct
*p
,
8290 struct lsa_LookupNames3
*r
);
8291 NTSTATUS
_lsa_LookupNames4(pipes_struct
*p
,
8292 struct lsa_LookupNames4
*r
);
8293 NTSTATUS
_lsa_Close(pipes_struct
*p
, struct lsa_Close
*r
);
8294 NTSTATUS
_lsa_OpenSecret(pipes_struct
*p
, struct lsa_OpenSecret
*r
);
8295 NTSTATUS
_lsa_OpenTrustedDomain(pipes_struct
*p
, struct lsa_OpenTrustedDomain
*r
);
8296 NTSTATUS
_lsa_CreateTrustedDomain(pipes_struct
*p
, struct lsa_CreateTrustedDomain
*r
);
8297 NTSTATUS
_lsa_CreateSecret(pipes_struct
*p
, struct lsa_CreateSecret
*r
);
8298 NTSTATUS
_lsa_SetSecret(pipes_struct
*p
, struct lsa_SetSecret
*r
);
8299 NTSTATUS
_lsa_DeleteObject(pipes_struct
*p
,
8300 struct lsa_DeleteObject
*r
);
8301 NTSTATUS
_lsa_EnumPrivs(pipes_struct
*p
,
8302 struct lsa_EnumPrivs
*r
);
8303 NTSTATUS
_lsa_LookupPrivDisplayName(pipes_struct
*p
,
8304 struct lsa_LookupPrivDisplayName
*r
);
8305 NTSTATUS
_lsa_EnumAccounts(pipes_struct
*p
,
8306 struct lsa_EnumAccounts
*r
);
8307 NTSTATUS
_lsa_GetUserName(pipes_struct
*p
,
8308 struct lsa_GetUserName
*r
);
8309 NTSTATUS
_lsa_CreateAccount(pipes_struct
*p
,
8310 struct lsa_CreateAccount
*r
);
8311 NTSTATUS
_lsa_OpenAccount(pipes_struct
*p
,
8312 struct lsa_OpenAccount
*r
);
8313 NTSTATUS
_lsa_EnumPrivsAccount(pipes_struct
*p
,
8314 struct lsa_EnumPrivsAccount
*r
);
8315 NTSTATUS
_lsa_GetSystemAccessAccount(pipes_struct
*p
,
8316 struct lsa_GetSystemAccessAccount
*r
);
8317 NTSTATUS
_lsa_SetSystemAccessAccount(pipes_struct
*p
,
8318 struct lsa_SetSystemAccessAccount
*r
);
8319 NTSTATUS
_lsa_AddPrivilegesToAccount(pipes_struct
*p
,
8320 struct lsa_AddPrivilegesToAccount
*r
);
8321 NTSTATUS
_lsa_RemovePrivilegesFromAccount(pipes_struct
*p
,
8322 struct lsa_RemovePrivilegesFromAccount
*r
);
8323 NTSTATUS
_lsa_QuerySecurity(pipes_struct
*p
,
8324 struct lsa_QuerySecurity
*r
);
8325 NTSTATUS
_lsa_AddAccountRights(pipes_struct
*p
,
8326 struct lsa_AddAccountRights
*r
);
8327 NTSTATUS
_lsa_RemoveAccountRights(pipes_struct
*p
,
8328 struct lsa_RemoveAccountRights
*r
);
8329 NTSTATUS
_lsa_EnumAccountRights(pipes_struct
*p
,
8330 struct lsa_EnumAccountRights
*r
);
8331 NTSTATUS
_lsa_LookupPrivValue(pipes_struct
*p
,
8332 struct lsa_LookupPrivValue
*r
);
8333 NTSTATUS
_lsa_Delete(pipes_struct
*p
, struct lsa_Delete
*r
);
8334 NTSTATUS
_lsa_SetSecObj(pipes_struct
*p
, struct lsa_SetSecObj
*r
);
8335 NTSTATUS
_lsa_ChangePassword(pipes_struct
*p
, struct lsa_ChangePassword
*r
);
8336 NTSTATUS
_lsa_SetInfoPolicy(pipes_struct
*p
, struct lsa_SetInfoPolicy
*r
);
8337 NTSTATUS
_lsa_ClearAuditLog(pipes_struct
*p
, struct lsa_ClearAuditLog
*r
);
8338 NTSTATUS
_lsa_GetQuotasForAccount(pipes_struct
*p
, struct lsa_GetQuotasForAccount
*r
);
8339 NTSTATUS
_lsa_SetQuotasForAccount(pipes_struct
*p
, struct lsa_SetQuotasForAccount
*r
);
8340 NTSTATUS
_lsa_QueryTrustedDomainInfo(pipes_struct
*p
, struct lsa_QueryTrustedDomainInfo
*r
);
8341 NTSTATUS
_lsa_SetInformationTrustedDomain(pipes_struct
*p
, struct lsa_SetInformationTrustedDomain
*r
);
8342 NTSTATUS
_lsa_QuerySecret(pipes_struct
*p
, struct lsa_QuerySecret
*r
);
8343 NTSTATUS
_lsa_LookupPrivName(pipes_struct
*p
, struct lsa_LookupPrivName
*r
);
8344 NTSTATUS
_lsa_EnumAccountsWithUserRight(pipes_struct
*p
, struct lsa_EnumAccountsWithUserRight
*r
);
8345 NTSTATUS
_lsa_QueryTrustedDomainInfoBySid(pipes_struct
*p
, struct lsa_QueryTrustedDomainInfoBySid
*r
);
8346 NTSTATUS
_lsa_SetTrustedDomainInfo(pipes_struct
*p
, struct lsa_SetTrustedDomainInfo
*r
);
8347 NTSTATUS
_lsa_DeleteTrustedDomain(pipes_struct
*p
, struct lsa_DeleteTrustedDomain
*r
);
8348 NTSTATUS
_lsa_StorePrivateData(pipes_struct
*p
, struct lsa_StorePrivateData
*r
);
8349 NTSTATUS
_lsa_RetrievePrivateData(pipes_struct
*p
, struct lsa_RetrievePrivateData
*r
);
8350 NTSTATUS
_lsa_QueryInfoPolicy2(pipes_struct
*p
, struct lsa_QueryInfoPolicy2
*r
);
8351 NTSTATUS
_lsa_SetInfoPolicy2(pipes_struct
*p
, struct lsa_SetInfoPolicy2
*r
);
8352 NTSTATUS
_lsa_QueryTrustedDomainInfoByName(pipes_struct
*p
, struct lsa_QueryTrustedDomainInfoByName
*r
);
8353 NTSTATUS
_lsa_SetTrustedDomainInfoByName(pipes_struct
*p
, struct lsa_SetTrustedDomainInfoByName
*r
);
8354 NTSTATUS
_lsa_EnumTrustedDomainsEx(pipes_struct
*p
, struct lsa_EnumTrustedDomainsEx
*r
);
8355 NTSTATUS
_lsa_CreateTrustedDomainEx(pipes_struct
*p
, struct lsa_CreateTrustedDomainEx
*r
);
8356 NTSTATUS
_lsa_CloseTrustedDomainEx(pipes_struct
*p
, struct lsa_CloseTrustedDomainEx
*r
);
8357 NTSTATUS
_lsa_QueryDomainInformationPolicy(pipes_struct
*p
, struct lsa_QueryDomainInformationPolicy
*r
);
8358 NTSTATUS
_lsa_SetDomainInformationPolicy(pipes_struct
*p
, struct lsa_SetDomainInformationPolicy
*r
);
8359 NTSTATUS
_lsa_OpenTrustedDomainByName(pipes_struct
*p
, struct lsa_OpenTrustedDomainByName
*r
);
8360 NTSTATUS
_lsa_TestCall(pipes_struct
*p
, struct lsa_TestCall
*r
);
8361 NTSTATUS
_lsa_CreateTrustedDomainEx2(pipes_struct
*p
, struct lsa_CreateTrustedDomainEx2
*r
);
8362 NTSTATUS
_lsa_CREDRWRITE(pipes_struct
*p
, struct lsa_CREDRWRITE
*r
);
8363 NTSTATUS
_lsa_CREDRREAD(pipes_struct
*p
, struct lsa_CREDRREAD
*r
);
8364 NTSTATUS
_lsa_CREDRENUMERATE(pipes_struct
*p
, struct lsa_CREDRENUMERATE
*r
);
8365 NTSTATUS
_lsa_CREDRWRITEDOMAINCREDENTIALS(pipes_struct
*p
, struct lsa_CREDRWRITEDOMAINCREDENTIALS
*r
);
8366 NTSTATUS
_lsa_CREDRREADDOMAINCREDENTIALS(pipes_struct
*p
, struct lsa_CREDRREADDOMAINCREDENTIALS
*r
);
8367 NTSTATUS
_lsa_CREDRDELETE(pipes_struct
*p
, struct lsa_CREDRDELETE
*r
);
8368 NTSTATUS
_lsa_CREDRGETTARGETINFO(pipes_struct
*p
, struct lsa_CREDRGETTARGETINFO
*r
);
8369 NTSTATUS
_lsa_CREDRPROFILELOADED(pipes_struct
*p
, struct lsa_CREDRPROFILELOADED
*r
);
8370 NTSTATUS
_lsa_CREDRGETSESSIONTYPES(pipes_struct
*p
, struct lsa_CREDRGETSESSIONTYPES
*r
);
8371 NTSTATUS
_lsa_LSARREGISTERAUDITEVENT(pipes_struct
*p
, struct lsa_LSARREGISTERAUDITEVENT
*r
);
8372 NTSTATUS
_lsa_LSARGENAUDITEVENT(pipes_struct
*p
, struct lsa_LSARGENAUDITEVENT
*r
);
8373 NTSTATUS
_lsa_LSARUNREGISTERAUDITEVENT(pipes_struct
*p
, struct lsa_LSARUNREGISTERAUDITEVENT
*r
);
8374 NTSTATUS
_lsa_lsaRQueryForestTrustInformation(pipes_struct
*p
, struct lsa_lsaRQueryForestTrustInformation
*r
);
8375 NTSTATUS
_lsa_LSARSETFORESTTRUSTINFORMATION(pipes_struct
*p
, struct lsa_LSARSETFORESTTRUSTINFORMATION
*r
);
8376 NTSTATUS
_lsa_CREDRRENAME(pipes_struct
*p
, struct lsa_CREDRRENAME
*r
);
8377 NTSTATUS
_lsa_LSAROPENPOLICYSCE(pipes_struct
*p
, struct lsa_LSAROPENPOLICYSCE
*r
);
8378 NTSTATUS
_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(pipes_struct
*p
, struct lsa_LSARADTREGISTERSECURITYEVENTSOURCE
*r
);
8379 NTSTATUS
_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(pipes_struct
*p
, struct lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE
*r
);
8380 NTSTATUS
_lsa_LSARADTREPORTSECURITYEVENT(pipes_struct
*p
, struct lsa_LSARADTREPORTSECURITYEVENT
*r
);
8382 /* The following definitions come from rpc_server/srv_netlog_nt.c */
8384 WERROR
_netr_LogonControl(pipes_struct
*p
,
8385 struct netr_LogonControl
*r
);
8386 WERROR
_netr_LogonControl2(pipes_struct
*p
,
8387 struct netr_LogonControl2
*r
);
8388 WERROR
_netr_NetrEnumerateTrustedDomains(pipes_struct
*p
,
8389 struct netr_NetrEnumerateTrustedDomains
*r
);
8390 NTSTATUS
_netr_ServerReqChallenge(pipes_struct
*p
,
8391 struct netr_ServerReqChallenge
*r
);
8392 NTSTATUS
_netr_ServerAuthenticate(pipes_struct
*p
,
8393 struct netr_ServerAuthenticate
*r
);
8394 NTSTATUS
_netr_ServerAuthenticate2(pipes_struct
*p
,
8395 struct netr_ServerAuthenticate2
*r
);
8396 NTSTATUS
_netr_ServerPasswordSet(pipes_struct
*p
,
8397 struct netr_ServerPasswordSet
*r
);
8398 NTSTATUS
_netr_LogonSamLogoff(pipes_struct
*p
,
8399 struct netr_LogonSamLogoff
*r
);
8400 NTSTATUS
_netr_LogonSamLogon(pipes_struct
*p
,
8401 struct netr_LogonSamLogon
*r
);
8402 NTSTATUS
_netr_LogonSamLogonEx(pipes_struct
*p
,
8403 struct netr_LogonSamLogonEx
*r
);
8404 WERROR
_netr_LogonUasLogon(pipes_struct
*p
,
8405 struct netr_LogonUasLogon
*r
);
8406 WERROR
_netr_LogonUasLogoff(pipes_struct
*p
,
8407 struct netr_LogonUasLogoff
*r
);
8408 NTSTATUS
_netr_DatabaseDeltas(pipes_struct
*p
,
8409 struct netr_DatabaseDeltas
*r
);
8410 NTSTATUS
_netr_DatabaseSync(pipes_struct
*p
,
8411 struct netr_DatabaseSync
*r
);
8412 NTSTATUS
_netr_AccountDeltas(pipes_struct
*p
,
8413 struct netr_AccountDeltas
*r
);
8414 NTSTATUS
_netr_AccountSync(pipes_struct
*p
,
8415 struct netr_AccountSync
*r
);
8416 WERROR
_netr_GetDcName(pipes_struct
*p
,
8417 struct netr_GetDcName
*r
);
8418 WERROR
_netr_GetAnyDCName(pipes_struct
*p
,
8419 struct netr_GetAnyDCName
*r
);
8420 NTSTATUS
_netr_DatabaseSync2(pipes_struct
*p
,
8421 struct netr_DatabaseSync2
*r
);
8422 NTSTATUS
_netr_DatabaseRedo(pipes_struct
*p
,
8423 struct netr_DatabaseRedo
*r
);
8424 WERROR
_netr_LogonControl2Ex(pipes_struct
*p
,
8425 struct netr_LogonControl2Ex
*r
);
8426 WERROR
_netr_DsRGetDCName(pipes_struct
*p
,
8427 struct netr_DsRGetDCName
*r
);
8428 WERROR
_netr_NETRLOGONDUMMYROUTINE1(pipes_struct
*p
,
8429 struct netr_NETRLOGONDUMMYROUTINE1
*r
);
8430 WERROR
_netr_NETRLOGONSETSERVICEBITS(pipes_struct
*p
,
8431 struct netr_NETRLOGONSETSERVICEBITS
*r
);
8432 WERROR
_netr_LogonGetTrustRid(pipes_struct
*p
,
8433 struct netr_LogonGetTrustRid
*r
);
8434 WERROR
_netr_NETRLOGONCOMPUTESERVERDIGEST(pipes_struct
*p
,
8435 struct netr_NETRLOGONCOMPUTESERVERDIGEST
*r
);
8436 WERROR
_netr_NETRLOGONCOMPUTECLIENTDIGEST(pipes_struct
*p
,
8437 struct netr_NETRLOGONCOMPUTECLIENTDIGEST
*r
);
8438 NTSTATUS
_netr_ServerAuthenticate3(pipes_struct
*p
,
8439 struct netr_ServerAuthenticate3
*r
);
8440 WERROR
_netr_DsRGetDCNameEx(pipes_struct
*p
,
8441 struct netr_DsRGetDCNameEx
*r
);
8442 WERROR
_netr_DsRGetSiteName(pipes_struct
*p
,
8443 struct netr_DsRGetSiteName
*r
);
8444 NTSTATUS
_netr_LogonGetDomainInfo(pipes_struct
*p
,
8445 struct netr_LogonGetDomainInfo
*r
);
8446 NTSTATUS
_netr_ServerPasswordSet2(pipes_struct
*p
,
8447 struct netr_ServerPasswordSet2
*r
);
8448 WERROR
_netr_ServerPasswordGet(pipes_struct
*p
,
8449 struct netr_ServerPasswordGet
*r
);
8450 WERROR
_netr_NETRLOGONSENDTOSAM(pipes_struct
*p
,
8451 struct netr_NETRLOGONSENDTOSAM
*r
);
8452 WERROR
_netr_DsRAddressToSitenamesW(pipes_struct
*p
,
8453 struct netr_DsRAddressToSitenamesW
*r
);
8454 WERROR
_netr_DsRGetDCNameEx2(pipes_struct
*p
,
8455 struct netr_DsRGetDCNameEx2
*r
);
8456 WERROR
_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(pipes_struct
*p
,
8457 struct netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN
*r
);
8458 WERROR
_netr_NetrEnumerateTrustedDomainsEx(pipes_struct
*p
,
8459 struct netr_NetrEnumerateTrustedDomainsEx
*r
);
8460 WERROR
_netr_DsRAddressToSitenamesExW(pipes_struct
*p
,
8461 struct netr_DsRAddressToSitenamesExW
*r
);
8462 WERROR
_netr_DsrGetDcSiteCoverageW(pipes_struct
*p
,
8463 struct netr_DsrGetDcSiteCoverageW
*r
);
8464 WERROR
_netr_DsrEnumerateDomainTrusts(pipes_struct
*p
,
8465 struct netr_DsrEnumerateDomainTrusts
*r
);
8466 WERROR
_netr_DsrDeregisterDNSHostRecords(pipes_struct
*p
,
8467 struct netr_DsrDeregisterDNSHostRecords
*r
);
8468 NTSTATUS
_netr_ServerTrustPasswordsGet(pipes_struct
*p
,
8469 struct netr_ServerTrustPasswordsGet
*r
);
8470 WERROR
_netr_DsRGetForestTrustInformation(pipes_struct
*p
,
8471 struct netr_DsRGetForestTrustInformation
*r
);
8472 WERROR
_netr_GetForestTrustInformation(pipes_struct
*p
,
8473 struct netr_GetForestTrustInformation
*r
);
8474 NTSTATUS
_netr_LogonSamLogonWithFlags(pipes_struct
*p
,
8475 struct netr_LogonSamLogonWithFlags
*r
);
8476 WERROR
_netr_NETRSERVERGETTRUSTINFO(pipes_struct
*p
,
8477 struct netr_NETRSERVERGETTRUSTINFO
*r
);
8479 /* The following definitions come from rpc_server/srv_ntsvcs.c */
8481 void ntsvcs2_get_pipe_fns( struct api_struct
**fns
, int *n_fns
);
8482 NTSTATUS
rpc_ntsvcs2_init(void);
8484 /* The following definitions come from rpc_server/srv_ntsvcs_nt.c */
8486 WERROR
_PNP_GetVersion(pipes_struct
*p
,
8487 struct PNP_GetVersion
*r
);
8488 WERROR
_PNP_GetDeviceListSize(pipes_struct
*p
,
8489 struct PNP_GetDeviceListSize
*r
);
8490 WERROR
_ntsvcs_get_device_list( pipes_struct
*p
, NTSVCS_Q_GET_DEVICE_LIST
*q_u
, NTSVCS_R_GET_DEVICE_LIST
*r_u
);
8491 WERROR
_ntsvcs_get_device_reg_property( pipes_struct
*p
, NTSVCS_Q_GET_DEVICE_REG_PROPERTY
*q_u
, NTSVCS_R_GET_DEVICE_REG_PROPERTY
*r_u
);
8492 WERROR
_PNP_ValidateDeviceInstance(pipes_struct
*p
,
8493 struct PNP_ValidateDeviceInstance
*r
);
8494 WERROR
_PNP_GetHwProfInfo(pipes_struct
*p
,
8495 struct PNP_GetHwProfInfo
*r
);
8496 WERROR
_PNP_HwProfFlags(pipes_struct
*p
,
8497 struct PNP_HwProfFlags
*r
);
8498 WERROR
_PNP_Disconnect(pipes_struct
*p
,
8499 struct PNP_Disconnect
*r
);
8500 WERROR
_PNP_Connect(pipes_struct
*p
,
8501 struct PNP_Connect
*r
);
8502 WERROR
_PNP_GetGlobalState(pipes_struct
*p
,
8503 struct PNP_GetGlobalState
*r
);
8504 WERROR
_PNP_InitDetection(pipes_struct
*p
,
8505 struct PNP_InitDetection
*r
);
8506 WERROR
_PNP_ReportLogOn(pipes_struct
*p
,
8507 struct PNP_ReportLogOn
*r
);
8508 WERROR
_PNP_GetRootDeviceInstance(pipes_struct
*p
,
8509 struct PNP_GetRootDeviceInstance
*r
);
8510 WERROR
_PNP_GetRelatedDeviceInstance(pipes_struct
*p
,
8511 struct PNP_GetRelatedDeviceInstance
*r
);
8512 WERROR
_PNP_EnumerateSubKeys(pipes_struct
*p
,
8513 struct PNP_EnumerateSubKeys
*r
);
8514 WERROR
_PNP_GetDeviceList(pipes_struct
*p
,
8515 struct PNP_GetDeviceList
*r
);
8516 WERROR
_PNP_GetDepth(pipes_struct
*p
,
8517 struct PNP_GetDepth
*r
);
8518 WERROR
_PNP_GetDeviceRegProp(pipes_struct
*p
,
8519 struct PNP_GetDeviceRegProp
*r
);
8520 WERROR
_PNP_SetDeviceRegProp(pipes_struct
*p
,
8521 struct PNP_SetDeviceRegProp
*r
);
8522 WERROR
_PNP_GetClassInstance(pipes_struct
*p
,
8523 struct PNP_GetClassInstance
*r
);
8524 WERROR
_PNP_CreateKey(pipes_struct
*p
,
8525 struct PNP_CreateKey
*r
);
8526 WERROR
_PNP_DeleteRegistryKey(pipes_struct
*p
,
8527 struct PNP_DeleteRegistryKey
*r
);
8528 WERROR
_PNP_GetClassCount(pipes_struct
*p
,
8529 struct PNP_GetClassCount
*r
);
8530 WERROR
_PNP_GetClassName(pipes_struct
*p
,
8531 struct PNP_GetClassName
*r
);
8532 WERROR
_PNP_DeleteClassKey(pipes_struct
*p
,
8533 struct PNP_DeleteClassKey
*r
);
8534 WERROR
_PNP_GetInterfaceDeviceAlias(pipes_struct
*p
,
8535 struct PNP_GetInterfaceDeviceAlias
*r
);
8536 WERROR
_PNP_GetInterfaceDeviceList(pipes_struct
*p
,
8537 struct PNP_GetInterfaceDeviceList
*r
);
8538 WERROR
_PNP_GetInterfaceDeviceListSize(pipes_struct
*p
,
8539 struct PNP_GetInterfaceDeviceListSize
*r
);
8540 WERROR
_PNP_RegisterDeviceClassAssociation(pipes_struct
*p
,
8541 struct PNP_RegisterDeviceClassAssociation
*r
);
8542 WERROR
_PNP_UnregisterDeviceClassAssociation(pipes_struct
*p
,
8543 struct PNP_UnregisterDeviceClassAssociation
*r
);
8544 WERROR
_PNP_GetClassRegProp(pipes_struct
*p
,
8545 struct PNP_GetClassRegProp
*r
);
8546 WERROR
_PNP_SetClassRegProp(pipes_struct
*p
,
8547 struct PNP_SetClassRegProp
*r
);
8548 WERROR
_PNP_CreateDevInst(pipes_struct
*p
,
8549 struct PNP_CreateDevInst
*r
);
8550 WERROR
_PNP_DeviceInstanceAction(pipes_struct
*p
,
8551 struct PNP_DeviceInstanceAction
*r
);
8552 WERROR
_PNP_GetDeviceStatus(pipes_struct
*p
,
8553 struct PNP_GetDeviceStatus
*r
);
8554 WERROR
_PNP_SetDeviceProblem(pipes_struct
*p
,
8555 struct PNP_SetDeviceProblem
*r
);
8556 WERROR
_PNP_DisableDevInst(pipes_struct
*p
,
8557 struct PNP_DisableDevInst
*r
);
8558 WERROR
_PNP_UninstallDevInst(pipes_struct
*p
,
8559 struct PNP_UninstallDevInst
*r
);
8560 WERROR
_PNP_AddID(pipes_struct
*p
,
8561 struct PNP_AddID
*r
);
8562 WERROR
_PNP_RegisterDriver(pipes_struct
*p
,
8563 struct PNP_RegisterDriver
*r
);
8564 WERROR
_PNP_QueryRemove(pipes_struct
*p
,
8565 struct PNP_QueryRemove
*r
);
8566 WERROR
_PNP_RequestDeviceEject(pipes_struct
*p
,
8567 struct PNP_RequestDeviceEject
*r
);
8568 WERROR
_PNP_IsDockStationPresent(pipes_struct
*p
,
8569 struct PNP_IsDockStationPresent
*r
);
8570 WERROR
_PNP_RequestEjectPC(pipes_struct
*p
,
8571 struct PNP_RequestEjectPC
*r
);
8572 WERROR
_PNP_AddEmptyLogConf(pipes_struct
*p
,
8573 struct PNP_AddEmptyLogConf
*r
);
8574 WERROR
_PNP_FreeLogConf(pipes_struct
*p
,
8575 struct PNP_FreeLogConf
*r
);
8576 WERROR
_PNP_GetFirstLogConf(pipes_struct
*p
,
8577 struct PNP_GetFirstLogConf
*r
);
8578 WERROR
_PNP_GetNextLogConf(pipes_struct
*p
,
8579 struct PNP_GetNextLogConf
*r
);
8580 WERROR
_PNP_GetLogConfPriority(pipes_struct
*p
,
8581 struct PNP_GetLogConfPriority
*r
);
8582 WERROR
_PNP_AddResDes(pipes_struct
*p
,
8583 struct PNP_AddResDes
*r
);
8584 WERROR
_PNP_FreeResDes(pipes_struct
*p
,
8585 struct PNP_FreeResDes
*r
);
8586 WERROR
_PNP_GetNextResDes(pipes_struct
*p
,
8587 struct PNP_GetNextResDes
*r
);
8588 WERROR
_PNP_GetResDesData(pipes_struct
*p
,
8589 struct PNP_GetResDesData
*r
);
8590 WERROR
_PNP_GetResDesDataSize(pipes_struct
*p
,
8591 struct PNP_GetResDesDataSize
*r
);
8592 WERROR
_PNP_ModifyResDes(pipes_struct
*p
,
8593 struct PNP_ModifyResDes
*r
);
8594 WERROR
_PNP_DetectResourceLimit(pipes_struct
*p
,
8595 struct PNP_DetectResourceLimit
*r
);
8596 WERROR
_PNP_QueryResConfList(pipes_struct
*p
,
8597 struct PNP_QueryResConfList
*r
);
8598 WERROR
_PNP_SetHwProf(pipes_struct
*p
,
8599 struct PNP_SetHwProf
*r
);
8600 WERROR
_PNP_QueryArbitratorFreeData(pipes_struct
*p
,
8601 struct PNP_QueryArbitratorFreeData
*r
);
8602 WERROR
_PNP_QueryArbitratorFreeSize(pipes_struct
*p
,
8603 struct PNP_QueryArbitratorFreeSize
*r
);
8604 WERROR
_PNP_RunDetection(pipes_struct
*p
,
8605 struct PNP_RunDetection
*r
);
8606 WERROR
_PNP_RegisterNotification(pipes_struct
*p
,
8607 struct PNP_RegisterNotification
*r
);
8608 WERROR
_PNP_UnregisterNotification(pipes_struct
*p
,
8609 struct PNP_UnregisterNotification
*r
);
8610 WERROR
_PNP_GetCustomDevProp(pipes_struct
*p
,
8611 struct PNP_GetCustomDevProp
*r
);
8612 WERROR
_PNP_GetVersionInternal(pipes_struct
*p
,
8613 struct PNP_GetVersionInternal
*r
);
8614 WERROR
_PNP_GetBlockedDriverInfo(pipes_struct
*p
,
8615 struct PNP_GetBlockedDriverInfo
*r
);
8616 WERROR
_PNP_GetServerSideDeviceInstallFlags(pipes_struct
*p
,
8617 struct PNP_GetServerSideDeviceInstallFlags
*r
);
8619 /* The following definitions come from rpc_server/srv_pipe.c */
8621 bool create_next_pdu(pipes_struct
*p
);
8622 bool api_pipe_bind_auth3(pipes_struct
*p
, prs_struct
*rpc_in_p
);
8623 bool setup_fault_pdu(pipes_struct
*p
, NTSTATUS status
);
8624 bool setup_cancel_ack_reply(pipes_struct
*p
, prs_struct
*rpc_in_p
);
8625 bool check_bind_req(struct pipes_struct
*p
, RPC_IFACE
* abstract
,
8626 RPC_IFACE
* transfer
, uint32 context_id
);
8627 NTSTATUS
rpc_pipe_register_commands(int version
, const char *clnt
, const char *srv
, const struct api_struct
*cmds
, int size
);
8628 bool api_pipe_bind_req(pipes_struct
*p
, prs_struct
*rpc_in_p
);
8629 bool api_pipe_alter_context(pipes_struct
*p
, prs_struct
*rpc_in_p
);
8630 bool api_pipe_ntlmssp_auth_process(pipes_struct
*p
, prs_struct
*rpc_in
,
8631 uint32
*p_ss_padding_len
, NTSTATUS
*pstatus
);
8632 bool api_pipe_schannel_process(pipes_struct
*p
, prs_struct
*rpc_in
, uint32
*p_ss_padding_len
);
8633 struct current_user
*get_current_user(struct current_user
*user
, pipes_struct
*p
);
8634 void free_pipe_rpc_context( PIPE_RPC_FNS
*list
);
8635 bool api_pipe_request(pipes_struct
*p
);
8636 bool api_rpcTNP(pipes_struct
*p
, const char *rpc_name
,
8637 const struct api_struct
*api_rpc_cmds
, int n_cmds
);
8638 void get_pipe_fns( int idx
, struct api_struct
**fns
, int *n_fns
);
8640 /* The following definitions come from rpc_server/srv_pipe_hnd.c */
8642 pipes_struct
*get_first_internal_pipe(void);
8643 pipes_struct
*get_next_internal_pipe(pipes_struct
*p
);
8644 void set_pipe_handle_offset(int max_open_files
);
8645 void reset_chain_p(void);
8646 void init_rpc_pipe_hnd(void);
8647 smb_np_struct
*open_rpc_pipe_p(const char *pipe_name
,
8648 connection_struct
*conn
, uint16 vuid
);
8649 ssize_t
write_to_pipe(smb_np_struct
*p
, char *data
, size_t n
);
8650 ssize_t
read_from_pipe(smb_np_struct
*p
, char *data
, size_t n
,
8651 bool *is_data_outstanding
);
8652 bool wait_rpc_pipe_hnd_state(smb_np_struct
*p
, uint16 priority
);
8653 bool set_rpc_pipe_hnd_state(smb_np_struct
*p
, uint16 device_state
);
8654 bool close_rpc_pipe_hnd(smb_np_struct
*p
);
8655 void pipe_close_conn(connection_struct
*conn
);
8656 smb_np_struct
*get_rpc_pipe_p(uint16 pnum
);
8657 smb_np_struct
*get_rpc_pipe(int pnum
);
8659 /* The following definitions come from rpc_server/srv_samr_nt.c */
8661 NTSTATUS
_samr_Close(pipes_struct
*p
, struct samr_Close
*r
);
8662 NTSTATUS
_samr_OpenDomain(pipes_struct
*p
,
8663 struct samr_OpenDomain
*r
);
8664 NTSTATUS
_samr_GetUserPwInfo(pipes_struct
*p
,
8665 struct samr_GetUserPwInfo
*r
);
8666 NTSTATUS
_samr_SetSecurity(pipes_struct
*p
,
8667 struct samr_SetSecurity
*r
);
8668 NTSTATUS
_samr_QuerySecurity(pipes_struct
*p
,
8669 struct samr_QuerySecurity
*r
);
8670 NTSTATUS
_samr_EnumDomainUsers(pipes_struct
*p
,
8671 struct samr_EnumDomainUsers
*r
);
8672 NTSTATUS
_samr_EnumDomainGroups(pipes_struct
*p
,
8673 struct samr_EnumDomainGroups
*r
);
8674 NTSTATUS
_samr_EnumDomainAliases(pipes_struct
*p
,
8675 struct samr_EnumDomainAliases
*r
);
8676 NTSTATUS
_samr_QueryDisplayInfo(pipes_struct
*p
,
8677 struct samr_QueryDisplayInfo
*r
);
8678 NTSTATUS
_samr_QueryDisplayInfo2(pipes_struct
*p
,
8679 struct samr_QueryDisplayInfo2
*r
);
8680 NTSTATUS
_samr_QueryDisplayInfo3(pipes_struct
*p
,
8681 struct samr_QueryDisplayInfo3
*r
);
8682 NTSTATUS
_samr_QueryAliasInfo(pipes_struct
*p
,
8683 struct samr_QueryAliasInfo
*r
);
8684 NTSTATUS
_samr_LookupNames(pipes_struct
*p
,
8685 struct samr_LookupNames
*r
);
8686 NTSTATUS
_samr_ChangePasswordUser2(pipes_struct
*p
,
8687 struct samr_ChangePasswordUser2
*r
);
8688 NTSTATUS
_samr_ChangePasswordUser3(pipes_struct
*p
,
8689 struct samr_ChangePasswordUser3
*r
);
8690 NTSTATUS
_samr_LookupRids(pipes_struct
*p
,
8691 struct samr_LookupRids
*r
);
8692 NTSTATUS
_samr_OpenUser(pipes_struct
*p
,
8693 struct samr_OpenUser
*r
);
8694 NTSTATUS
_samr_QueryUserInfo(pipes_struct
*p
,
8695 struct samr_QueryUserInfo
*r
);
8696 NTSTATUS
_samr_GetGroupsForUser(pipes_struct
*p
,
8697 struct samr_GetGroupsForUser
*r
);
8698 NTSTATUS
_samr_QueryDomainInfo(pipes_struct
*p
,
8699 struct samr_QueryDomainInfo
*r
);
8700 NTSTATUS
_samr_CreateUser2(pipes_struct
*p
,
8701 struct samr_CreateUser2
*r
);
8702 NTSTATUS
_samr_Connect(pipes_struct
*p
,
8703 struct samr_Connect
*r
);
8704 NTSTATUS
_samr_Connect2(pipes_struct
*p
,
8705 struct samr_Connect2
*r
);
8706 NTSTATUS
_samr_Connect4(pipes_struct
*p
,
8707 struct samr_Connect4
*r
);
8708 NTSTATUS
_samr_Connect5(pipes_struct
*p
,
8709 struct samr_Connect5
*r
);
8710 NTSTATUS
_samr_LookupDomain(pipes_struct
*p
,
8711 struct samr_LookupDomain
*r
);
8712 NTSTATUS
_samr_EnumDomains(pipes_struct
*p
,
8713 struct samr_EnumDomains
*r
);
8714 NTSTATUS
_samr_OpenAlias(pipes_struct
*p
,
8715 struct samr_OpenAlias
*r
);
8716 NTSTATUS
_samr_SetUserInfo(pipes_struct
*p
,
8717 struct samr_SetUserInfo
*r
);
8718 NTSTATUS
_samr_SetUserInfo2(pipes_struct
*p
,
8719 struct samr_SetUserInfo2
*r
);
8720 NTSTATUS
_samr_GetAliasMembership(pipes_struct
*p
,
8721 struct samr_GetAliasMembership
*r
);
8722 NTSTATUS
_samr_GetMembersInAlias(pipes_struct
*p
,
8723 struct samr_GetMembersInAlias
*r
);
8724 NTSTATUS
_samr_QueryGroupMember(pipes_struct
*p
,
8725 struct samr_QueryGroupMember
*r
);
8726 NTSTATUS
_samr_AddAliasMember(pipes_struct
*p
,
8727 struct samr_AddAliasMember
*r
);
8728 NTSTATUS
_samr_DeleteAliasMember(pipes_struct
*p
,
8729 struct samr_DeleteAliasMember
*r
);
8730 NTSTATUS
_samr_AddGroupMember(pipes_struct
*p
,
8731 struct samr_AddGroupMember
*r
);
8732 NTSTATUS
_samr_DeleteGroupMember(pipes_struct
*p
,
8733 struct samr_DeleteGroupMember
*r
);
8734 NTSTATUS
_samr_DeleteUser(pipes_struct
*p
,
8735 struct samr_DeleteUser
*r
);
8736 NTSTATUS
_samr_DeleteDomainGroup(pipes_struct
*p
,
8737 struct samr_DeleteDomainGroup
*r
);
8738 NTSTATUS
_samr_DeleteDomAlias(pipes_struct
*p
,
8739 struct samr_DeleteDomAlias
*r
);
8740 NTSTATUS
_samr_CreateDomainGroup(pipes_struct
*p
,
8741 struct samr_CreateDomainGroup
*r
);
8742 NTSTATUS
_samr_CreateDomAlias(pipes_struct
*p
,
8743 struct samr_CreateDomAlias
*r
);
8744 NTSTATUS
_samr_QueryGroupInfo(pipes_struct
*p
,
8745 struct samr_QueryGroupInfo
*r
);
8746 NTSTATUS
_samr_SetGroupInfo(pipes_struct
*p
,
8747 struct samr_SetGroupInfo
*r
);
8748 NTSTATUS
_samr_SetAliasInfo(pipes_struct
*p
,
8749 struct samr_SetAliasInfo
*r
);
8750 NTSTATUS
_samr_GetDomPwInfo(pipes_struct
*p
,
8751 struct samr_GetDomPwInfo
*r
);
8752 NTSTATUS
_samr_OpenGroup(pipes_struct
*p
,
8753 struct samr_OpenGroup
*r
);
8754 NTSTATUS
_samr_RemoveMemberFromForeignDomain(pipes_struct
*p
,
8755 struct samr_RemoveMemberFromForeignDomain
*r
);
8756 NTSTATUS
_samr_QueryDomainInfo2(pipes_struct
*p
,
8757 struct samr_QueryDomainInfo2
*r
);
8758 NTSTATUS
_samr_SetDomainInfo(pipes_struct
*p
,
8759 struct samr_SetDomainInfo
*r
);
8760 NTSTATUS
_samr_GetDisplayEnumerationIndex(pipes_struct
*p
,
8761 struct samr_GetDisplayEnumerationIndex
*r
);
8762 NTSTATUS
_samr_GetDisplayEnumerationIndex2(pipes_struct
*p
,
8763 struct samr_GetDisplayEnumerationIndex2
*r
);
8764 NTSTATUS
_samr_Shutdown(pipes_struct
*p
,
8765 struct samr_Shutdown
*r
);
8766 NTSTATUS
_samr_CreateUser(pipes_struct
*p
,
8767 struct samr_CreateUser
*r
);
8768 NTSTATUS
_samr_SetMemberAttributesOfGroup(pipes_struct
*p
,
8769 struct samr_SetMemberAttributesOfGroup
*r
);
8770 NTSTATUS
_samr_ChangePasswordUser(pipes_struct
*p
,
8771 struct samr_ChangePasswordUser
*r
);
8772 NTSTATUS
_samr_TestPrivateFunctionsDomain(pipes_struct
*p
,
8773 struct samr_TestPrivateFunctionsDomain
*r
);
8774 NTSTATUS
_samr_TestPrivateFunctionsUser(pipes_struct
*p
,
8775 struct samr_TestPrivateFunctionsUser
*r
);
8776 NTSTATUS
_samr_QueryUserInfo2(pipes_struct
*p
,
8777 struct samr_QueryUserInfo2
*r
);
8778 NTSTATUS
_samr_AddMultipleMembersToAlias(pipes_struct
*p
,
8779 struct samr_AddMultipleMembersToAlias
*r
);
8780 NTSTATUS
_samr_RemoveMultipleMembersFromAlias(pipes_struct
*p
,
8781 struct samr_RemoveMultipleMembersFromAlias
*r
);
8782 NTSTATUS
_samr_OemChangePasswordUser2(pipes_struct
*p
,
8783 struct samr_OemChangePasswordUser2
*r
);
8784 NTSTATUS
_samr_SetBootKeyInformation(pipes_struct
*p
,
8785 struct samr_SetBootKeyInformation
*r
);
8786 NTSTATUS
_samr_GetBootKeyInformation(pipes_struct
*p
,
8787 struct samr_GetBootKeyInformation
*r
);
8788 NTSTATUS
_samr_Connect3(pipes_struct
*p
,
8789 struct samr_Connect3
*r
);
8790 NTSTATUS
_samr_RidToSid(pipes_struct
*p
,
8791 struct samr_RidToSid
*r
);
8792 NTSTATUS
_samr_SetDsrmPassword(pipes_struct
*p
,
8793 struct samr_SetDsrmPassword
*r
);
8794 NTSTATUS
_samr_ValidatePassword(pipes_struct
*p
,
8795 struct samr_ValidatePassword
*r
);
8797 /* The following definitions come from rpc_server/srv_samr_util.c */
8799 void copy_id20_to_sam_passwd(struct samu
*to
,
8800 struct samr_UserInfo20
*from
);
8801 void copy_id21_to_sam_passwd(const char *log_prefix
,
8803 struct samr_UserInfo21
*from
);
8804 void copy_id23_to_sam_passwd(struct samu
*to
,
8805 struct samr_UserInfo23
*from
);
8806 void copy_id25_to_sam_passwd(struct samu
*to
,
8807 struct samr_UserInfo25
*from
);
8809 /* The following definitions come from rpc_server/srv_spoolss.c */
8811 void spoolss_get_pipe_fns( struct api_struct
**fns
, int *n_fns
);
8812 NTSTATUS
rpc_spoolss_init(void);
8814 /* The following definitions come from rpc_server/srv_spoolss_nt.c */
8816 WERROR
delete_printer_hook(TALLOC_CTX
*ctx
, NT_USER_TOKEN
*token
, const char *sharename
);
8817 void do_drv_upgrade_printer(struct messaging_context
*msg
,
8820 struct server_id server_id
,
8822 void update_monitored_printq_cache( void );
8823 void reset_all_printerdata(struct messaging_context
*msg
,
8826 struct server_id server_id
,
8828 WERROR
_spoolss_open_printer(pipes_struct
*p
, SPOOL_Q_OPEN_PRINTER
*q_u
, SPOOL_R_OPEN_PRINTER
*r_u
);
8829 WERROR
_spoolss_open_printer_ex( pipes_struct
*p
, SPOOL_Q_OPEN_PRINTER_EX
*q_u
, SPOOL_R_OPEN_PRINTER_EX
*r_u
);
8830 bool convert_devicemode(const char *printername
, const DEVICEMODE
*devmode
,
8831 NT_DEVICEMODE
**pp_nt_devmode
);
8832 WERROR
_spoolss_closeprinter(pipes_struct
*p
, SPOOL_Q_CLOSEPRINTER
*q_u
, SPOOL_R_CLOSEPRINTER
*r_u
);
8833 WERROR
_spoolss_deleteprinter(pipes_struct
*p
, SPOOL_Q_DELETEPRINTER
*q_u
, SPOOL_R_DELETEPRINTER
*r_u
);
8834 WERROR
_spoolss_deleteprinterdriver(pipes_struct
*p
, SPOOL_Q_DELETEPRINTERDRIVER
*q_u
, SPOOL_R_DELETEPRINTERDRIVER
*r_u
);
8835 WERROR
_spoolss_deleteprinterdriverex(pipes_struct
*p
, SPOOL_Q_DELETEPRINTERDRIVEREX
*q_u
, SPOOL_R_DELETEPRINTERDRIVEREX
*r_u
);
8836 WERROR
set_printer_dataex( NT_PRINTER_INFO_LEVEL
*printer
, const char *key
, const char *value
,
8837 uint32 type
, uint8
*data
, int real_len
);
8838 WERROR
_spoolss_getprinterdata(pipes_struct
*p
, SPOOL_Q_GETPRINTERDATA
*q_u
, SPOOL_R_GETPRINTERDATA
*r_u
);
8839 WERROR
_spoolss_rffpcnex(pipes_struct
*p
, SPOOL_Q_RFFPCNEX
*q_u
, SPOOL_R_RFFPCNEX
*r_u
);
8840 void spoolss_notify_server_name(int snum
,
8841 SPOOL_NOTIFY_INFO_DATA
*data
,
8842 print_queue_struct
*queue
,
8843 NT_PRINTER_INFO_LEVEL
*printer
,
8844 TALLOC_CTX
*mem_ctx
);
8845 void spoolss_notify_printer_name(int snum
,
8846 SPOOL_NOTIFY_INFO_DATA
*data
,
8847 print_queue_struct
*queue
,
8848 NT_PRINTER_INFO_LEVEL
*printer
,
8849 TALLOC_CTX
*mem_ctx
);
8850 void spoolss_notify_share_name(int snum
,
8851 SPOOL_NOTIFY_INFO_DATA
*data
,
8852 print_queue_struct
*queue
,
8853 NT_PRINTER_INFO_LEVEL
*printer
,
8854 TALLOC_CTX
*mem_ctx
);
8855 void spoolss_notify_port_name(int snum
,
8856 SPOOL_NOTIFY_INFO_DATA
*data
,
8857 print_queue_struct
*queue
,
8858 NT_PRINTER_INFO_LEVEL
*printer
,
8859 TALLOC_CTX
*mem_ctx
);
8860 void spoolss_notify_driver_name(int snum
,
8861 SPOOL_NOTIFY_INFO_DATA
*data
,
8862 print_queue_struct
*queue
,
8863 NT_PRINTER_INFO_LEVEL
*printer
,
8864 TALLOC_CTX
*mem_ctx
);
8865 void spoolss_notify_comment(int snum
,
8866 SPOOL_NOTIFY_INFO_DATA
*data
,
8867 print_queue_struct
*queue
,
8868 NT_PRINTER_INFO_LEVEL
*printer
,
8869 TALLOC_CTX
*mem_ctx
);
8870 void spoolss_notify_location(int snum
,
8871 SPOOL_NOTIFY_INFO_DATA
*data
,
8872 print_queue_struct
*queue
,
8873 NT_PRINTER_INFO_LEVEL
*printer
,
8874 TALLOC_CTX
*mem_ctx
);
8875 void spoolss_notify_sepfile(int snum
,
8876 SPOOL_NOTIFY_INFO_DATA
*data
,
8877 print_queue_struct
*queue
,
8878 NT_PRINTER_INFO_LEVEL
*printer
,
8879 TALLOC_CTX
*mem_ctx
);
8880 void spoolss_notify_print_processor(int snum
,
8881 SPOOL_NOTIFY_INFO_DATA
*data
,
8882 print_queue_struct
*queue
,
8883 NT_PRINTER_INFO_LEVEL
*printer
,
8884 TALLOC_CTX
*mem_ctx
);
8885 void spoolss_notify_parameters(int snum
,
8886 SPOOL_NOTIFY_INFO_DATA
*data
,
8887 print_queue_struct
*queue
,
8888 NT_PRINTER_INFO_LEVEL
*printer
,
8889 TALLOC_CTX
*mem_ctx
);
8890 void spoolss_notify_datatype(int snum
,
8891 SPOOL_NOTIFY_INFO_DATA
*data
,
8892 print_queue_struct
*queue
,
8893 NT_PRINTER_INFO_LEVEL
*printer
,
8894 TALLOC_CTX
*mem_ctx
);
8895 void spoolss_notify_attributes(int snum
,
8896 SPOOL_NOTIFY_INFO_DATA
*data
,
8897 print_queue_struct
*queue
,
8898 NT_PRINTER_INFO_LEVEL
*printer
,
8899 TALLOC_CTX
*mem_ctx
);
8900 void spoolss_notify_cjobs(int snum
,
8901 SPOOL_NOTIFY_INFO_DATA
*data
,
8902 print_queue_struct
*queue
,
8903 NT_PRINTER_INFO_LEVEL
*printer
,
8904 TALLOC_CTX
*mem_ctx
);
8905 void construct_info_data(SPOOL_NOTIFY_INFO_DATA
*info_data
, uint16 type
, uint16 field
, int id
);
8906 WERROR
_spoolss_rfnpcnex( pipes_struct
*p
, SPOOL_Q_RFNPCNEX
*q_u
, SPOOL_R_RFNPCNEX
*r_u
);
8907 DEVICEMODE
*construct_dev_mode(const char *servicename
);
8908 WERROR
_spoolss_enumprinters( pipes_struct
*p
, SPOOL_Q_ENUMPRINTERS
*q_u
, SPOOL_R_ENUMPRINTERS
*r_u
);
8909 WERROR
_spoolss_getprinter(pipes_struct
*p
, SPOOL_Q_GETPRINTER
*q_u
, SPOOL_R_GETPRINTER
*r_u
);
8910 WERROR
_spoolss_getprinterdriver2(pipes_struct
*p
, SPOOL_Q_GETPRINTERDRIVER2
*q_u
, SPOOL_R_GETPRINTERDRIVER2
*r_u
);
8911 WERROR
_spoolss_startpageprinter(pipes_struct
*p
, SPOOL_Q_STARTPAGEPRINTER
*q_u
, SPOOL_R_STARTPAGEPRINTER
*r_u
);
8912 WERROR
_spoolss_endpageprinter(pipes_struct
*p
, SPOOL_Q_ENDPAGEPRINTER
*q_u
, SPOOL_R_ENDPAGEPRINTER
*r_u
);
8913 WERROR
_spoolss_startdocprinter(pipes_struct
*p
, SPOOL_Q_STARTDOCPRINTER
*q_u
, SPOOL_R_STARTDOCPRINTER
*r_u
);
8914 WERROR
_spoolss_enddocprinter(pipes_struct
*p
, SPOOL_Q_ENDDOCPRINTER
*q_u
, SPOOL_R_ENDDOCPRINTER
*r_u
);
8915 WERROR
_spoolss_writeprinter(pipes_struct
*p
, SPOOL_Q_WRITEPRINTER
*q_u
, SPOOL_R_WRITEPRINTER
*r_u
);
8916 WERROR
_spoolss_abortprinter(pipes_struct
*p
, SPOOL_Q_ABORTPRINTER
*q_u
, SPOOL_R_ABORTPRINTER
*r_u
);
8917 WERROR
add_port_hook(TALLOC_CTX
*ctx
, NT_USER_TOKEN
*token
, const char *portname
, const char *uri
);
8918 bool add_printer_hook(TALLOC_CTX
*ctx
, NT_USER_TOKEN
*token
, NT_PRINTER_INFO_LEVEL
*printer
);
8919 WERROR
_spoolss_setprinter(pipes_struct
*p
, SPOOL_Q_SETPRINTER
*q_u
, SPOOL_R_SETPRINTER
*r_u
);
8920 WERROR
_spoolss_fcpn(pipes_struct
*p
, SPOOL_Q_FCPN
*q_u
, SPOOL_R_FCPN
*r_u
);
8921 WERROR
_spoolss_addjob(pipes_struct
*p
, SPOOL_Q_ADDJOB
*q_u
, SPOOL_R_ADDJOB
*r_u
);
8922 WERROR
_spoolss_enumjobs( pipes_struct
*p
, SPOOL_Q_ENUMJOBS
*q_u
, SPOOL_R_ENUMJOBS
*r_u
);
8923 WERROR
_spoolss_schedulejob( pipes_struct
*p
, SPOOL_Q_SCHEDULEJOB
*q_u
, SPOOL_R_SCHEDULEJOB
*r_u
);
8924 WERROR
_spoolss_setjob(pipes_struct
*p
, SPOOL_Q_SETJOB
*q_u
, SPOOL_R_SETJOB
*r_u
);
8925 WERROR
_spoolss_enumprinterdrivers( pipes_struct
*p
, SPOOL_Q_ENUMPRINTERDRIVERS
*q_u
, SPOOL_R_ENUMPRINTERDRIVERS
*r_u
);
8926 WERROR
_spoolss_enumforms(pipes_struct
*p
, SPOOL_Q_ENUMFORMS
*q_u
, SPOOL_R_ENUMFORMS
*r_u
);
8927 WERROR
_spoolss_getform(pipes_struct
*p
, SPOOL_Q_GETFORM
*q_u
, SPOOL_R_GETFORM
*r_u
);
8928 WERROR
enumports_hook(TALLOC_CTX
*ctx
, int *count
, char ***lines
);
8929 WERROR
_spoolss_enumports( pipes_struct
*p
, SPOOL_Q_ENUMPORTS
*q_u
, SPOOL_R_ENUMPORTS
*r_u
);
8930 WERROR
_spoolss_addprinterex( pipes_struct
*p
, SPOOL_Q_ADDPRINTEREX
*q_u
, SPOOL_R_ADDPRINTEREX
*r_u
);
8931 WERROR
_spoolss_addprinterdriver(pipes_struct
*p
, SPOOL_Q_ADDPRINTERDRIVER
*q_u
, SPOOL_R_ADDPRINTERDRIVER
*r_u
);
8932 WERROR
_spoolss_addprinterdriverex(pipes_struct
*p
, SPOOL_Q_ADDPRINTERDRIVEREX
*q_u
, SPOOL_R_ADDPRINTERDRIVEREX
*r_u
);
8933 WERROR
_spoolss_getprinterdriverdirectory(pipes_struct
*p
, SPOOL_Q_GETPRINTERDRIVERDIR
*q_u
, SPOOL_R_GETPRINTERDRIVERDIR
*r_u
);
8934 WERROR
_spoolss_enumprinterdata(pipes_struct
*p
, SPOOL_Q_ENUMPRINTERDATA
*q_u
, SPOOL_R_ENUMPRINTERDATA
*r_u
);
8935 WERROR
_spoolss_setprinterdata( pipes_struct
*p
, SPOOL_Q_SETPRINTERDATA
*q_u
, SPOOL_R_SETPRINTERDATA
*r_u
);
8936 WERROR
_spoolss_resetprinter(pipes_struct
*p
, SPOOL_Q_RESETPRINTER
*q_u
, SPOOL_R_RESETPRINTER
*r_u
);
8937 WERROR
_spoolss_deleteprinterdata(pipes_struct
*p
, SPOOL_Q_DELETEPRINTERDATA
*q_u
, SPOOL_R_DELETEPRINTERDATA
*r_u
);
8938 WERROR
_spoolss_addform( pipes_struct
*p
, SPOOL_Q_ADDFORM
*q_u
, SPOOL_R_ADDFORM
*r_u
);
8939 WERROR
_spoolss_deleteform( pipes_struct
*p
, SPOOL_Q_DELETEFORM
*q_u
, SPOOL_R_DELETEFORM
*r_u
);
8940 WERROR
_spoolss_setform(pipes_struct
*p
, SPOOL_Q_SETFORM
*q_u
, SPOOL_R_SETFORM
*r_u
);
8941 WERROR
_spoolss_enumprintprocessors(pipes_struct
*p
, SPOOL_Q_ENUMPRINTPROCESSORS
*q_u
, SPOOL_R_ENUMPRINTPROCESSORS
*r_u
);
8942 WERROR
_spoolss_enumprintprocdatatypes(pipes_struct
*p
, SPOOL_Q_ENUMPRINTPROCDATATYPES
*q_u
, SPOOL_R_ENUMPRINTPROCDATATYPES
*r_u
);
8943 WERROR
_spoolss_enumprintmonitors(pipes_struct
*p
, SPOOL_Q_ENUMPRINTMONITORS
*q_u
, SPOOL_R_ENUMPRINTMONITORS
*r_u
);
8944 WERROR
_spoolss_getjob( pipes_struct
*p
, SPOOL_Q_GETJOB
*q_u
, SPOOL_R_GETJOB
*r_u
);
8945 WERROR
_spoolss_getprinterdataex(pipes_struct
*p
, SPOOL_Q_GETPRINTERDATAEX
*q_u
, SPOOL_R_GETPRINTERDATAEX
*r_u
);
8946 WERROR
_spoolss_setprinterdataex(pipes_struct
*p
, SPOOL_Q_SETPRINTERDATAEX
*q_u
, SPOOL_R_SETPRINTERDATAEX
*r_u
);
8947 WERROR
_spoolss_deleteprinterdataex(pipes_struct
*p
, SPOOL_Q_DELETEPRINTERDATAEX
*q_u
, SPOOL_R_DELETEPRINTERDATAEX
*r_u
);
8948 WERROR
_spoolss_enumprinterkey(pipes_struct
*p
, SPOOL_Q_ENUMPRINTERKEY
*q_u
, SPOOL_R_ENUMPRINTERKEY
*r_u
);
8949 WERROR
_spoolss_deleteprinterkey(pipes_struct
*p
, SPOOL_Q_DELETEPRINTERKEY
*q_u
, SPOOL_R_DELETEPRINTERKEY
*r_u
);
8950 WERROR
_spoolss_enumprinterdataex(pipes_struct
*p
, SPOOL_Q_ENUMPRINTERDATAEX
*q_u
, SPOOL_R_ENUMPRINTERDATAEX
*r_u
);
8951 WERROR
_spoolss_getprintprocessordirectory(pipes_struct
*p
, SPOOL_Q_GETPRINTPROCESSORDIRECTORY
*q_u
, SPOOL_R_GETPRINTPROCESSORDIRECTORY
*r_u
);
8952 WERROR
_spoolss_xcvdataport(pipes_struct
*p
, SPOOL_Q_XCVDATAPORT
*q_u
, SPOOL_R_XCVDATAPORT
*r_u
);
8954 /* The following definitions come from rpc_server/srv_srvsvc_nt.c */
8956 WERROR
_srvsvc_NetFileEnum(pipes_struct
*p
,
8957 struct srvsvc_NetFileEnum
*r
);
8958 WERROR
_srvsvc_NetSrvGetInfo(pipes_struct
*p
,
8959 struct srvsvc_NetSrvGetInfo
*r
);
8960 WERROR
_srvsvc_NetSrvSetInfo(pipes_struct
*p
,
8961 struct srvsvc_NetSrvSetInfo
*r
);
8962 WERROR
_srvsvc_NetConnEnum(pipes_struct
*p
,
8963 struct srvsvc_NetConnEnum
*r
);
8964 WERROR
_srvsvc_NetSessEnum(pipes_struct
*p
,
8965 struct srvsvc_NetSessEnum
*r
);
8966 WERROR
_srvsvc_NetSessDel(pipes_struct
*p
,
8967 struct srvsvc_NetSessDel
*r
);
8968 WERROR
_srvsvc_NetShareEnumAll(pipes_struct
*p
,
8969 struct srvsvc_NetShareEnumAll
*r
);
8970 WERROR
_srvsvc_NetShareEnum(pipes_struct
*p
,
8971 struct srvsvc_NetShareEnum
*r
);
8972 WERROR
_srvsvc_NetShareGetInfo(pipes_struct
*p
,
8973 struct srvsvc_NetShareGetInfo
*r
);
8974 char *valid_share_pathname(TALLOC_CTX
*ctx
, const char *dos_pathname
);
8975 WERROR
_srvsvc_NetShareSetInfo(pipes_struct
*p
,
8976 struct srvsvc_NetShareSetInfo
*r
);
8977 WERROR
_srvsvc_NetShareAdd(pipes_struct
*p
,
8978 struct srvsvc_NetShareAdd
*r
);
8979 WERROR
_srvsvc_NetShareDel(pipes_struct
*p
,
8980 struct srvsvc_NetShareDel
*r
);
8981 WERROR
_srvsvc_NetShareDelSticky(pipes_struct
*p
,
8982 struct srvsvc_NetShareDelSticky
*r
);
8983 WERROR
_srvsvc_NetRemoteTOD(pipes_struct
*p
,
8984 struct srvsvc_NetRemoteTOD
*r
);
8985 WERROR
_srvsvc_NetGetFileSecurity(pipes_struct
*p
,
8986 struct srvsvc_NetGetFileSecurity
*r
);
8987 WERROR
_srvsvc_NetSetFileSecurity(pipes_struct
*p
,
8988 struct srvsvc_NetSetFileSecurity
*r
);
8989 WERROR
_srvsvc_NetDiskEnum(pipes_struct
*p
,
8990 struct srvsvc_NetDiskEnum
*r
);
8991 WERROR
_srvsvc_NetNameValidate(pipes_struct
*p
,
8992 struct srvsvc_NetNameValidate
*r
);
8993 WERROR
_srvsvc_NetFileClose(pipes_struct
*p
, struct srvsvc_NetFileClose
*r
);
8994 WERROR
_srvsvc_NetCharDevEnum(pipes_struct
*p
, struct srvsvc_NetCharDevEnum
*r
);
8995 WERROR
_srvsvc_NetCharDevGetInfo(pipes_struct
*p
, struct srvsvc_NetCharDevGetInfo
*r
);
8996 WERROR
_srvsvc_NetCharDevControl(pipes_struct
*p
, struct srvsvc_NetCharDevControl
*r
);
8997 WERROR
_srvsvc_NetCharDevQEnum(pipes_struct
*p
, struct srvsvc_NetCharDevQEnum
*r
);
8998 WERROR
_srvsvc_NetCharDevQGetInfo(pipes_struct
*p
, struct srvsvc_NetCharDevQGetInfo
*r
);
8999 WERROR
_srvsvc_NetCharDevQSetInfo(pipes_struct
*p
, struct srvsvc_NetCharDevQSetInfo
*r
);
9000 WERROR
_srvsvc_NetCharDevQPurge(pipes_struct
*p
, struct srvsvc_NetCharDevQPurge
*r
);
9001 WERROR
_srvsvc_NetCharDevQPurgeSelf(pipes_struct
*p
, struct srvsvc_NetCharDevQPurgeSelf
*r
);
9002 WERROR
_srvsvc_NetFileGetInfo(pipes_struct
*p
, struct srvsvc_NetFileGetInfo
*r
);
9003 WERROR
_srvsvc_NetShareCheck(pipes_struct
*p
, struct srvsvc_NetShareCheck
*r
);
9004 WERROR
_srvsvc_NetServerStatisticsGet(pipes_struct
*p
, struct srvsvc_NetServerStatisticsGet
*r
);
9005 WERROR
_srvsvc_NetTransportAdd(pipes_struct
*p
, struct srvsvc_NetTransportAdd
*r
);
9006 WERROR
_srvsvc_NetTransportEnum(pipes_struct
*p
, struct srvsvc_NetTransportEnum
*r
);
9007 WERROR
_srvsvc_NetTransportDel(pipes_struct
*p
, struct srvsvc_NetTransportDel
*r
);
9008 WERROR
_srvsvc_NetSetServiceBits(pipes_struct
*p
, struct srvsvc_NetSetServiceBits
*r
);
9009 WERROR
_srvsvc_NetPathType(pipes_struct
*p
, struct srvsvc_NetPathType
*r
);
9010 WERROR
_srvsvc_NetPathCanonicalize(pipes_struct
*p
, struct srvsvc_NetPathCanonicalize
*r
);
9011 WERROR
_srvsvc_NetPathCompare(pipes_struct
*p
, struct srvsvc_NetPathCompare
*r
);
9012 WERROR
_srvsvc_NETRPRNAMECANONICALIZE(pipes_struct
*p
, struct srvsvc_NETRPRNAMECANONICALIZE
*r
);
9013 WERROR
_srvsvc_NetPRNameCompare(pipes_struct
*p
, struct srvsvc_NetPRNameCompare
*r
);
9014 WERROR
_srvsvc_NetShareDelStart(pipes_struct
*p
, struct srvsvc_NetShareDelStart
*r
);
9015 WERROR
_srvsvc_NetShareDelCommit(pipes_struct
*p
, struct srvsvc_NetShareDelCommit
*r
);
9016 WERROR
_srvsvc_NetServerTransportAddEx(pipes_struct
*p
, struct srvsvc_NetServerTransportAddEx
*r
);
9017 WERROR
_srvsvc_NetServerSetServiceBitsEx(pipes_struct
*p
, struct srvsvc_NetServerSetServiceBitsEx
*r
);
9018 WERROR
_srvsvc_NETRDFSGETVERSION(pipes_struct
*p
, struct srvsvc_NETRDFSGETVERSION
*r
);
9019 WERROR
_srvsvc_NETRDFSCREATELOCALPARTITION(pipes_struct
*p
, struct srvsvc_NETRDFSCREATELOCALPARTITION
*r
);
9020 WERROR
_srvsvc_NETRDFSDELETELOCALPARTITION(pipes_struct
*p
, struct srvsvc_NETRDFSDELETELOCALPARTITION
*r
);
9021 WERROR
_srvsvc_NETRDFSSETLOCALVOLUMESTATE(pipes_struct
*p
, struct srvsvc_NETRDFSSETLOCALVOLUMESTATE
*r
);
9022 WERROR
_srvsvc_NETRDFSSETSERVERINFO(pipes_struct
*p
, struct srvsvc_NETRDFSSETSERVERINFO
*r
);
9023 WERROR
_srvsvc_NETRDFSCREATEEXITPOINT(pipes_struct
*p
, struct srvsvc_NETRDFSCREATEEXITPOINT
*r
);
9024 WERROR
_srvsvc_NETRDFSDELETEEXITPOINT(pipes_struct
*p
, struct srvsvc_NETRDFSDELETEEXITPOINT
*r
);
9025 WERROR
_srvsvc_NETRDFSMODIFYPREFIX(pipes_struct
*p
, struct srvsvc_NETRDFSMODIFYPREFIX
*r
);
9026 WERROR
_srvsvc_NETRDFSFIXLOCALVOLUME(pipes_struct
*p
, struct srvsvc_NETRDFSFIXLOCALVOLUME
*r
);
9027 WERROR
_srvsvc_NETRDFSMANAGERREPORTSITEINFO(pipes_struct
*p
, struct srvsvc_NETRDFSMANAGERREPORTSITEINFO
*r
);
9028 WERROR
_srvsvc_NETRSERVERTRANSPORTDELEX(pipes_struct
*p
, struct srvsvc_NETRSERVERTRANSPORTDELEX
*r
);
9030 /* The following definitions come from rpc_server/srv_svcctl.c */
9032 void svcctl2_get_pipe_fns( struct api_struct
**fns
, int *n_fns
);
9033 NTSTATUS
rpc_svcctl2_init(void);
9035 /* The following definitions come from rpc_server/srv_svcctl_nt.c */
9037 bool init_service_op_table( void );
9038 WERROR
_svcctl_OpenSCManagerW(pipes_struct
*p
,
9039 struct svcctl_OpenSCManagerW
*r
);
9040 WERROR
_svcctl_OpenServiceW(pipes_struct
*p
,
9041 struct svcctl_OpenServiceW
*r
);
9042 WERROR
_svcctl_CloseServiceHandle(pipes_struct
*p
, struct svcctl_CloseServiceHandle
*r
);
9043 WERROR
_svcctl_GetServiceDisplayNameW(pipes_struct
*p
,
9044 struct svcctl_GetServiceDisplayNameW
*r
);
9045 WERROR
_svcctl_QueryServiceStatus(pipes_struct
*p
,
9046 struct svcctl_QueryServiceStatus
*r
);
9047 WERROR
_svcctl_enum_services_status(pipes_struct
*p
, SVCCTL_Q_ENUM_SERVICES_STATUS
*q_u
, SVCCTL_R_ENUM_SERVICES_STATUS
*r_u
);
9048 WERROR
_svcctl_StartServiceW(pipes_struct
*p
,
9049 struct svcctl_StartServiceW
*r
);
9050 WERROR
_svcctl_ControlService(pipes_struct
*p
,
9051 struct svcctl_ControlService
*r
);
9052 WERROR
_svcctl_enum_dependent_services( pipes_struct
*p
, SVCCTL_Q_ENUM_DEPENDENT_SERVICES
*q_u
, SVCCTL_R_ENUM_DEPENDENT_SERVICES
*r_u
);
9053 WERROR
_svcctl_query_service_status_ex( pipes_struct
*p
, SVCCTL_Q_QUERY_SERVICE_STATUSEX
*q_u
, SVCCTL_R_QUERY_SERVICE_STATUSEX
*r_u
);
9054 WERROR
_svcctl_query_service_config( pipes_struct
*p
, SVCCTL_Q_QUERY_SERVICE_CONFIG
*q_u
, SVCCTL_R_QUERY_SERVICE_CONFIG
*r_u
);
9055 WERROR
_svcctl_query_service_config2( pipes_struct
*p
, SVCCTL_Q_QUERY_SERVICE_CONFIG2
*q_u
, SVCCTL_R_QUERY_SERVICE_CONFIG2
*r_u
);
9056 WERROR
_svcctl_LockServiceDatabase(pipes_struct
*p
,
9057 struct svcctl_LockServiceDatabase
*r
);
9058 WERROR
_svcctl_UnlockServiceDatabase(pipes_struct
*p
,
9059 struct svcctl_UnlockServiceDatabase
*r
);
9060 WERROR
_svcctl_QueryServiceObjectSecurity(pipes_struct
*p
,
9061 struct svcctl_QueryServiceObjectSecurity
*r
);
9062 WERROR
_svcctl_SetServiceObjectSecurity(pipes_struct
*p
,
9063 struct svcctl_SetServiceObjectSecurity
*r
);
9064 WERROR
_svcctl_DeleteService(pipes_struct
*p
, struct svcctl_DeleteService
*r
);
9065 WERROR
_svcctl_SetServiceStatus(pipes_struct
*p
, struct svcctl_SetServiceStatus
*r
);
9066 WERROR
_svcctl_NotifyBootConfigStatus(pipes_struct
*p
, struct svcctl_NotifyBootConfigStatus
*r
);
9067 WERROR
_svcctl_SCSetServiceBitsW(pipes_struct
*p
, struct svcctl_SCSetServiceBitsW
*r
);
9068 WERROR
_svcctl_ChangeServiceConfigW(pipes_struct
*p
, struct svcctl_ChangeServiceConfigW
*r
);
9069 WERROR
_svcctl_CreateServiceW(pipes_struct
*p
, struct svcctl_CreateServiceW
*r
);
9070 WERROR
_svcctl_EnumDependentServicesW(pipes_struct
*p
, struct svcctl_EnumDependentServicesW
*r
);
9071 WERROR
_svcctl_EnumServicesStatusW(pipes_struct
*p
, struct svcctl_EnumServicesStatusW
*r
);
9072 WERROR
_svcctl_QueryServiceConfigW(pipes_struct
*p
, struct svcctl_QueryServiceConfigW
*r
);
9073 WERROR
_svcctl_QueryServiceLockStatusW(pipes_struct
*p
, struct svcctl_QueryServiceLockStatusW
*r
);
9074 WERROR
_svcctl_GetServiceKeyNameW(pipes_struct
*p
, struct svcctl_GetServiceKeyNameW
*r
);
9075 WERROR
_svcctl_SCSetServiceBitsA(pipes_struct
*p
, struct svcctl_SCSetServiceBitsA
*r
);
9076 WERROR
_svcctl_ChangeServiceConfigA(pipes_struct
*p
, struct svcctl_ChangeServiceConfigA
*r
);
9077 WERROR
_svcctl_CreateServiceA(pipes_struct
*p
, struct svcctl_CreateServiceA
*r
);
9078 WERROR
_svcctl_EnumDependentServicesA(pipes_struct
*p
, struct svcctl_EnumDependentServicesA
*r
);
9079 WERROR
_svcctl_EnumServicesStatusA(pipes_struct
*p
, struct svcctl_EnumServicesStatusA
*r
);
9080 WERROR
_svcctl_OpenSCManagerA(pipes_struct
*p
, struct svcctl_OpenSCManagerA
*r
);
9081 WERROR
_svcctl_OpenServiceA(pipes_struct
*p
, struct svcctl_OpenServiceA
*r
);
9082 WERROR
_svcctl_QueryServiceConfigA(pipes_struct
*p
, struct svcctl_QueryServiceConfigA
*r
);
9083 WERROR
_svcctl_QueryServiceLockStatusA(pipes_struct
*p
, struct svcctl_QueryServiceLockStatusA
*r
);
9084 WERROR
_svcctl_StartServiceA(pipes_struct
*p
, struct svcctl_StartServiceA
*r
);
9085 WERROR
_svcctl_GetServiceDisplayNameA(pipes_struct
*p
, struct svcctl_GetServiceDisplayNameA
*r
);
9086 WERROR
_svcctl_GetServiceKeyNameA(pipes_struct
*p
, struct svcctl_GetServiceKeyNameA
*r
);
9087 WERROR
_svcctl_GetCurrentGroupeStateW(pipes_struct
*p
, struct svcctl_GetCurrentGroupeStateW
*r
);
9088 WERROR
_svcctl_EnumServiceGroupW(pipes_struct
*p
, struct svcctl_EnumServiceGroupW
*r
);
9089 WERROR
_svcctl_ChangeServiceConfig2A(pipes_struct
*p
, struct svcctl_ChangeServiceConfig2A
*r
);
9090 WERROR
_svcctl_ChangeServiceConfig2W(pipes_struct
*p
, struct svcctl_ChangeServiceConfig2W
*r
);
9091 WERROR
_svcctl_QueryServiceConfig2A(pipes_struct
*p
, struct svcctl_QueryServiceConfig2A
*r
);
9092 WERROR
_svcctl_QueryServiceConfig2W(pipes_struct
*p
, struct svcctl_QueryServiceConfig2W
*r
);
9093 WERROR
_svcctl_QueryServiceStatusEx(pipes_struct
*p
, struct svcctl_QueryServiceStatusEx
*r
);
9094 WERROR
_EnumServicesStatusExA(pipes_struct
*p
, struct EnumServicesStatusExA
*r
);
9095 WERROR
_EnumServicesStatusExW(pipes_struct
*p
, struct EnumServicesStatusExW
*r
);
9096 WERROR
_svcctl_SCSendTSMessage(pipes_struct
*p
, struct svcctl_SCSendTSMessage
*r
);
9098 /* The following definitions come from rpc_server/srv_winreg_nt.c */
9100 WERROR
_winreg_CloseKey(pipes_struct
*p
, struct winreg_CloseKey
*r
);
9101 WERROR
_winreg_OpenHKLM(pipes_struct
*p
, struct winreg_OpenHKLM
*r
);
9102 WERROR
_winreg_OpenHKPD(pipes_struct
*p
, struct winreg_OpenHKPD
*r
);
9103 WERROR
_winreg_OpenHKPT(pipes_struct
*p
, struct winreg_OpenHKPT
*r
);
9104 WERROR
_winreg_OpenHKCR(pipes_struct
*p
, struct winreg_OpenHKCR
*r
);
9105 WERROR
_winreg_OpenHKU(pipes_struct
*p
, struct winreg_OpenHKU
*r
);
9106 WERROR
_winreg_OpenHKCU(pipes_struct
*p
, struct winreg_OpenHKCU
*r
);
9107 WERROR
_winreg_OpenHKCC(pipes_struct
*p
, struct winreg_OpenHKCC
*r
);
9108 WERROR
_winreg_OpenHKDD(pipes_struct
*p
, struct winreg_OpenHKDD
*r
);
9109 WERROR
_winreg_OpenHKPN(pipes_struct
*p
, struct winreg_OpenHKPN
*r
);
9110 WERROR
_winreg_OpenKey(pipes_struct
*p
, struct winreg_OpenKey
*r
);
9111 WERROR
_winreg_QueryValue(pipes_struct
*p
, struct winreg_QueryValue
*r
);
9112 WERROR
_winreg_QueryInfoKey(pipes_struct
*p
, struct winreg_QueryInfoKey
*r
);
9113 WERROR
_winreg_GetVersion(pipes_struct
*p
, struct winreg_GetVersion
*r
);
9114 WERROR
_winreg_EnumKey(pipes_struct
*p
, struct winreg_EnumKey
*r
);
9115 WERROR
_winreg_EnumValue(pipes_struct
*p
, struct winreg_EnumValue
*r
);
9116 WERROR
_winreg_InitiateSystemShutdown(pipes_struct
*p
, struct winreg_InitiateSystemShutdown
*r
);
9117 WERROR
_winreg_InitiateSystemShutdownEx(pipes_struct
*p
, struct winreg_InitiateSystemShutdownEx
*r
);
9118 WERROR
_winreg_AbortSystemShutdown(pipes_struct
*p
, struct winreg_AbortSystemShutdown
*r
);
9119 WERROR
_winreg_RestoreKey(pipes_struct
*p
, struct winreg_RestoreKey
*r
);
9120 WERROR
_winreg_SaveKey(pipes_struct
*p
, struct winreg_SaveKey
*r
);
9121 WERROR
_winreg_SaveKeyEx(pipes_struct
*p
, struct winreg_SaveKeyEx
*r
);
9122 WERROR
_winreg_CreateKey( pipes_struct
*p
, struct winreg_CreateKey
*r
);
9123 WERROR
_winreg_SetValue(pipes_struct
*p
, struct winreg_SetValue
*r
);
9124 WERROR
_winreg_DeleteKey(pipes_struct
*p
, struct winreg_DeleteKey
*r
);
9125 WERROR
_winreg_DeleteValue(pipes_struct
*p
, struct winreg_DeleteValue
*r
);
9126 WERROR
_winreg_GetKeySecurity(pipes_struct
*p
, struct winreg_GetKeySecurity
*r
);
9127 WERROR
_winreg_SetKeySecurity(pipes_struct
*p
, struct winreg_SetKeySecurity
*r
);
9128 WERROR
_winreg_FlushKey(pipes_struct
*p
, struct winreg_FlushKey
*r
);
9129 WERROR
_winreg_UnLoadKey(pipes_struct
*p
, struct winreg_UnLoadKey
*r
);
9130 WERROR
_winreg_ReplaceKey(pipes_struct
*p
, struct winreg_ReplaceKey
*r
);
9131 WERROR
_winreg_LoadKey(pipes_struct
*p
, struct winreg_LoadKey
*r
);
9132 WERROR
_winreg_NotifyChangeKeyValue(pipes_struct
*p
, struct winreg_NotifyChangeKeyValue
*r
);
9133 WERROR
_winreg_QueryMultipleValues(pipes_struct
*p
, struct winreg_QueryMultipleValues
*r
);
9134 WERROR
_winreg_QueryMultipleValues2(pipes_struct
*p
, struct winreg_QueryMultipleValues2
*r
);
9136 /* The following definitions come from rpc_server/srv_wkssvc_nt.c */
9138 WERROR
_wkssvc_NetWkstaGetInfo(pipes_struct
*p
, struct wkssvc_NetWkstaGetInfo
*r
);
9139 WERROR
_wkssvc_NetWkstaSetInfo(pipes_struct
*p
, struct wkssvc_NetWkstaSetInfo
*r
);
9140 WERROR
_wkssvc_NetWkstaEnumUsers(pipes_struct
*p
, struct wkssvc_NetWkstaEnumUsers
*r
);
9141 WERROR
_wkssvc_NetrWkstaUserGetInfo(pipes_struct
*p
, struct wkssvc_NetrWkstaUserGetInfo
*r
);
9142 WERROR
_wkssvc_NetrWkstaUserSetInfo(pipes_struct
*p
, struct wkssvc_NetrWkstaUserSetInfo
*r
);
9143 WERROR
_wkssvc_NetWkstaTransportEnum(pipes_struct
*p
, struct wkssvc_NetWkstaTransportEnum
*r
);
9144 WERROR
_wkssvc_NetrWkstaTransportAdd(pipes_struct
*p
, struct wkssvc_NetrWkstaTransportAdd
*r
);
9145 WERROR
_wkssvc_NetrWkstaTransportDel(pipes_struct
*p
, struct wkssvc_NetrWkstaTransportDel
*r
);
9146 WERROR
_wkssvc_NetrUseAdd(pipes_struct
*p
, struct wkssvc_NetrUseAdd
*r
);
9147 WERROR
_wkssvc_NetrUseGetInfo(pipes_struct
*p
, struct wkssvc_NetrUseGetInfo
*r
);
9148 WERROR
_wkssvc_NetrUseDel(pipes_struct
*p
, struct wkssvc_NetrUseDel
*r
);
9149 WERROR
_wkssvc_NetrUseEnum(pipes_struct
*p
, struct wkssvc_NetrUseEnum
*r
);
9150 WERROR
_wkssvc_NetrMessageBufferSend(pipes_struct
*p
, struct wkssvc_NetrMessageBufferSend
*r
);
9151 WERROR
_wkssvc_NetrWorkstationStatisticsGet(pipes_struct
*p
, struct wkssvc_NetrWorkstationStatisticsGet
*r
) ;
9152 WERROR
_wkssvc_NetrLogonDomainNameAdd(pipes_struct
*p
, struct wkssvc_NetrLogonDomainNameAdd
*r
);
9153 WERROR
_wkssvc_NetrLogonDomainNameDel(pipes_struct
*p
, struct wkssvc_NetrLogonDomainNameDel
*r
);
9154 WERROR
_wkssvc_NetrJoinDomain(pipes_struct
*p
, struct wkssvc_NetrJoinDomain
*r
);
9155 WERROR
_wkssvc_NetrUnjoinDomain(pipes_struct
*p
, struct wkssvc_NetrUnjoinDomain
*r
);
9156 WERROR
_wkssvc_NetrRenameMachineInDomain(pipes_struct
*p
, struct wkssvc_NetrRenameMachineInDomain
*r
);
9157 WERROR
_wkssvc_NetrValidateName(pipes_struct
*p
, struct wkssvc_NetrValidateName
*r
);
9158 WERROR
_wkssvc_NetrGetJoinInformation(pipes_struct
*p
, struct wkssvc_NetrGetJoinInformation
*r
);
9159 WERROR
_wkssvc_NetrGetJoinableOus(pipes_struct
*p
, struct wkssvc_NetrGetJoinableOus
*r
);
9160 WERROR
_wkssvc_NetrJoinDomain2(pipes_struct
*p
,
9161 struct wkssvc_NetrJoinDomain2
*r
);
9162 WERROR
_wkssvc_NetrUnjoinDomain2(pipes_struct
*p
,
9163 struct wkssvc_NetrUnjoinDomain2
*r
);
9164 WERROR
_wkssvc_NetrRenameMachineInDomain2(pipes_struct
*p
, struct wkssvc_NetrRenameMachineInDomain2
*r
);
9165 WERROR
_wkssvc_NetrValidateName2(pipes_struct
*p
, struct wkssvc_NetrValidateName2
*r
);
9166 WERROR
_wkssvc_NetrGetJoinableOus2(pipes_struct
*p
, struct wkssvc_NetrGetJoinableOus2
*r
);
9167 WERROR
_wkssvc_NetrAddAlternateComputerName(pipes_struct
*p
, struct wkssvc_NetrAddAlternateComputerName
*r
);
9168 WERROR
_wkssvc_NetrRemoveAlternateComputerName(pipes_struct
*p
, struct wkssvc_NetrRemoveAlternateComputerName
*r
);
9169 WERROR
_wkssvc_NetrSetPrimaryComputername(pipes_struct
*p
, struct wkssvc_NetrSetPrimaryComputername
*r
);
9170 WERROR
_wkssvc_NetrEnumerateComputerNames(pipes_struct
*p
, struct wkssvc_NetrEnumerateComputerNames
*r
);
9172 /* The following definitions come from rpcclient/cmd_dfs.c */
9175 /* The following definitions come from rpcclient/cmd_dssetup.c */
9178 /* The following definitions come from rpcclient/cmd_echo.c */
9181 /* The following definitions come from rpcclient/cmd_lsarpc.c */
9184 /* The following definitions come from rpcclient/cmd_netlogon.c */
9187 /* The following definitions come from rpcclient/cmd_ntsvcs.c */
9190 /* The following definitions come from rpcclient/cmd_samr.c */
9193 /* The following definitions come from rpcclient/cmd_shutdown.c */
9196 /* The following definitions come from rpcclient/cmd_spoolss.c */
9198 void set_drv_info_3_env (DRIVER_INFO_3
*info
, const char *arch
);
9200 /* The following definitions come from rpcclient/cmd_srvsvc.c */
9203 /* The following definitions come from rpcclient/cmd_test.c */
9206 /* The following definitions come from rpcclient/cmd_wkssvc.c */
9209 /* The following definitions come from rpcclient/rpcclient.c */
9212 /* The following definitions come from services/services_db.c */
9214 void svcctl_init_keys( void );
9215 SEC_DESC
*svcctl_get_secdesc( TALLOC_CTX
*ctx
, const char *name
, NT_USER_TOKEN
*token
);
9216 bool svcctl_set_secdesc( TALLOC_CTX
*ctx
, const char *name
, SEC_DESC
*sec_desc
, NT_USER_TOKEN
*token
);
9217 const char *svcctl_lookup_dispname(TALLOC_CTX
*ctx
, const char *name
, NT_USER_TOKEN
*token
);
9218 const char *svcctl_lookup_description(TALLOC_CTX
*ctx
, const char *name
, NT_USER_TOKEN
*token
);
9219 REGVAL_CTR
*svcctl_fetch_regvalues( const char *name
, NT_USER_TOKEN
*token
);
9221 /* The following definitions come from services/svc_netlogon.c */
9224 /* The following definitions come from services/svc_rcinit.c */
9227 /* The following definitions come from services/svc_spoolss.c */
9230 /* The following definitions come from services/svc_winreg.c */
9233 /* The following definitions come from services/svc_wins.c */
9236 /* The following definitions come from smbd/aio.c */
9238 void aio_request_done(uint16_t mid
);
9239 bool aio_finished(void);
9240 void initialize_async_io_handler(void);
9241 bool schedule_aio_read_and_X(connection_struct
*conn
,
9242 struct smb_request
*req
,
9243 files_struct
*fsp
, SMB_OFF_T startpos
,
9245 bool schedule_aio_write_and_X(connection_struct
*conn
,
9246 struct smb_request
*req
,
9247 files_struct
*fsp
, char *data
,
9250 int process_aio_queue(void);
9251 int wait_for_aio_completion(files_struct
*fsp
);
9252 void cancel_aio_by_fsp(files_struct
*fsp
);
9253 bool aio_finished(void);
9254 void initialize_async_io_handler(void);
9255 int process_aio_queue(void);
9256 bool schedule_aio_read_and_X(connection_struct
*conn
,
9257 struct smb_request
*req
,
9258 files_struct
*fsp
, SMB_OFF_T startpos
,
9260 bool schedule_aio_write_and_X(connection_struct
*conn
,
9261 struct smb_request
*req
,
9262 files_struct
*fsp
, char *data
,
9265 void cancel_aio_by_fsp(files_struct
*fsp
);
9266 int wait_for_aio_completion(files_struct
*fsp
);
9268 /* The following definitions come from smbd/blocking.c */
9270 bool push_blocking_lock_request( struct byte_range_lock
*br_lck
,
9271 const struct smb_request
*req
,
9276 enum brl_type lock_type
,
9277 enum brl_flavour lock_flav
,
9278 SMB_BIG_UINT offset
,
9280 uint32 blocking_pid
);
9281 void cancel_pending_lock_requests_by_fid(files_struct
*fsp
, struct byte_range_lock
*br_lck
);
9282 void remove_pending_lock_requests_by_mid(int mid
);
9283 bool blocking_lock_was_deferred(int mid
);
9284 bool blocking_lock_cancel(files_struct
*fsp
,
9286 SMB_BIG_UINT offset
,
9288 enum brl_flavour lock_flav
,
9289 unsigned char locktype
,
9292 /* The following definitions come from smbd/change_trust_pw.c */
9294 NTSTATUS
change_trust_account_password( const char *domain
, const char *remote_machine
);
9296 /* The following definitions come from smbd/chgpasswd.c */
9298 bool chgpasswd(const char *name
, const struct passwd
*pass
,
9299 const char *oldpass
, const char *newpass
, bool as_root
);
9300 bool chgpasswd(const char *name
, const struct passwd
*pass
,
9301 const char *oldpass
, const char *newpass
, bool as_root
);
9302 bool check_lanman_password(char *user
, uchar
* pass1
,
9303 uchar
* pass2
, struct samu
**hnd
);
9304 bool change_lanman_password(struct samu
*sampass
, uchar
*pass2
);
9305 NTSTATUS
pass_oem_change(char *user
,
9306 uchar password_encrypted_with_lm_hash
[516],
9307 const uchar old_lm_hash_encrypted
[16],
9308 uchar password_encrypted_with_nt_hash
[516],
9309 const uchar old_nt_hash_encrypted
[16],
9310 uint32
*reject_reason
);
9311 NTSTATUS
change_oem_password(struct samu
*hnd
, char *old_passwd
, char *new_passwd
, bool as_root
, uint32
*samr_reject_reason
);
9313 /* The following definitions come from smbd/close.c */
9315 void set_close_write_time(struct files_struct
*fsp
, struct timespec ts
);
9316 NTSTATUS
close_file(files_struct
*fsp
, enum file_close_type close_type
);
9317 void msg_close_file(struct messaging_context
*msg_ctx
,
9320 struct server_id server_id
,
9323 /* The following definitions come from smbd/conn.c */
9325 void conn_init(void);
9326 int conn_num_open(void);
9327 bool conn_snum_used(int snum
);
9328 connection_struct
*conn_find(unsigned cnum
);
9329 connection_struct
*conn_new(void);
9330 void conn_close_all(void);
9331 bool conn_idle_all(time_t t
);
9332 void conn_clear_vuid_cache(uint16 vuid
);
9333 void conn_free_internal(connection_struct
*conn
);
9334 void conn_free(connection_struct
*conn
);
9335 void msg_force_tdis(struct messaging_context
*msg
,
9338 struct server_id server_id
,
9341 /* The following definitions come from smbd/connection.c */
9343 bool yield_connection(connection_struct
*conn
, const char *name
);
9344 int count_current_connections( const char *sharename
, bool clear
);
9345 int count_all_current_connections(void);
9346 bool claim_connection(connection_struct
*conn
, const char *name
,
9348 bool register_message_flags(bool doreg
, uint32 msg_flags
);
9349 bool store_pipe_opendb( smb_np_struct
*p
);
9350 bool delete_pipe_opendb( smb_np_struct
*p
);
9352 /* The following definitions come from smbd/dfree.c */
9354 SMB_BIG_UINT
sys_disk_free(connection_struct
*conn
, const char *path
, bool small_query
,
9355 SMB_BIG_UINT
*bsize
,SMB_BIG_UINT
*dfree
,SMB_BIG_UINT
*dsize
);
9356 SMB_BIG_UINT
get_dfree_info(connection_struct
*conn
,
9359 SMB_BIG_UINT
*bsize
,
9360 SMB_BIG_UINT
*dfree
,
9361 SMB_BIG_UINT
*dsize
);
9363 /* The following definitions come from smbd/dir.c */
9365 bool make_dir_struct(TALLOC_CTX
*ctx
,
9373 void init_dptrs(void);
9374 char *dptr_path(int key
);
9375 char *dptr_wcard(int key
);
9376 uint16
dptr_attr(int key
);
9377 void dptr_close(int *key
);
9378 void dptr_closecnum(connection_struct
*conn
);
9379 void dptr_idlecnum(connection_struct
*conn
);
9380 void dptr_closepath(char *path
,uint16 spid
);
9381 NTSTATUS
dptr_create(connection_struct
*conn
, const char *path
, bool old_handle
, bool expect_close
,uint16 spid
,
9382 const char *wcard
, bool wcard_has_wild
, uint32 attr
, struct dptr_struct
**dptr_ret
);
9383 int dptr_CloseDir(struct dptr_struct
*dptr
);
9384 void dptr_SeekDir(struct dptr_struct
*dptr
, long offset
);
9385 long dptr_TellDir(struct dptr_struct
*dptr
);
9386 bool dptr_has_wild(struct dptr_struct
*dptr
);
9387 int dptr_dnum(struct dptr_struct
*dptr
);
9388 const char *dptr_ReadDirName(TALLOC_CTX
*ctx
,
9389 struct dptr_struct
*dptr
,
9391 SMB_STRUCT_STAT
*pst
);
9392 bool dptr_SearchDir(struct dptr_struct
*dptr
, const char *name
, long *poffset
, SMB_STRUCT_STAT
*pst
);
9393 void dptr_DirCacheAdd(struct dptr_struct
*dptr
, const char *name
, long offset
);
9394 bool dptr_fill(char *buf1
,unsigned int key
);
9395 struct dptr_struct
*dptr_fetch(char *buf
,int *num
);
9396 struct dptr_struct
*dptr_fetch_lanman2(int dptr_num
);
9397 bool dir_check_ftype(connection_struct
*conn
, uint32 mode
, uint32 dirtype
);
9398 bool get_dir_entry(TALLOC_CTX
*ctx
,
9399 connection_struct
*conn
,
9402 char **pp_fname_out
,
9407 bool ask_sharemode
);
9408 bool is_visible_file(connection_struct
*conn
, const char *dir_path
, const char *name
, SMB_STRUCT_STAT
*pst
, bool use_veto
);
9409 struct smb_Dir
*OpenDir(TALLOC_CTX
*mem_ctx
, connection_struct
*conn
,
9410 const char *name
, const char *mask
, uint32 attr
);
9411 const char *ReadDirName(struct smb_Dir
*dirp
, long *poffset
);
9412 void RewindDir(struct smb_Dir
*dirp
, long *poffset
);
9413 void SeekDir(struct smb_Dir
*dirp
, long offset
);
9414 long TellDir(struct smb_Dir
*dirp
);
9415 void DirCacheAdd(struct smb_Dir
*dirp
, const char *name
, long offset
);
9416 bool SearchDir(struct smb_Dir
*dirp
, const char *name
, long *poffset
);
9417 NTSTATUS
can_delete_directory(struct connection_struct
*conn
,
9418 const char *dirname
);
9420 /* The following definitions come from smbd/dmapi.c */
9422 const void *dmapi_get_current_session(void);
9423 bool dmapi_have_session(void);
9424 bool dmapi_new_session(void);
9425 bool dmapi_destroy_session(void);
9426 uint32
dmapi_file_flags(const char * const path
);
9428 /* The following definitions come from smbd/dnsregister.c */
9430 void dns_register_close(struct dns_reg_state
**dns_state_ptr
);
9431 void dns_register_smbd(struct dns_reg_state
** dns_state_ptr
,
9435 struct timeval
*timeout
);
9436 bool dns_register_smbd_reply(struct dns_reg_state
*dns_state
,
9437 fd_set
*lfds
, struct timeval
*timeout
);
9439 /* The following definitions come from smbd/dosmode.c */
9441 mode_t
unix_mode(connection_struct
*conn
, int dosmode
, const char *fname
,
9442 const char *inherit_from_dir
);
9443 uint32
dos_mode_msdfs(connection_struct
*conn
, const char *path
,SMB_STRUCT_STAT
*sbuf
);
9444 uint32
dos_mode(connection_struct
*conn
, const char *path
,SMB_STRUCT_STAT
*sbuf
);
9445 int file_set_dosmode(connection_struct
*conn
, const char *fname
,
9446 uint32 dosmode
, SMB_STRUCT_STAT
*st
,
9447 const char *parent_dir
,
9449 int file_ntimes(connection_struct
*conn
, const char *fname
, const struct timespec ts
[2]);
9450 bool set_sticky_write_time_path(connection_struct
*conn
, const char *fname
,
9451 struct file_id fileid
, const struct timespec mtime
);
9452 bool set_sticky_write_time_fsp(struct files_struct
*fsp
, const struct timespec mtime
);
9453 bool update_write_time(struct files_struct
*fsp
);
9455 /* The following definitions come from smbd/error.c */
9457 bool use_nt_status(void);
9458 void error_packet_set(char *outbuf
, uint8 eclass
, uint32 ecode
, NTSTATUS ntstatus
, int line
, const char *file
);
9459 int error_packet(char *outbuf
, uint8 eclass
, uint32 ecode
, NTSTATUS ntstatus
, int line
, const char *file
);
9460 void reply_nt_error(struct smb_request
*req
, NTSTATUS ntstatus
,
9461 int line
, const char *file
);
9462 void reply_force_nt_error(struct smb_request
*req
, NTSTATUS ntstatus
,
9463 int line
, const char *file
);
9464 void reply_dos_error(struct smb_request
*req
, uint8 eclass
, uint32 ecode
,
9465 int line
, const char *file
);
9466 void reply_both_error(struct smb_request
*req
, uint8 eclass
, uint32 ecode
,
9467 NTSTATUS status
, int line
, const char *file
);
9468 void reply_openerror(struct smb_request
*req
, NTSTATUS status
);
9469 void reply_unix_error(struct smb_request
*req
, uint8 defclass
, uint32 defcode
,
9470 NTSTATUS defstatus
, int line
, const char *file
);
9472 /* The following definitions come from smbd/fake_file.c */
9474 enum FAKE_FILE_TYPE
is_fake_file(const char *fname
);
9475 NTSTATUS
open_fake_file(connection_struct
*conn
,
9476 enum FAKE_FILE_TYPE fake_file_type
,
9479 files_struct
**result
);
9480 void destroy_fake_file_handle(FAKE_FILE_HANDLE
**fh
);
9481 NTSTATUS
close_fake_file(files_struct
*fsp
);
9483 /* The following definitions come from smbd/file_access.c */
9485 bool can_delete_file_in_directory(connection_struct
*conn
, const char *fname
);
9486 bool can_access_file(connection_struct
*conn
, const char *fname
, SMB_STRUCT_STAT
*psbuf
, uint32 access_mask
);
9487 bool can_write_to_file(connection_struct
*conn
, const char *fname
, SMB_STRUCT_STAT
*psbuf
);
9489 /* The following definitions come from smbd/fileio.c */
9491 ssize_t
read_file(files_struct
*fsp
,char *data
,SMB_OFF_T pos
,size_t n
);
9492 void trigger_write_time_update(struct files_struct
*fsp
);
9493 void trigger_write_time_update_immediate(struct files_struct
*fsp
);
9494 ssize_t
write_file(struct smb_request
*req
,
9499 void delete_write_cache(files_struct
*fsp
);
9500 void set_filelen_write_cache(files_struct
*fsp
, SMB_OFF_T file_size
);
9501 ssize_t
flush_write_cache(files_struct
*fsp
, enum flush_reason_enum reason
);
9502 NTSTATUS
sync_file(connection_struct
*conn
, files_struct
*fsp
, bool write_through
);
9503 int fsp_stat(files_struct
*fsp
, SMB_STRUCT_STAT
*pst
);
9505 /* The following definitions come from smbd/filename.c */
9507 NTSTATUS
unix_convert(TALLOC_CTX
*ctx
,
9508 connection_struct
*conn
,
9509 const char *orig_path
,
9510 bool allow_wcard_last_component
,
9511 char **pp_conv_path
,
9512 char **pp_saved_last_component
,
9513 SMB_STRUCT_STAT
*pst
);
9514 NTSTATUS
check_name(connection_struct
*conn
, const char *name
);
9516 /* The following definitions come from smbd/files.c */
9518 NTSTATUS
file_new(connection_struct
*conn
, files_struct
**result
);
9519 void file_close_conn(connection_struct
*conn
);
9520 void file_close_pid(uint16 smbpid
, int vuid
);
9521 void file_init(void);
9522 void file_close_user(int vuid
);
9523 void file_dump_open_table(void);
9524 files_struct
*file_find_fd(int fd
);
9525 files_struct
*file_find_dif(struct file_id id
, unsigned long gen_id
);
9526 files_struct
*file_find_fsp(files_struct
*orig_fsp
);
9527 files_struct
*file_find_di_first(struct file_id id
);
9528 files_struct
*file_find_di_next(files_struct
*start_fsp
);
9529 files_struct
*file_find_print(void);
9530 void file_sync_all(connection_struct
*conn
);
9531 void file_free(files_struct
*fsp
);
9532 files_struct
*file_fnum(uint16 fnum
);
9533 files_struct
*file_fsp(uint16 fid
);
9534 void file_chain_reset(void);
9535 void dup_file_fsp(files_struct
*from
,
9537 uint32 share_access
,
9538 uint32 create_options
,
9541 /* The following definitions come from smbd/ipc.c */
9543 void send_trans_reply(connection_struct
*conn
,
9544 struct smb_request
*req
,
9545 char *rparam
, int rparam_len
,
9546 char *rdata
, int rdata_len
,
9547 bool buffer_too_large
);
9548 void reply_trans(struct smb_request
*req
);
9549 void reply_transs(struct smb_request
*req
);
9551 /* The following definitions come from smbd/lanman.c */
9553 void api_reply(connection_struct
*conn
, uint16 vuid
,
9554 struct smb_request
*req
,
9555 char *data
, char *params
,
9556 int tdscnt
, int tpscnt
,
9557 int mdrcnt
, int mprcnt
);
9559 /* The following definitions come from smbd/mangle.c */
9561 void mangle_reset_cache(void);
9562 void mangle_change_to_posix(void);
9563 bool mangle_is_mangled(const char *s
, const struct share_params
*p
);
9564 bool mangle_is_8_3(const char *fname
, bool check_case
,
9565 const struct share_params
*p
);
9566 bool mangle_is_8_3_wildcards(const char *fname
, bool check_case
,
9567 const struct share_params
*p
);
9568 bool mangle_must_mangle(const char *fname
,
9569 const struct share_params
*p
);
9570 bool mangle_lookup_name_from_8_3(TALLOC_CTX
*ctx
,
9572 char **out
, /* talloced on the given context. */
9573 const struct share_params
*p
);
9574 bool name_to_8_3(const char *in
,
9577 const struct share_params
*p
);
9579 /* The following definitions come from smbd/mangle_hash.c */
9581 struct mangle_fns
*mangle_hash_init(void);
9583 /* The following definitions come from smbd/mangle_hash2.c */
9585 struct mangle_fns
*mangle_hash2_init(void);
9586 struct mangle_fns
*posix_mangle_init(void);
9588 /* The following definitions come from smbd/map_username.c */
9590 bool map_username(fstring user
);
9592 /* The following definitions come from smbd/message.c */
9594 void reply_sends(struct smb_request
*req
);
9595 void reply_sendstrt(struct smb_request
*req
);
9596 void reply_sendtxt(struct smb_request
*req
);
9597 void reply_sendend(struct smb_request
*req
);
9599 /* The following definitions come from smbd/msdfs.c */
9601 bool is_msdfs_link(connection_struct
*conn
,
9603 SMB_STRUCT_STAT
*sbufp
);
9604 NTSTATUS
get_referred_path(TALLOC_CTX
*ctx
,
9605 const char *dfs_path
,
9606 struct junction_map
*jucn
,
9608 bool *self_referralp
);
9609 int setup_dfs_referral(connection_struct
*orig_conn
,
9610 const char *dfs_path
,
9611 int max_referral_level
,
9612 char **ppdata
, NTSTATUS
*pstatus
);
9613 bool create_junction(TALLOC_CTX
*ctx
,
9614 const char *dfs_path
,
9615 struct junction_map
*jucn
);
9616 bool create_msdfs_link(const struct junction_map
*jucn
);
9617 bool remove_msdfs_link(const struct junction_map
*jucn
);
9618 struct junction_map
*enum_msdfs_links(TALLOC_CTX
*ctx
, size_t *p_num_jn
);
9619 NTSTATUS
resolve_dfspath(TALLOC_CTX
*ctx
,
9620 connection_struct
*conn
,
9622 const char *name_in
,
9623 char **pp_name_out
);
9624 NTSTATUS
resolve_dfspath_wcard(TALLOC_CTX
*ctx
,
9625 connection_struct
*conn
,
9627 const char *name_in
,
9629 bool *ppath_contains_wcard
);
9631 /* The following definitions come from smbd/negprot.c */
9633 void reply_negprot(struct smb_request
*req
);
9635 /* The following definitions come from smbd/notify.c */
9637 void change_notify_reply(connection_struct
*conn
,
9638 const uint8
*request_buf
, uint32 max_param
,
9639 struct notify_change_buf
*notify_buf
);
9640 NTSTATUS
change_notify_create(struct files_struct
*fsp
, uint32 filter
,
9642 NTSTATUS
change_notify_add_request(const struct smb_request
*req
,
9644 uint32 filter
, bool recursive
,
9645 struct files_struct
*fsp
);
9646 void remove_pending_change_notify_requests_by_mid(uint16 mid
);
9647 void remove_pending_change_notify_requests_by_fid(files_struct
*fsp
,
9649 void notify_fname(connection_struct
*conn
, uint32 action
, uint32 filter
,
9651 char *notify_filter_string(TALLOC_CTX
*mem_ctx
, uint32 filter
);
9652 struct sys_notify_context
*sys_notify_context_create(connection_struct
*conn
,
9653 TALLOC_CTX
*mem_ctx
,
9654 struct event_context
*ev
);
9655 NTSTATUS
sys_notify_watch(struct sys_notify_context
*ctx
,
9656 struct notify_entry
*e
,
9657 void (*callback
)(struct sys_notify_context
*ctx
,
9659 struct notify_event
*ev
),
9660 void *private_data
, void *handle
);
9662 /* The following definitions come from smbd/notify_inotify.c */
9664 NTSTATUS
inotify_watch(struct sys_notify_context
*ctx
,
9665 struct notify_entry
*e
,
9666 void (*callback
)(struct sys_notify_context
*ctx
,
9668 struct notify_event
*ev
),
9672 /* The following definitions come from smbd/notify_internal.c */
9674 struct notify_context
*notify_init(TALLOC_CTX
*mem_ctx
, struct server_id server
,
9675 struct messaging_context
*messaging_ctx
,
9676 struct event_context
*ev
,
9677 connection_struct
*conn
);
9678 NTSTATUS
notify_add(struct notify_context
*notify
, struct notify_entry
*e0
,
9679 void (*callback
)(void *, const struct notify_event
*),
9680 void *private_data
);
9681 NTSTATUS
notify_remove(struct notify_context
*notify
, void *private_data
);
9682 void notify_trigger(struct notify_context
*notify
,
9683 uint32_t action
, uint32_t filter
, const char *path
);
9685 /* The following definitions come from smbd/ntquotas.c */
9687 int vfs_get_ntquota(files_struct
*fsp
, enum SMB_QUOTA_TYPE qtype
, DOM_SID
*psid
, SMB_NTQUOTA_STRUCT
*qt
);
9688 int vfs_set_ntquota(files_struct
*fsp
, enum SMB_QUOTA_TYPE qtype
, DOM_SID
*psid
, SMB_NTQUOTA_STRUCT
*qt
);
9689 int vfs_get_user_ntquota_list(files_struct
*fsp
, SMB_NTQUOTA_LIST
**qt_list
);
9690 void *init_quota_handle(TALLOC_CTX
*mem_ctx
);
9691 void destroy_quota_handle(void **pqt_handle
);
9693 /* The following definitions come from smbd/nttrans.c */
9695 void send_nt_replies(connection_struct
*conn
,
9696 struct smb_request
*req
, NTSTATUS nt_error
,
9697 char *params
, int paramsize
,
9698 char *pdata
, int datasize
);
9699 bool is_ntfs_stream_name(const char *fname
);
9700 void reply_ntcreate_and_X(struct smb_request
*req
);
9701 void reply_ntcancel(struct smb_request
*req
);
9702 void reply_ntrename(struct smb_request
*req
);
9703 void reply_nttrans(struct smb_request
*req
);
9704 void reply_nttranss(struct smb_request
*req
);
9706 /* The following definitions come from smbd/open.c */
9708 NTSTATUS
fd_close(files_struct
*fsp
);
9709 bool map_open_params_to_ntcreate(const char *fname
, int deny_mode
, int open_func
,
9710 uint32
*paccess_mask
,
9711 uint32
*pshare_mode
,
9712 uint32
*pcreate_disposition
,
9713 uint32
*pcreate_options
);
9714 NTSTATUS
open_file_ntcreate(connection_struct
*conn
,
9715 struct smb_request
*req
,
9717 SMB_STRUCT_STAT
*psbuf
,
9718 uint32 access_mask
, /* access bits (FILE_READ_DATA etc.) */
9719 uint32 share_access
, /* share constants (FILE_SHARE_READ etc) */
9720 uint32 create_disposition
, /* FILE_OPEN_IF etc. */
9721 uint32 create_options
, /* options such as delete on close. */
9722 uint32 new_dos_attributes
, /* attributes used for new file. */
9723 int oplock_request
, /* internal Samba oplock codes. */
9724 /* Information (FILE_EXISTS etc.) */
9726 files_struct
**result
);
9727 NTSTATUS
open_file_fchmod(connection_struct
*conn
, const char *fname
,
9728 SMB_STRUCT_STAT
*psbuf
, files_struct
**result
);
9729 NTSTATUS
close_file_fchmod(files_struct
*fsp
);
9730 NTSTATUS
open_directory(connection_struct
*conn
,
9731 struct smb_request
*req
,
9733 SMB_STRUCT_STAT
*psbuf
,
9735 uint32 share_access
,
9736 uint32 create_disposition
,
9737 uint32 create_options
,
9738 uint32 file_attributes
,
9740 files_struct
**result
);
9741 NTSTATUS
create_directory(connection_struct
*conn
, struct smb_request
*req
, const char *directory
);
9742 NTSTATUS
open_file_stat(connection_struct
*conn
, struct smb_request
*req
,
9743 const char *fname
, SMB_STRUCT_STAT
*psbuf
,
9744 files_struct
**result
);
9745 void msg_file_was_renamed(struct messaging_context
*msg
,
9748 struct server_id server_id
,
9750 NTSTATUS
create_file_unixpath(connection_struct
*conn
,
9751 struct smb_request
*req
,
9753 uint32_t access_mask
,
9754 uint32_t share_access
,
9755 uint32_t create_disposition
,
9756 uint32_t create_options
,
9757 uint32_t file_attributes
,
9758 uint32_t oplock_request
,
9759 SMB_BIG_UINT allocation_size
,
9760 struct security_descriptor
*sd
,
9761 struct ea_list
*ea_list
,
9763 files_struct
**result
,
9765 SMB_STRUCT_STAT
*psbuf
);
9766 NTSTATUS
create_file(connection_struct
*conn
,
9767 struct smb_request
*req
,
9768 uint16_t root_dir_fid
,
9770 uint32_t access_mask
,
9771 uint32_t share_access
,
9772 uint32_t create_disposition
,
9773 uint32_t create_options
,
9774 uint32_t file_attributes
,
9775 uint32_t oplock_request
,
9776 SMB_BIG_UINT allocation_size
,
9777 struct security_descriptor
*sd
,
9778 struct ea_list
*ea_list
,
9780 files_struct
**result
,
9782 SMB_STRUCT_STAT
*psbuf
);
9784 /* The following definitions come from smbd/oplock.c */
9786 int32
get_number_of_exclusive_open_oplocks(void);
9787 bool oplock_message_waiting(fd_set
*fds
);
9788 void process_kernel_oplocks(struct messaging_context
*msg_ctx
, fd_set
*pfds
);
9789 bool set_file_oplock(files_struct
*fsp
, int oplock_type
);
9790 void release_file_oplock(files_struct
*fsp
);
9791 bool remove_oplock(files_struct
*fsp
);
9792 bool downgrade_oplock(files_struct
*fsp
);
9793 int oplock_notify_fd(void);
9794 void reply_to_oplock_break_requests(files_struct
*fsp
);
9795 void release_level_2_oplocks_on_change(files_struct
*fsp
);
9796 void share_mode_entry_to_message(char *msg
, const struct share_mode_entry
*e
);
9797 void message_to_share_mode_entry(struct share_mode_entry
*e
, char *msg
);
9798 bool init_oplocks(struct messaging_context
*msg_ctx
);
9800 /* The following definitions come from smbd/oplock_irix.c */
9802 struct kernel_oplocks
*irix_init_kernel_oplocks(void) ;
9804 /* The following definitions come from smbd/oplock_linux.c */
9806 void linux_set_lease_capability(void);
9807 int linux_set_lease_sighandler(int fd
);
9808 int linux_setlease(int fd
, int leasetype
);
9809 struct kernel_oplocks
*linux_init_kernel_oplocks(void) ;
9811 /* The following definitions come from smbd/password.c */
9813 user_struct
*get_valid_user_struct(uint16 vuid
);
9814 bool is_partial_auth_vuid(uint16 vuid
);
9815 user_struct
*get_partial_auth_user_struct(uint16 vuid
);
9816 void invalidate_vuid(uint16 vuid
);
9817 void invalidate_all_vuids(void);
9818 int register_initial_vuid(void);
9819 int register_existing_vuid(uint16 vuid
,
9820 auth_serversupplied_info
*server_info
,
9821 DATA_BLOB session_key
,
9822 DATA_BLOB response_blob
,
9823 const char *smb_name
);
9824 void add_session_user(const char *user
);
9825 void add_session_workgroup(const char *workgroup
);
9826 const char *get_session_workgroup(void);
9827 bool user_in_netgroup(const char *user
, const char *ngname
);
9828 bool user_in_list(const char *user
,const char **list
);
9829 bool authorise_login(int snum
, fstring user
, DATA_BLOB password
,
9832 /* The following definitions come from smbd/pipes.c */
9834 void reply_open_pipe_and_X(connection_struct
*conn
, struct smb_request
*req
);
9835 void reply_pipe_write(struct smb_request
*req
);
9836 void reply_pipe_write_and_X(struct smb_request
*req
);
9837 void reply_pipe_read_and_X(struct smb_request
*req
);
9838 void reply_pipe_close(connection_struct
*conn
, struct smb_request
*req
);
9840 /* The following definitions come from smbd/posix_acls.c */
9842 NTSTATUS
unpack_nt_owners(int snum
, uid_t
*puser
, gid_t
*pgrp
, uint32 security_info_sent
, SEC_DESC
*psd
);
9843 SMB_ACL_T
free_empty_sys_acl(connection_struct
*conn
, SMB_ACL_T the_acl
);
9844 NTSTATUS
posix_fget_nt_acl(struct files_struct
*fsp
, uint32_t security_info
,
9846 NTSTATUS
posix_get_nt_acl(struct connection_struct
*conn
, const char *name
,
9847 uint32_t security_info
, SEC_DESC
**ppdesc
);
9848 int try_chown(connection_struct
*conn
, const char *fname
, uid_t uid
, gid_t gid
);
9849 NTSTATUS
set_nt_acl(files_struct
*fsp
, uint32 security_info_sent
, SEC_DESC
*psd
);
9850 int get_acl_group_bits( connection_struct
*conn
, const char *fname
, mode_t
*mode
);
9851 int chmod_acl(connection_struct
*conn
, const char *name
, mode_t mode
);
9852 int inherit_access_acl(connection_struct
*conn
, const char *inherit_from_dir
,
9853 const char *name
, mode_t mode
);
9854 int fchmod_acl(files_struct
*fsp
, mode_t mode
);
9855 bool directory_has_default_acl(connection_struct
*conn
, const char *fname
);
9856 bool set_unix_posix_default_acl(connection_struct
*conn
, const char *fname
, SMB_STRUCT_STAT
*psbuf
,
9857 uint16 num_def_acls
, const char *pdata
);
9858 bool set_unix_posix_acl(connection_struct
*conn
, files_struct
*fsp
, const char *fname
, uint16 num_acls
, const char *pdata
);
9859 SEC_DESC
*get_nt_acl_no_snum( TALLOC_CTX
*ctx
, const char *fname
);
9861 /* The following definitions come from smbd/process.c */
9863 bool srv_send_smb(int fd
, char *buffer
, bool do_encrypt
);
9864 int srv_set_message(char *buf
,
9868 void init_smb_request(struct smb_request
*req
,
9870 size_t unread_bytes
,
9872 void remove_deferred_open_smb_message(uint16 mid
);
9873 void schedule_deferred_open_smb_message(uint16 mid
);
9874 bool open_was_deferred(uint16 mid
);
9875 struct pending_message_list
*get_open_deferred_message(uint16 mid
);
9876 bool push_deferred_smb_message(struct smb_request
*req
,
9877 struct timeval request_time
,
9878 struct timeval timeout
,
9879 char *private_data
, size_t priv_len
);
9880 struct idle_event
*event_add_idle(struct event_context
*event_ctx
,
9881 TALLOC_CTX
*mem_ctx
,
9882 struct timeval interval
,
9884 bool (*handler
)(const struct timeval
*now
,
9885 void *private_data
),
9886 void *private_data
);
9887 NTSTATUS
allow_new_trans(struct trans_state
*list
, int mid
);
9888 void respond_to_all_remaining_local_messages(void);
9889 void reply_outbuf(struct smb_request
*req
, uint8 num_words
, uint32 num_bytes
);
9890 const char *smb_fn_name(int type
);
9891 void add_to_common_flags2(uint32 v
);
9892 void remove_from_common_flags2(uint32 v
);
9893 void construct_reply_common(const char *inbuf
, char *outbuf
);
9894 void chain_reply(struct smb_request
*req
);
9895 void check_reload(time_t t
);
9896 void smbd_process(void);
9898 /* The following definitions come from smbd/quotas.c */
9900 bool disk_quotas(const char *path
, SMB_BIG_UINT
*bsize
, SMB_BIG_UINT
*dfree
, SMB_BIG_UINT
*dsize
);
9901 bool disk_quotas(const char *path
, SMB_BIG_UINT
*bsize
, SMB_BIG_UINT
*dfree
, SMB_BIG_UINT
*dsize
);
9902 bool disk_quotas(const char *path
,
9903 SMB_BIG_UINT
*bsize
,
9904 SMB_BIG_UINT
*dfree
,
9905 SMB_BIG_UINT
*dsize
);
9906 bool disk_quotas(const char *path
, SMB_BIG_UINT
*bsize
, SMB_BIG_UINT
*dfree
, SMB_BIG_UINT
*dsize
);
9907 bool disk_quotas(const char *path
, SMB_BIG_UINT
*bsize
, SMB_BIG_UINT
*dfree
, SMB_BIG_UINT
*dsize
);
9908 bool disk_quotas(const char *path
, SMB_BIG_UINT
*bsize
, SMB_BIG_UINT
*dfree
, SMB_BIG_UINT
*dsize
);
9909 bool disk_quotas_vxfs(const char *name
, char *path
, SMB_BIG_UINT
*bsize
, SMB_BIG_UINT
*dfree
, SMB_BIG_UINT
*dsize
);
9910 bool disk_quotas(const char *path
,SMB_BIG_UINT
*bsize
,SMB_BIG_UINT
*dfree
,SMB_BIG_UINT
*dsize
);
9911 bool disk_quotas(const char *path
,SMB_BIG_UINT
*bsize
,SMB_BIG_UINT
*dfree
,SMB_BIG_UINT
*dsize
);
9913 /* The following definitions come from smbd/reply.c */
9915 NTSTATUS
check_path_syntax(char *path
);
9916 NTSTATUS
check_path_syntax_wcard(char *path
, bool *p_contains_wcard
);
9917 NTSTATUS
check_path_syntax_posix(char *path
);
9918 size_t srvstr_get_path_wcard(TALLOC_CTX
*ctx
,
9926 bool *contains_wcard
);
9927 size_t srvstr_get_path(TALLOC_CTX
*ctx
,
9935 bool check_fsp_open(connection_struct
*conn
, struct smb_request
*req
,
9936 files_struct
*fsp
, struct current_user
*user
);
9937 bool check_fsp(connection_struct
*conn
, struct smb_request
*req
,
9938 files_struct
*fsp
, struct current_user
*user
);
9939 bool fsp_belongs_conn(connection_struct
*conn
, struct smb_request
*req
,
9940 files_struct
*fsp
, struct current_user
*user
);
9941 void reply_special(char *inbuf
);
9942 void reply_tcon(struct smb_request
*req
);
9943 void reply_tcon_and_X(struct smb_request
*req
);
9944 void reply_unknown_new(struct smb_request
*req
, uint8 type
);
9945 void reply_ioctl(struct smb_request
*req
);
9946 void reply_checkpath(struct smb_request
*req
);
9947 void reply_getatr(struct smb_request
*req
);
9948 void reply_setatr(struct smb_request
*req
);
9949 void reply_dskattr(struct smb_request
*req
);
9950 void reply_search(struct smb_request
*req
);
9951 void reply_fclose(struct smb_request
*req
);
9952 void reply_open(struct smb_request
*req
);
9953 void reply_open_and_X(struct smb_request
*req
);
9954 void reply_ulogoffX(struct smb_request
*req
);
9955 void reply_mknew(struct smb_request
*req
);
9956 void reply_ctemp(struct smb_request
*req
);
9957 NTSTATUS
unlink_internals(connection_struct
*conn
, struct smb_request
*req
,
9958 uint32 dirtype
, const char *name_in
, bool has_wild
);
9959 void reply_unlink(struct smb_request
*req
);
9960 void send_file_readbraw(connection_struct
*conn
,
9965 void reply_readbraw(struct smb_request
*req
);
9966 void reply_lockread(struct smb_request
*req
);
9967 void reply_read(struct smb_request
*req
);
9968 void reply_read_and_X(struct smb_request
*req
);
9969 void error_to_writebrawerr(struct smb_request
*req
);
9970 void reply_writebraw(struct smb_request
*req
);
9971 void reply_writeunlock(struct smb_request
*req
);
9972 void reply_write(struct smb_request
*req
);
9973 bool is_valid_writeX_buffer(const uint8_t *inbuf
);
9974 void reply_write_and_X(struct smb_request
*req
);
9975 void reply_lseek(struct smb_request
*req
);
9976 void reply_flush(struct smb_request
*req
);
9977 void reply_exit(struct smb_request
*req
);
9978 void reply_close(struct smb_request
*req
);
9979 void reply_writeclose(struct smb_request
*req
);
9980 void reply_lock(struct smb_request
*req
);
9981 void reply_unlock(struct smb_request
*req
);
9982 void reply_tdis(struct smb_request
*req
);
9983 void reply_echo(struct smb_request
*req
);
9984 void reply_printopen(struct smb_request
*req
);
9985 void reply_printclose(struct smb_request
*req
);
9986 void reply_printqueue(struct smb_request
*req
);
9987 void reply_printwrite(struct smb_request
*req
);
9988 void reply_mkdir(struct smb_request
*req
);
9989 NTSTATUS
rmdir_internals(TALLOC_CTX
*ctx
,
9990 connection_struct
*conn
,
9991 const char *directory
);
9992 void reply_rmdir(struct smb_request
*req
);
9993 NTSTATUS
rename_internals_fsp(connection_struct
*conn
,
9996 const char *newname_last_component
,
9998 bool replace_if_exists
);
9999 NTSTATUS
rename_internals(TALLOC_CTX
*ctx
,
10000 connection_struct
*conn
,
10001 struct smb_request
*req
,
10002 const char *name_in
,
10003 const char *newname_in
,
10005 bool replace_if_exists
,
10007 bool dest_has_wild
,
10008 uint32_t access_mask
);
10009 void reply_mv(struct smb_request
*req
);
10010 NTSTATUS
copy_file(TALLOC_CTX
*ctx
,
10011 connection_struct
*conn
,
10016 bool target_is_directory
);
10017 void reply_copy(struct smb_request
*req
);
10018 uint32
get_lock_pid( char *data
, int data_offset
, bool large_file_format
);
10019 SMB_BIG_UINT
get_lock_count( char *data
, int data_offset
, bool large_file_format
);
10020 SMB_BIG_UINT
get_lock_offset( char *data
, int data_offset
, bool large_file_format
, bool *err
);
10021 void reply_lockingX(struct smb_request
*req
);
10022 void reply_readbmpx(struct smb_request
*req
);
10023 void reply_readbs(struct smb_request
*req
);
10024 void reply_setattrE(struct smb_request
*req
);
10025 void reply_writebmpx(struct smb_request
*req
);
10026 void reply_writebs(struct smb_request
*req
);
10027 void reply_getattrE(struct smb_request
*req
);
10029 /* The following definitions come from smbd/seal.c */
10031 uint16_t srv_enc_ctx(void);
10032 bool is_encrypted_packet(const uint8_t *inbuf
);
10033 void srv_free_enc_buffer(char *buf
);
10034 NTSTATUS
srv_decrypt_buffer(char *buf
);
10035 NTSTATUS
srv_encrypt_buffer(char *buf
, char **buf_out
);
10036 NTSTATUS
srv_request_encryption_setup(connection_struct
*conn
,
10037 unsigned char **ppdata
,
10038 size_t *p_data_size
,
10039 unsigned char **pparam
,
10040 size_t *p_param_size
);
10041 NTSTATUS
srv_encryption_start(connection_struct
*conn
);
10042 void server_encryption_shutdown(void);
10044 /* The following definitions come from smbd/sec_ctx.c */
10046 bool unix_token_equal(const UNIX_USER_TOKEN
*t1
, const UNIX_USER_TOKEN
*t2
);
10047 bool push_sec_ctx(void);
10048 void set_sec_ctx(uid_t uid
, gid_t gid
, int ngroups
, gid_t
*groups
, NT_USER_TOKEN
*token
);
10049 void set_root_sec_ctx(void);
10050 bool pop_sec_ctx(void);
10051 void init_sec_ctx(void);
10053 /* The following definitions come from smbd/server.c */
10055 int smbd_server_fd(void);
10056 int get_client_fd(void);
10057 int client_get_tcp_info(struct sockaddr_in
*server
, struct sockaddr_in
*client
);
10058 struct event_context
*smbd_event_context(void);
10059 struct messaging_context
*smbd_messaging_context(void);
10060 struct memcache
*smbd_memcache(void);
10061 void reload_printers(void);
10062 bool reload_services(bool test
);
10063 void exit_server(const char *const explanation
);
10064 void exit_server_cleanly(const char *const explanation
);
10065 void exit_server_fault(void);
10067 /* The following definitions come from smbd/service.c */
10069 bool set_conn_connectpath(connection_struct
*conn
, const char *connectpath
);
10070 bool set_current_service(connection_struct
*conn
, uint16 flags
, bool do_chdir
);
10071 void load_registry_shares(void);
10072 int add_home_service(const char *service
, const char *username
, const char *homedir
);
10073 int find_service(fstring service
);
10074 connection_struct
*make_connection_with_chdir(const char *service_in
,
10075 DATA_BLOB password
,
10076 const char *dev
, uint16 vuid
,
10078 connection_struct
*make_connection(const char *service_in
, DATA_BLOB password
,
10079 const char *pdev
, uint16 vuid
,
10081 void close_cnum(connection_struct
*conn
, uint16 vuid
);
10083 /* The following definitions come from smbd/session.c */
10085 bool session_init(void);
10086 bool session_claim(user_struct
*vuser
);
10087 void session_yield(user_struct
*vuser
);
10088 int list_sessions(TALLOC_CTX
*mem_ctx
, struct sessionid
**session_list
);
10090 /* The following definitions come from smbd/sesssetup.c */
10092 NTSTATUS
parse_spnego_mechanisms(DATA_BLOB blob_in
,
10093 DATA_BLOB
*pblob_out
,
10094 char **kerb_mechOID
);
10095 void reply_sesssetup_and_X(struct smb_request
*req
);
10097 /* The following definitions come from smbd/share_access.c */
10099 bool token_contains_name_in_list(const char *username
,
10100 const char *sharename
,
10101 const struct nt_user_token
*token
,
10102 const char **list
);
10103 bool user_ok_token(const char *username
, const struct nt_user_token
*token
, int snum
);
10104 bool is_share_read_only_for_token(const char *username
,
10105 const struct nt_user_token
*token
,
10106 connection_struct
*conn
);
10108 /* The following definitions come from smbd/srvstr.c */
10110 size_t srvstr_push_fn(const char *function
, unsigned int line
,
10111 const char *base_ptr
, uint16 smb_flags2
, void *dest
,
10112 const char *src
, int dest_len
, int flags
);
10113 ssize_t
message_push_string(uint8
**outbuf
, const char *str
, int flags
);
10115 /* The following definitions come from smbd/statcache.c */
10117 void stat_cache_add( const char *full_orig_name
,
10118 char *translated_path
,
10119 bool case_sensitive
);
10120 bool stat_cache_lookup(connection_struct
*conn
,
10124 SMB_STRUCT_STAT
*pst
);
10125 void send_stat_cache_delete_message(const char *name
);
10126 void stat_cache_delete(const char *name
);
10127 unsigned int fast_string_hash(TDB_DATA
*key
);
10128 bool reset_stat_cache( void );
10130 /* The following definitions come from smbd/statvfs.c */
10132 int sys_statvfs(const char *path
, vfs_statvfs_struct
*statbuf
);
10134 /* The following definitions come from smbd/trans2.c */
10136 SMB_BIG_UINT
smb_roundup(connection_struct
*conn
, SMB_BIG_UINT val
);
10137 SMB_BIG_UINT
get_allocation_size(connection_struct
*conn
, files_struct
*fsp
, const SMB_STRUCT_STAT
*sbuf
);
10138 NTSTATUS
get_ea_value(TALLOC_CTX
*mem_ctx
, connection_struct
*conn
,
10139 files_struct
*fsp
, const char *fname
,
10140 const char *ea_name
, struct ea_struct
*pea
);
10141 NTSTATUS
get_ea_names_from_file(TALLOC_CTX
*mem_ctx
, connection_struct
*conn
,
10142 files_struct
*fsp
, const char *fname
,
10143 char ***pnames
, size_t *pnum_names
);
10144 NTSTATUS
set_ea(connection_struct
*conn
, files_struct
*fsp
, const char *fname
, struct ea_list
*ea_list
);
10145 struct ea_list
*read_ea_list_entry(TALLOC_CTX
*ctx
, const char *pdata
, size_t data_size
, size_t *pbytes_used
);
10146 void send_trans2_replies(connection_struct
*conn
,
10147 struct smb_request
*req
,
10148 const char *params
,
10152 int max_data_bytes
);
10153 unsigned char *create_volume_objectid(connection_struct
*conn
, unsigned char objid
[16]);
10154 NTSTATUS
hardlink_internals(TALLOC_CTX
*ctx
,
10155 connection_struct
*conn
,
10156 const char *oldname_in
,
10157 const char *newname_in
);
10158 NTSTATUS
smb_set_file_time(connection_struct
*conn
,
10161 const SMB_STRUCT_STAT
*psbuf
,
10162 struct timespec ts
[2],
10163 bool setting_write_time
);
10164 void reply_findclose(struct smb_request
*req
);
10165 void reply_findnclose(struct smb_request
*req
);
10166 void reply_trans2(struct smb_request
*req
);
10167 void reply_transs2(struct smb_request
*req
);
10169 /* The following definitions come from smbd/uid.c */
10171 gid_t
get_current_user_gid_first(int *piterator
);
10172 gid_t
get_current_user_gid_next(int *piterator
);
10173 bool change_to_guest(void);
10174 bool change_to_user(connection_struct
*conn
, uint16 vuid
);
10175 bool change_to_root_user(void);
10176 bool become_authenticated_pipe_user(pipes_struct
*p
);
10177 bool unbecome_authenticated_pipe_user(void);
10178 void become_root(void);
10179 void unbecome_root(void);
10180 bool become_user(connection_struct
*conn
, uint16 vuid
);
10181 bool unbecome_user(void);
10183 /* The following definitions come from smbd/utmp.c */
10185 void sys_utmp_claim(const char *username
, const char *hostname
,
10186 const char *ip_addr_str
,
10187 const char *id_str
, int id_num
);
10188 void sys_utmp_yield(const char *username
, const char *hostname
,
10189 const char *ip_addr_str
,
10190 const char *id_str
, int id_num
);
10191 void sys_utmp_yield(const char *username
, const char *hostname
,
10192 const char *ip_addr_str
,
10193 const char *id_str
, int id_num
);
10194 void sys_utmp_claim(const char *username
, const char *hostname
,
10195 const char *ip_addr_str
,
10196 const char *id_str
, int id_num
);
10198 /* The following definitions come from smbd/vfs.c */
10200 NTSTATUS
smb_register_vfs(int version
, const char *name
, const vfs_op_tuple
*vfs_op_tuples
);
10201 bool vfs_init_custom(connection_struct
*conn
, const char *vfs_object
);
10202 void *vfs_add_fsp_extension_notype(vfs_handle_struct
*handle
, files_struct
*fsp
, size_t ext_size
);
10203 void vfs_remove_fsp_extension(vfs_handle_struct
*handle
, files_struct
*fsp
);
10204 void *vfs_memctx_fsp_extension(vfs_handle_struct
*handle
, files_struct
*fsp
);
10205 void *vfs_fetch_fsp_extension(vfs_handle_struct
*handle
, files_struct
*fsp
);
10206 bool smbd_vfs_init(connection_struct
*conn
);
10207 bool vfs_directory_exist(connection_struct
*conn
, const char *dname
, SMB_STRUCT_STAT
*st
);
10208 bool vfs_object_exist(connection_struct
*conn
,const char *fname
,SMB_STRUCT_STAT
*sbuf
);
10209 bool vfs_file_exist(connection_struct
*conn
, const char *fname
,SMB_STRUCT_STAT
*sbuf
);
10210 ssize_t
vfs_read_data(files_struct
*fsp
, char *buf
, size_t byte_count
);
10211 ssize_t
vfs_pread_data(files_struct
*fsp
, char *buf
,
10212 size_t byte_count
, SMB_OFF_T offset
);
10213 ssize_t
vfs_write_data(struct smb_request
*req
,
10215 const char *buffer
,
10217 ssize_t
vfs_pwrite_data(struct smb_request
*req
,
10219 const char *buffer
,
10222 int vfs_allocate_file_space(files_struct
*fsp
, SMB_BIG_UINT len
);
10223 int vfs_set_filelen(files_struct
*fsp
, SMB_OFF_T len
);
10224 int vfs_fill_sparse(files_struct
*fsp
, SMB_OFF_T len
);
10225 SMB_OFF_T
vfs_transfer_file(files_struct
*in
, files_struct
*out
, SMB_OFF_T n
);
10226 char *vfs_readdirname(connection_struct
*conn
, void *p
);
10227 int vfs_ChDir(connection_struct
*conn
, const char *path
);
10228 char *vfs_GetWd(TALLOC_CTX
*ctx
, connection_struct
*conn
);
10229 NTSTATUS
check_reduced_name(connection_struct
*conn
, const char *fname
);
10231 /* The following definitions come from torture/denytest.c */
10233 bool torture_denytest1(int dummy
);
10234 bool torture_denytest2(int dummy
);
10236 /* The following definitions come from torture/mangle_test.c */
10238 bool torture_mangle(int dummy
);
10240 /* The following definitions come from torture/nbio.c */
10242 double nbio_total(void);
10243 void nb_alarm(int ignore
);
10244 void nbio_shmem(int n
);
10245 void nb_setup(struct cli_state
*cli
);
10246 void nb_unlink(const char *fname
);
10247 void nb_createx(const char *fname
,
10248 unsigned create_options
, unsigned create_disposition
, int handle
);
10249 void nb_writex(int handle
, int offset
, int size
, int ret_size
);
10250 void nb_readx(int handle
, int offset
, int size
, int ret_size
);
10251 void nb_close(int handle
);
10252 void nb_rmdir(const char *fname
);
10253 void nb_rename(const char *oldname
, const char *newname
);
10254 void nb_qpathinfo(const char *fname
);
10255 void nb_qfileinfo(int fnum
);
10256 void nb_qfsinfo(int level
);
10257 void nb_findfirst(const char *mask
);
10258 void nb_flush(int fnum
);
10259 void nb_deltree(const char *dname
);
10260 void nb_cleanup(void);
10262 /* The following definitions come from torture/scanner.c */
10264 bool torture_trans2_scan(int dummy
);
10265 bool torture_nttrans_scan(int dummy
);
10267 /* The following definitions come from torture/torture.c */
10269 void start_timer(void);
10270 double end_timer(void);
10271 void *shm_setup(int size
);
10272 bool smbcli_parse_unc(const char *unc_name
, TALLOC_CTX
*mem_ctx
,
10273 char **hostname
, char **sharename
);
10274 void torture_open_connection_free_unclist(char **unc_list
);
10275 bool torture_open_connection(struct cli_state
**c
, int conn_index
);
10276 bool torture_cli_session_setup2(struct cli_state
*cli
, uint16
*new_vuid
);
10277 bool torture_close_connection(struct cli_state
*c
);
10278 bool torture_ioctl_test(int dummy
);
10279 bool torture_chkpath_test(int dummy
);
10281 /* The following definitions come from torture/utable.c */
10283 bool torture_utable(int dummy
);
10284 bool torture_casetable(int dummy
);
10286 /* The following definitions come from utils/passwd_util.c */
10288 char *stdin_new_passwd( void);
10289 char *get_pass( const char *prompt
, bool stdin_get
);
10291 /* The following definitions come from winbindd/idmap.c */
10293 bool idmap_is_offline(void);
10294 NTSTATUS
smb_register_idmap(int version
, const char *name
,
10295 struct idmap_methods
*methods
);
10296 NTSTATUS
smb_register_idmap_alloc(int version
, const char *name
,
10297 struct idmap_alloc_methods
*methods
);
10298 NTSTATUS
idmap_close(void);
10299 NTSTATUS
idmap_init_cache(void);
10300 NTSTATUS
idmap_init(void);
10301 NTSTATUS
idmap_allocate_uid(struct unixid
*id
);
10302 NTSTATUS
idmap_allocate_gid(struct unixid
*id
);
10303 NTSTATUS
idmap_set_uid_hwm(struct unixid
*id
);
10304 NTSTATUS
idmap_set_gid_hwm(struct unixid
*id
);
10305 NTSTATUS
idmap_unixids_to_sids(struct id_map
**ids
);
10306 NTSTATUS
idmap_sids_to_unixids(struct id_map
**ids
);
10307 NTSTATUS
idmap_set_mapping(const struct id_map
*id
);
10308 char *idmap_fetch_secret(const char *backend
, bool alloc
,
10309 const char *domain
, const char *identity
);
10311 /* The following definitions come from winbindd/idmap_cache.c */
10313 struct idmap_cache_ctx
*idmap_cache_init(TALLOC_CTX
*memctx
);
10314 void idmap_cache_shutdown(struct idmap_cache_ctx
*cache
);
10315 NTSTATUS
idmap_cache_build_sidkey(TALLOC_CTX
*ctx
, char **sidkey
, const struct id_map
*id
);
10316 NTSTATUS
idmap_cache_build_idkey(TALLOC_CTX
*ctx
, char **idkey
, const struct id_map
*id
);
10317 NTSTATUS
idmap_cache_set(struct idmap_cache_ctx
*cache
, const struct id_map
*id
);
10318 NTSTATUS
idmap_cache_set_negative_sid(struct idmap_cache_ctx
*cache
, const struct id_map
*id
);
10319 NTSTATUS
idmap_cache_set_negative_id(struct idmap_cache_ctx
*cache
, const struct id_map
*id
);
10320 NTSTATUS
idmap_cache_fill_map(struct id_map
*id
, const char *value
);
10321 bool idmap_cache_is_negative(const char *val
);
10322 NTSTATUS
idmap_cache_map_sid(struct idmap_cache_ctx
*cache
, struct id_map
*id
);
10323 NTSTATUS
idmap_cache_map_id(struct idmap_cache_ctx
*cache
, struct id_map
*id
);
10325 /* The following definitions come from winbindd/idmap_ldap.c */
10327 NTSTATUS
idmap_alloc_ldap_init(void);
10328 NTSTATUS
idmap_ldap_init(void);
10330 /* The following definitions come from winbindd/idmap_nss.c */
10332 NTSTATUS
idmap_nss_init(void);
10334 /* The following definitions come from winbindd/idmap_passdb.c */
10336 NTSTATUS
idmap_passdb_init(void);
10338 /* The following definitions come from winbindd/idmap_tdb.c */
10340 bool idmap_tdb_tdb_close(TDB_CONTEXT
*tdbctx
);
10341 NTSTATUS
idmap_alloc_tdb_init(void);
10342 NTSTATUS
idmap_tdb_init(void);
10344 /* The following definitions come from winbindd/idmap_util.c */
10346 NTSTATUS
idmap_uid_to_sid(DOM_SID
*sid
, uid_t uid
);
10347 NTSTATUS
idmap_gid_to_sid(DOM_SID
*sid
, gid_t gid
);
10348 NTSTATUS
idmap_sid_to_uid(DOM_SID
*sid
, uid_t
*uid
);
10349 NTSTATUS
idmap_sid_to_gid(DOM_SID
*sid
, gid_t
*gid
);
10351 /* The following definitions come from winbindd/nss_info.c */
10354 /* The following definitions come from winbindd/nss_info_template.c */
10356 NTSTATUS
nss_info_template_init( void );
10358 #endif /* _PROTO_H_ */