1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-29 16:23:52 +03:00

In libnetjoin don't mix admin password with machine account pwd.

Guenther
This commit is contained in:
Günther Deschner
2008-01-03 13:17:15 +01:00
parent 1688eae5e8
commit 5b2eec21c2

View 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);