From ed0123a62bbb4c2891c39a84eb657c4f474dd220 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 5 Jun 2004 14:04:45 +0000 Subject: r1031: Move more code dealing with passwords to struct samr_Password. Andrew Bartlett (This used to be commit 88222b5da9a005e48477d2bfd98a488e4442b5f6) --- source4/librpc/rpc/dcerpc_schannel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/librpc/rpc') diff --git a/source4/librpc/rpc/dcerpc_schannel.c b/source4/librpc/rpc/dcerpc_schannel.c index c271a94bf0..61db90d1e3 100644 --- a/source4/librpc/rpc/dcerpc_schannel.c +++ b/source4/librpc/rpc/dcerpc_schannel.c @@ -88,7 +88,7 @@ NTSTATUS dcerpc_schannel_key(struct dcerpc_pipe *p, struct netr_ServerReqChallenge r; struct netr_ServerAuthenticate2 a; struct netr_Credential credentials1, credentials2, credentials3; - uint8_t mach_pwd[16]; + struct samr_Password mach_pwd; struct creds_CredentialState creds; const char *workgroup, *workstation; uint32_t negotiate_flags = 0; @@ -123,8 +123,8 @@ NTSTATUS dcerpc_schannel_key(struct dcerpc_pipe *p, /* step 3 - authenticate on the netlogon pipe */ - E_md4hash(password, mach_pwd); - creds_client_init(&creds, &credentials1, &credentials2, mach_pwd, &credentials3, + E_md4hash(password, mach_pwd.hash); + creds_client_init(&creds, &credentials1, &credentials2, &mach_pwd, &credentials3, negotiate_flags); a.in.server_name = r.in.server_name; -- cgit