diff options
author | Luke Leighton <lkcl@samba.org> | 1999-12-01 20:18:21 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-12-01 20:18:21 +0000 |
commit | f6c5f755681a5b595b7d5f5fefc6394e9001a3e4 (patch) | |
tree | cfe5dcc67cd95e17b78a49b1f6a534dddecc0e64 /source3/rpcclient | |
parent | 86ac6fa9389532bc0e39b4da2fb73766cf29aeb9 (diff) | |
download | samba-f6c5f755681a5b595b7d5f5fefc6394e9001a3e4.tar.gz samba-f6c5f755681a5b595b7d5f5fefc6394e9001a3e4.tar.xz 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')
-rw-r--r-- | source3/rpcclient/cmd_netlogon.c | 2 | ||||
-rw-r--r-- | source3/rpcclient/cmd_samr.c | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/source3/rpcclient/cmd_netlogon.c b/source3/rpcclient/cmd_netlogon.c index 89e52ed7797..910d75e1f70 100644 --- a/source3/rpcclient/cmd_netlogon.c +++ b/source3/rpcclient/cmd_netlogon.c @@ -171,10 +171,12 @@ void cmd_netlogon_login_test(struct client_info *info, int argc, char *argv[]) /*** clear out the password ***/ memset(password, 0, sizeof(password)); +#if 0 /* ok! you're logged in! do anything you like, then... */ /* do an NT logout */ res = res ? cli_nt_logoff(srv_name, info->myhostname, &info->dom.ctr) : False; +#endif report(out_hnd,"cmd_nt_login: login (%s) test succeeded: %s\n", nt_user_name, BOOLSTR(res)); diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c index 33deb77f4c9..9cbd24f2b15 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, |