summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-11-27 20:29:16 +0000
committerLuke Leighton <lkcl@samba.org>1999-11-27 20:29:16 +0000
commit015dc121ea507dfd6c1011985ad6ac3ba422fa14 (patch)
tree7037f749d9010e60accd077b38e9e09246071e1e /source3/include
parent4c92992b4e9797f34113251c00a99eafa97958bf (diff)
downloadsamba-015dc121ea507dfd6c1011985ad6ac3ba422fa14.tar.gz
samba-015dc121ea507dfd6c1011985ad6ac3ba422fa14.tar.bz2
samba-015dc121ea507dfd6c1011985ad6ac3ba422fa14.zip
enhanced samuser command to do same thing as enumusers command (-g -u -a)
except with only one user. done by sharing same code. (This used to be commit 4e029d50fcb9148f2d65c6be2703b1003e68cec7)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h23
1 files changed, 21 insertions, 2 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 3380bc4e63..d9af7c5e4f 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -2158,7 +2158,7 @@ BOOL msrpc_lsa_query_secret(const char* srv_name,
/*The following definitions come from rpc_client/msrpc_samr.c */
-BOOL req_user_info( POLICY_HND *pol_dom,
+BOOL req_user_info( const POLICY_HND *pol_dom,
const char *domain,
const DOM_SID *sid,
uint32 user_rid,
@@ -2174,6 +2174,24 @@ uint32 sam_query_usergroups(
char ***name,
uint32 **type,
USER_MEM_FN(usr_mem));
+void msrpc_sam_user( const POLICY_HND *pol_dom, const POLICY_HND *pol_blt,
+ const char* domain,
+ const DOM_SID *sid1,
+ const DOM_SID *blt_sid1,
+ uint32 user_rid,
+ char *user_name,
+ USER_FN(usr_fn),
+ USER_INFO_FN(usr_inf_fn),
+ USER_MEM_FN(usr_grp_fn),
+ USER_MEM_FN(usr_als_fn));
+BOOL msrpc_sam_query_user( const char* srv_name,
+ const char* domain,
+ const DOM_SID *sid,
+ char *user_name,
+ USER_FN(usr_fn),
+ USER_INFO_FN(usr_inf_fn),
+ USER_MEM_FN(usr_grp_fn),
+ USER_MEM_FN(usr_als_fn));
int msrpc_sam_enum_users( const char* srv_name,
const char* domain,
const DOM_SID *sid1,
@@ -2279,7 +2297,7 @@ BOOL set_samr_set_userinfo(
uint32 info_level,
uint32 user_rid, void *usr);
BOOL get_samr_query_userinfo(
- POLICY_HND *pol_open_domain,
+ const POLICY_HND *pol_open_domain,
uint32 info_level,
uint32 user_rid, void *usr);
BOOL get_samr_query_groupinfo(
@@ -3823,6 +3841,7 @@ void display_job_info_ctr(FILE *out_hnd, enum action_type action,
/*The following definitions come from rpcclient/rpcclient.c */
+void readline_init(void);
/*The following definitions come from smbd/blocking.c */