diff options
author | Günther Deschner <gd@samba.org> | 2012-12-05 18:38:01 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-12-09 19:39:08 +0100 |
commit | fd7087020344f7d24737e3be2f3afbd0417b0026 (patch) | |
tree | af1d5d0e74a1bc173fed244fea8ba89068cbc4e0 /source4 | |
parent | 4afb7dcb43c6903568c0fe2c2c2044706e9bd613 (diff) | |
download | samba-fd7087020344f7d24737e3be2f3afbd0417b0026.tar.gz samba-fd7087020344f7d24737e3be2f3afbd0417b0026.tar.bz2 samba-fd7087020344f7d24737e3be2f3afbd0417b0026.zip |
s4-torture: use netlogon_creds_arcfour_crypt() in samba3rpc test.
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/rpc/samba3rpc.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/source4/torture/rpc/samba3rpc.c b/source4/torture/rpc/samba3rpc.c index 0dd9dbddcb..c19476d9bf 100644 --- a/source4/torture/rpc/samba3rpc.c +++ b/source4/torture/rpc/samba3rpc.c @@ -1104,7 +1104,7 @@ static bool schan(struct torture_context *tctx, for (i=2; i<4; i++) { int flags; - DATA_BLOB chal, nt_resp, lm_resp, names_blob, session_key; + DATA_BLOB chal, nt_resp, lm_resp, names_blob; struct netlogon_creds_CredentialState *creds_state; struct netr_Authenticator netr_auth, netr_auth2; struct netr_NetworkInfo ninfo; @@ -1197,11 +1197,8 @@ static bool schan(struct torture_context *tctx, ZERO_STRUCT(pinfo.lmpassword.hash); E_md4hash(cli_credentials_get_password(user_creds), pinfo.ntpassword.hash); - session_key = data_blob_talloc(mem_ctx, - creds_state->session_key, 16); - arcfour_crypt_blob(pinfo.ntpassword.hash, - sizeof(pinfo.ntpassword.hash), - &session_key); + + netlogon_creds_arcfour_crypt(creds_state, pinfo.ntpassword.hash, 16); logon.password = &pinfo; |