summaryrefslogtreecommitdiff
path: root/source3/rpcclient/cmd_samr.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-12-01 20:18:21 +0000
committerLuke Leighton <lkcl@samba.org>1999-12-01 20:18:21 +0000
commitf6c5f755681a5b595b7d5f5fefc6394e9001a3e4 (patch)
treecfe5dcc67cd95e17b78a49b1f6a534dddecc0e64 /source3/rpcclient/cmd_samr.c
parent86ac6fa9389532bc0e39b4da2fb73766cf29aeb9 (diff)
downloadsamba-f6c5f755681a5b595b7d5f5fefc6394e9001a3e4.tar.gz
samba-f6c5f755681a5b595b7d5f5fefc6394e9001a3e4.tar.bz2
samba-f6c5f755681a5b595b7d5f5fefc6394e9001a3e4.zip
damn, that took a while. nt login password was being stored incorrectly
in private .mac file (oops). ntlogin test now works. (This used to be commit c98c66690683965612e9631d77c2dff91ec8a872)
Diffstat (limited to 'source3/rpcclient/cmd_samr.c')
-rw-r--r--source3/rpcclient/cmd_samr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c
index 33deb77f4c..9cbd24f2b1 100644
--- a/source3/rpcclient/cmd_samr.c
+++ b/source3/rpcclient/cmd_samr.c
@@ -770,12 +770,12 @@ void cmd_sam_create_dom_user(struct client_info *info, int argc, char *argv[])
if (acb_info == ACB_WSTRUST || acb_info == ACB_SVRTRUST)
{
- upw.uni_str_len = 24;
- upw.uni_max_len = 24;
+ upw.uni_str_len = 12;
+ upw.uni_max_len = 12;
generate_random_buffer((uchar*)upw.buffer,
- upw.uni_str_len, True);
+ upw.uni_str_len*2, True);
password = (char*)upw.buffer;
- plen = upw.uni_str_len;
+ plen = upw.uni_str_len * 2;
}
if (msrpc_sam_create_dom_user(srv_name, &sid1,