summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-01-03 13:17:15 +0100
committerGünther Deschner <gd@samba.org>2008-01-03 13:17:49 +0100
commitb0994bead72bcd5f4346592be8264f5056612c95 (patch)
treef08c8e1b680337a243c8c33f8c6e8a792299ae5f /source3
parent40328027211ed915a83e47200dcd34c9f919e192 (diff)
downloadsamba-b0994bead72bcd5f4346592be8264f5056612c95.tar.gz
samba-b0994bead72bcd5f4346592be8264f5056612c95.tar.bz2
samba-b0994bead72bcd5f4346592be8264f5056612c95.zip
In libnetjoin don't mix admin password with machine account pwd.
Guenther (This used to be commit 5b2eec21c27f07653e2dbb75c0f9ab4a60736773)
Diffstat (limited to 'source3')
-rw-r--r--source3/libnet/libnet_join.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c
index 6edcdb8945..ae3ed060fe 100644
--- a/source3/libnet/libnet_join.c
+++ b/source3/libnet/libnet_join.c
@@ -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);