diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-07-28 07:35:30 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:30:09 -0500 |
commit | aa233ffd1fbf29262480f2c145e9d6a59e0fe59b (patch) | |
tree | 3904d0fb4841b7932025fbab4bbd5ef632575c00 /source4 | |
parent | 4804b2251af28cc851de351cc84f4566d2286485 (diff) | |
download | samba-aa233ffd1fbf29262480f2c145e9d6a59e0fe59b.tar.gz samba-aa233ffd1fbf29262480f2c145e9d6a59e0fe59b.tar.bz2 samba-aa233ffd1fbf29262480f2c145e9d6a59e0fe59b.zip |
r8824: Fix indentation, and don't send 'invalid' LM password.
Andrew Bartlett
(This used to be commit a1c1aecc7e4688cb377ca9322238c27de8fdc69c)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/rpc/samlogon.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source4/torture/rpc/samlogon.c b/source4/torture/rpc/samlogon.c index a7d57899aa..fb7871f486 100644 --- a/source4/torture/rpc/samlogon.c +++ b/source4/torture/rpc/samlogon.c @@ -1188,7 +1188,9 @@ static BOOL test_InteractiveLogon(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, pinfo.identity_info.account_name.string = account_name; pinfo.identity_info.workstation.string = TEST_MACHINE_NAME; - E_deshash(plain_pass, pinfo.lmpassword.hash); + if (!E_deshash(plain_pass, pinfo.lmpassword.hash)) { + ZERO_STRUCT(pinfo.lmpassword.hash); + } E_md4hash(plain_pass, pinfo.ntpassword.hash); if (creds->negotiate_flags & NETLOGON_NEG_ARCFOUR) { @@ -1202,7 +1204,8 @@ static BOOL test_InteractiveLogon(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, printf("Testing netr_LogonSamLogonWithFlags (Interactive Logon)\n"); status = dcerpc_netr_LogonSamLogonWithFlags(p, fn_ctx, &r); - if (!r.out.return_authenticator || !creds_client_check(creds, &r.out.return_authenticator->cred)) { + if (!r.out.return_authenticator + || !creds_client_check(creds, &r.out.return_authenticator->cred)) { printf("Credential chaining failed\n"); talloc_free(fn_ctx); return False; @@ -1211,7 +1214,8 @@ static BOOL test_InteractiveLogon(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, talloc_free(fn_ctx); if (!NT_STATUS_IS_OK(status)) { - printf("[%s]\\[%s] netr_LogonSamLogonWithFlags - %s\n", account_name, account_domain, nt_errstr(status)); + printf("[%s]\\[%s] netr_LogonSamLogonWithFlags - %s\n", + account_name, account_domain, nt_errstr(status)); return False; } |