r1031: Move more code dealing with passwords to struct samr_Password.
authorAndrew Bartlett <abartlet@samba.org>
Sat, 5 Jun 2004 14:04:45 +0000 (14:04 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:56:31 +0000 (12:56 -0500)
Andrew Bartlett
(This used to be commit 88222b5da9a005e48477d2bfd98a488e4442b5f6)

source4/librpc/rpc/dcerpc_schannel.c

index c271a94bf0ae2baade538bbdbb34202032df8211..61db90d1e3fe5d2ac14b0a29b812d80ccb996736 100644 (file)
@@ -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;