diff options
author | Luke Leighton <lkcl@samba.org> | 1999-09-21 21:04:03 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-09-21 21:04:03 +0000 |
commit | 0a6eac0b79dd818ca747423c228eca876faf10af (patch) | |
tree | 4486d7820f6ec848632e874fabb57c898e6c8037 /source3/rpc_client | |
parent | 701f9ed2c97ad50a4258e278a3674b8f5a747d8e (diff) | |
download | samba-0a6eac0b79dd818ca747423c228eca876faf10af.tar.gz samba-0a6eac0b79dd818ca747423c228eca876faf10af.tar.bz2 samba-0a6eac0b79dd818ca747423c228eca876faf10af.zip |
testing for attempts to get more info levels into samr_query_userinfo
(This used to be commit cc19d5cc5c20665beb3b7c5fcf7787d54e37ea71)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/cli_samr.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source3/rpc_client/cli_samr.c b/source3/rpc_client/cli_samr.c index 57ee3d58c7..7071786499 100644 --- a/source3/rpc_client/cli_samr.c +++ b/source3/rpc_client/cli_samr.c @@ -309,14 +309,12 @@ do a SAMR query user info BOOL get_samr_query_userinfo(struct cli_state *cli, uint16 fnum, POLICY_HND *pol_open_domain, uint32 info_level, - uint32 user_rid, SAM_USER_INFO_21 *usr) + uint32 user_rid, void *usr) { POLICY_HND pol_open_user; BOOL ret = True; - if (pol_open_domain == NULL || usr == NULL) return False; - - bzero(usr, sizeof(*usr)); + if (pol_open_domain == NULL) return False; /* send open domain (on user sid) */ if (!samr_open_user(cli, fnum, @@ -330,7 +328,7 @@ BOOL get_samr_query_userinfo(struct cli_state *cli, uint16 fnum, /* send user info query */ if (!samr_query_userinfo(cli, fnum, &pol_open_user, - info_level, (void*)usr)) + info_level, usr)) { DEBUG(5,("samr_query_userinfo: error in query user info, level 0x%x\n", info_level)); @@ -2329,7 +2327,7 @@ BOOL samr_query_userinfo(struct cli_state *cli, uint16 fnum, DEBUG(4,("SAMR Query User Info. level: %d\n", switch_value)); - if (pol == NULL || usr == NULL || switch_value == 0) return False; + if (pol == NULL || switch_value == 0) return False; /* create and send a MSRPC command with api SAMR_QUERY_USERINFO */ |