summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-10-21 16:53:50 +0000
committerLuke Leighton <lkcl@samba.org>1999-10-21 16:53:50 +0000
commit6f9105c853020fde1691a28cd707d6d3f6561b4d (patch)
tree0ecbb34e5b647bf7fc7c967abe14e024cad2ff74 /source3/rpcclient
parent6af79fb09dc17f4d441dac6e29689c4ee9be5aa7 (diff)
downloadsamba-6f9105c853020fde1691a28cd707d6d3f6561b4d.tar.gz
samba-6f9105c853020fde1691a28cd707d6d3f6561b4d.tar.bz2
samba-6f9105c853020fde1691a28cd707d6d3f6561b4d.zip
various. debug levels changed. nmbd doesn't need libsmb/clienttrust.c.
samr_lookup_rids() moved to a dynamic memory structure not a static one limited to 32 RIDs. cli_pipe.c reading wasn't checking ERRmoredata when DOS error codes negotiated (this terminates MSRPC code with prejudice). (This used to be commit 8976eca2db43576c32069dcda017e8777048e007)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_netlogon.c9
-rw-r--r--source3/rpcclient/cmd_samr.c2
2 files changed, 7 insertions, 4 deletions
diff --git a/source3/rpcclient/cmd_netlogon.c b/source3/rpcclient/cmd_netlogon.c
index ce4d727d34..c9eee7bf8a 100644
--- a/source3/rpcclient/cmd_netlogon.c
+++ b/source3/rpcclient/cmd_netlogon.c
@@ -36,6 +36,7 @@ extern int DEBUGLEVEL;
extern struct cli_state *smb_cli;
extern FILE* out_hnd;
+extern pstring global_myname;
/****************************************************************************
@@ -93,7 +94,7 @@ void cmd_netlogon_login_test(struct client_info *info)
res = res ? cli_nt_session_open(smb_cli, PIPE_NETLOGON, &nt_pipe_fnum) : False;
res = res ? cli_nt_setup_creds(smb_cli, nt_pipe_fnum,
- smb_cli->mach_acct,
+ smb_cli->mach_acct, global_myname,
trust_passwd, SEC_CHAN_WKSTA) == 0x0 : False;
#if 0
@@ -165,7 +166,8 @@ void cmd_netlogon_domain_test(struct client_info *info)
res = res ? cli_nt_session_open(smb_cli, PIPE_NETLOGON, &nt_pipe_fnum) : False;
res = res ? cli_nt_setup_creds(smb_cli, nt_pipe_fnum, inter_dom_acct,
- trust_passwd, SEC_CHAN_DOMAIN) == 0x0 : False;
+ trust_passwd, global_myname,
+ SEC_CHAN_DOMAIN) == 0x0 : False;
memset(trust_passwd, 0, 16);
@@ -193,7 +195,8 @@ void cmd_sam_sync(struct client_info *info)
return;
}
- if (do_sam_sync(smb_cli, trust_passwd, hdr_deltas, deltas, &num))
+ if (do_sam_sync(smb_cli, global_myname,
+ trust_passwd, hdr_deltas, deltas, &num))
{
display_sam_sync(out_hnd, ACTION_HEADER , hdr_deltas, deltas, num);
display_sam_sync(out_hnd, ACTION_ENUMERATE, hdr_deltas, deltas, num);
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c
index 130790e416..9b12e3581c 100644
--- a/source3/rpcclient/cmd_samr.c
+++ b/source3/rpcclient/cmd_samr.c
@@ -1381,7 +1381,7 @@ int msrpc_sam_enum_users(struct client_info *info,
/* read some users */
res = res ? samr_enum_dom_users(smb_cli, fnum,
&info->dom.samr_pol_open_domain,
- start_idx, acb_mask, unk_1, 0x8000,
+ start_idx, acb_mask, unk_1, 0xf0000000,
&info->dom.sam, &info->dom.num_sam_entries) : False;
if (res && info->dom.num_sam_entries == 0)