summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-10-14 06:29:20 +0000
committerLuke Leighton <lkcl@samba.org>1998-10-14 06:29:20 +0000
commit935dc98f6670ba630bd2086ef9eddcc94a0562e2 (patch)
tree7e6fce2b60b7687057824dcc04aa8f76e649969c /source3/rpcclient
parent99208208fa37483f2a97c004355628423e0c40eb (diff)
downloadsamba-935dc98f6670ba630bd2086ef9eddcc94a0562e2.tar.gz
samba-935dc98f6670ba630bd2086ef9eddcc94a0562e2.tar.bz2
samba-935dc98f6670ba630bd2086ef9eddcc94a0562e2.zip
dce/rpc
(This used to be commit 69f5f9f88935de1f63ffc9aa19c0629b395e66e6)
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 81fd373613..2b5fe909ab 100644
--- a/source3/rpcclient/cmd_samr.c
+++ b/source3/rpcclient/cmd_samr.c
@@ -80,7 +80,7 @@ void cmd_sam_ntchange_pwd(struct client_info *info)
E_old_pw_hash(lm_newhash, nt_oldhash, nt_hshhash);
/* open SAMR session. */
- res = res ? cli_nt_session_open(smb_cli, PIPE_SAMR, False) : False;
+ res = res ? cli_nt_session_open(smb_cli, PIPE_SAMR, True) : False;
/* establish a connection. */
res = res ? do_samr_unknown_38(smb_cli, srv_name) : False;
@@ -119,12 +119,13 @@ void cmd_sam_test(struct client_info *info)
fstrcpy(sid , info->dom.level5_sid);
fstrcpy(domain, info->dom.level5_dom);
+/*
if (strlen(sid) == 0)
{
fprintf(out_hnd, "please use 'lsaquery' first, to ascertain the SID\n");
return;
}
-
+*/
fstrcpy(srv_name, "\\\\");
fstrcat(srv_name, info->dest_host);
strupper(srv_name);