diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-04-27 06:36:39 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:51:35 -0500 |
commit | 16d3528ebc5d82f25240700aaa3b3d67bff3049f (patch) | |
tree | 162c1ca9814bf0418d5314d9f15f387d024943e9 /source4/torture/rpc/samr.c | |
parent | 2cabf613e36e9d1ca0374d96b9028220b7fe15f5 (diff) | |
download | samba-16d3528ebc5d82f25240700aaa3b3d67bff3049f.tar.gz samba-16d3528ebc5d82f25240700aaa3b3d67bff3049f.tar.bz2 samba-16d3528ebc5d82f25240700aaa3b3d67bff3049f.zip |
r372: automatically create a fake BDC machine account and delete it
afterwards for the RPC-NETLOGON test. This makes it much simpler to
run the test and also means that it doesn't distrurb any existing
domain join you might have.
(This used to be commit feac996794d5cc16e3612fb2901668a9b1e1d274)
Diffstat (limited to 'source4/torture/rpc/samr.c')
-rw-r--r-- | source4/torture/rpc/samr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c index a41ac16a99..d4f125234f 100644 --- a/source4/torture/rpc/samr.c +++ b/source4/torture/rpc/samr.c @@ -339,7 +339,7 @@ static BOOL test_SetUserPass(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, s.in.level = 24; encode_pw_buffer(u.info24.password.data, newpass, STR_UNICODE); - u.info24.pw_len = 24; + u.info24.pw_len = strlen(newpass); status = dcerpc_fetch_session_key(p, session_key); if (!NT_STATUS_IS_OK(status)) { @@ -926,8 +926,8 @@ static BOOL test_alias_ops(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, } -static BOOL test_DeleteUser_byname(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, - struct policy_handle *handle, const char *name) +BOOL test_DeleteUser_byname(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, + struct policy_handle *handle, const char *name) { NTSTATUS status; struct samr_DeleteUser d; |