In libnetjoin don't mix admin password with machine account pwd.
authorGünther Deschner <gd@samba.org>
Thu, 3 Jan 2008 12:17:15 +0000 (13:17 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 3 Jan 2008 12:17:49 +0000 (13:17 +0100)
Guenther
(This used to be commit 5b2eec21c27f07653e2dbb75c0f9ab4a60736773)

source3/libnet/libnet_join.c

index 6edcdb89457d8fd6505d5bf84c2f4b3e4ad1cc98..ae3ed060fe0c509ac420ac9db0eec500f20934c3 100644 (file)
@@ -152,8 +152,8 @@ static NTSTATUS do_DomainJoin(TALLOC_CTX *mem_ctx,
                goto done;
        }
 
-       E_md4hash(r->in.password, md4_trust_password);
-       encode_pw_buffer(pwbuf, r->in.password, STR_UNICODE);
+       E_md4hash(password, md4_trust_password);
+       encode_pw_buffer(pwbuf, password, STR_UNICODE);
 
        generate_random_buffer((uint8*)md5buffer, sizeof(md5buffer));
        digested_session_key = data_blob_talloc(mem_ctx, 0, 16);