summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-12-02 22:48:00 +0000
committerLuke Leighton <lkcl@samba.org>1998-12-02 22:48:00 +0000
commit6429d682f9c156671ae7ba91d9075733c78e5a53 (patch)
tree23853fbbc29d38b9b713c620539ece51f585eaff /source3
parent447359979c1bc7945548f284e09fa02bd5199c30 (diff)
downloadsamba-6429d682f9c156671ae7ba91d9075733c78e5a53.tar.gz
samba-6429d682f9c156671ae7ba91d9075733c78e5a53.tar.bz2
samba-6429d682f9c156671ae7ba91d9075733c78e5a53.zip
jeremy's going to do me in, again.
jean-francois' going to get annoyed, again. andrew's going to threaten to take cvs access away, again. missed compilation of this file when updating sam_unknown_12 call. (This used to be commit 74f826af36a7af4e91f9325d11ef8432d343c3bd)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/cli_samr.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/source3/rpc_client/cli_samr.c b/source3/rpc_client/cli_samr.c
index c51fcd42e8..eb1acb2524 100644
--- a/source3/rpc_client/cli_samr.c
+++ b/source3/rpc_client/cli_samr.c
@@ -539,15 +539,15 @@ do a SAMR Query Unknown 12
****************************************************************************/
BOOL do_samr_query_unknown_12(struct cli_state *cli,
POLICY_HND *pol, uint32 rid, uint32 num_gids, uint32 *gids,
- uint32 *num_aliases,
- fstring als_names [MAX_LOOKUP_SIDS],
- uint32 num_als_users[MAX_LOOKUP_SIDS])
+ uint32 *num_names,
+ fstring names[MAX_LOOKUP_SIDS],
+ uint32 type [MAX_LOOKUP_SIDS])
{
prs_struct data;
prs_struct rdata;
SAMR_Q_UNKNOWN_12 q_o;
- BOOL valid_query = False;
+ BOOL valid_query = False;
/* create and send a MSRPC command with api SAMR_UNKNOWN_12 */
@@ -557,7 +557,7 @@ BOOL do_samr_query_unknown_12(struct cli_state *cli,
DEBUG(4,("SAMR Query Unknown 12.\n"));
if (pol == NULL || rid == 0 || num_gids == 0 || gids == NULL ||
- num_aliases == NULL || als_names == NULL || num_als_users == NULL ) return False;
+ num_names == NULL || names == NULL || type == NULL ) return False;
/* store the parameters */
make_samr_q_unknown_12(&q_o, pol, rid, num_gids, gids);
@@ -583,27 +583,27 @@ BOOL do_samr_query_unknown_12(struct cli_state *cli,
if (p)
{
- if (r_o.ptr_aliases != 0 && r_o.ptr_als_usrs != 0 &&
- r_o.num_als_usrs1 == r_o.num_aliases1)
+ if (r_o.ptr_names != 0 && r_o.ptr_types != 0 &&
+ r_o.num_types1 == r_o.num_names1)
{
int i;
valid_query = True;
- *num_aliases = r_o.num_aliases1;
+ *num_names = r_o.num_names1;
- for (i = 0; i < r_o.num_aliases1; i++)
+ for (i = 0; i < r_o.num_names1; i++)
{
- fstrcpy(als_names[i], unistrn2(r_o.uni_als_name[i].buffer, r_o.uni_als_name[i].uni_str_len));
+ fstrcpy(names[i], unistr2_to_str(&r_o.uni_name[i]));
}
- for (i = 0; i < r_o.num_als_usrs1; i++)
+ for (i = 0; i < r_o.num_types1; i++)
{
- num_als_users[i] = r_o.num_als_usrs[i];
+ type[i] = r_o.type[i];
}
}
- else if (r_o.ptr_aliases == 0 && r_o.ptr_als_usrs == 0)
+ else if (r_o.ptr_names == 0 && r_o.ptr_types == 0)
{
valid_query = True;
- *num_aliases = 0;
+ *num_names = 0;
}
else
{