summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-12-01 18:47:29 +0000
committerLuke Leighton <lkcl@samba.org>1999-12-01 18:47:29 +0000
commitd9cc4c39504534da0f4cd2569c724de4909ebd79 (patch)
treeeea6f3546c9862fe53434a7120bff7a5356d2070 /source3/rpcclient
parent106fe88be01f7ac7d1369e97a6468dcd80c0a813 (diff)
downloadsamba-d9cc4c39504534da0f4cd2569c724de4909ebd79.tar.gz
samba-d9cc4c39504534da0f4cd2569c724de4909ebd79.tar.bz2
samba-d9cc4c39504534da0f4cd2569c724de4909ebd79.zip
improving createuser account command to be able to add workstations
and then set a default random password. (This used to be commit 7846818432a93295651c8c67445a2d6a0f3b21d8)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_samr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c
index f38587ceb6..a8ab18f6b8 100644
--- a/source3/rpcclient/cmd_samr.c
+++ b/source3/rpcclient/cmd_samr.c
@@ -749,7 +749,8 @@ void cmd_sam_create_dom_user(struct client_info *info, int argc, char *argv[])
pwdb_encode_acct_ctrl(acb_info, NEW_PW_FORMAT_SPACE_PADDED_LEN));
if (msrpc_sam_create_dom_user(srv_name, &sid1,
- acct_name, acb_info, &user_rid))
+ acct_name, acb_info, NULL,
+ &user_rid))
{
report(out_hnd, "Create Domain User: OK\n");
}
@@ -1863,7 +1864,7 @@ void cmd_sam_set_userinfo(struct client_info *info, int argc, char *argv[])
if (True)
{
SAM_USER_INFO_24 *p = (SAM_USER_INFO_24*)malloc(sizeof(SAM_USER_INFO_24));
- make_sam_user_info24(p, pwbuf);
+ make_sam_user_info24(p, pwbuf, strlen(password));
usr = p;
switch_value = 24;