summaryrefslogtreecommitdiff
path: root/source4/torture/libnet
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2008-04-19 14:09:18 +0200
committerKai Blin <kai@samba.org>2008-04-24 11:17:23 +0200
commit240d959005f5fd80a38b3734b39dd5d6e425a566 (patch)
tree55a8d1e7bfb9dee4783b545f615661d46e1e55e4 /source4/torture/libnet
parentb8209978d708d69dbd4cb1ecd817274566de23ec (diff)
downloadsamba-240d959005f5fd80a38b3734b39dd5d6e425a566.tar.gz
samba-240d959005f5fd80a38b3734b39dd5d6e425a566.tar.bz2
samba-240d959005f5fd80a38b3734b39dd5d6e425a566.zip
libnet: Make UserInfo accept a SID as input as well, fix wb_cmd_getpwuid
(This used to be commit 5f3a70f285ad8a412105c0e498e486f93fc279bc)
Diffstat (limited to 'source4/torture/libnet')
-rw-r--r--source4/torture/libnet/libnet_user.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/torture/libnet/libnet_user.c b/source4/torture/libnet/libnet_user.c
index 15e3f03506..6d3e682976 100644
--- a/source4/torture/libnet/libnet_user.c
+++ b/source4/torture/libnet/libnet_user.c
@@ -530,7 +530,8 @@ bool torture_modifyuser(struct torture_context *torture)
ZERO_STRUCT(user_req);
user_req.in.domain_name = lp_workgroup(torture->lp_ctx);
- user_req.in.user_name = name;
+ user_req.in.data.user_name = name;
+ user_req.in.level = USER_INFO_BY_NAME;
status = libnet_UserInfo(ctx, torture, &user_req);
if (!NT_STATUS_IS_OK(status)) {
@@ -642,7 +643,8 @@ bool torture_userinfo_api(struct torture_context *torture)
ZERO_STRUCT(req);
req.in.domain_name = domain_name.string;
- req.in.user_name = name;
+ req.in.data.user_name = name;
+ req.in.level = USER_INFO_BY_NAME;
status = libnet_UserInfo(ctx, mem_ctx, &req);
if (!NT_STATUS_IS_OK(status)) {