diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-06-05 14:04:45 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:56:31 -0500 |
commit | ed0123a62bbb4c2891c39a84eb657c4f474dd220 (patch) | |
tree | 9ace35bbac87bc69411e3a0eb86f43b1109d9b2d /source4 | |
parent | 5341ad20e1b8953c9256cd8e04a7e55ba9ef84b5 (diff) | |
download | samba-ed0123a62bbb4c2891c39a84eb657c4f474dd220.tar.gz samba-ed0123a62bbb4c2891c39a84eb657c4f474dd220.tar.bz2 samba-ed0123a62bbb4c2891c39a84eb657c4f474dd220.zip |
r1031: Move more code dealing with passwords to struct samr_Password.
Andrew Bartlett
(This used to be commit 88222b5da9a005e48477d2bfd98a488e4442b5f6)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/librpc/rpc/dcerpc_schannel.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |