summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-11-29 00:10:18 +0100
committerGünther Deschner <gd@samba.org>2008-11-29 00:16:46 +0100
commit42adfd1be2237bbe5430fe972143b548b42f6edb (patch)
treeabdca58c243bea56a83255a06b8d22571f746742
parent1cf5c154aaab8b8c45145343e00ec452c6d0f5b5 (diff)
downloadsamba-42adfd1be2237bbe5430fe972143b548b42f6edb.tar.gz
samba-42adfd1be2237bbe5430fe972143b548b42f6edb.tar.bz2
samba-42adfd1be2237bbe5430fe972143b548b42f6edb.zip
s3-libnetjoin: remove unused md4_trust_password, found by metze.
Guenther
-rw-r--r--source3/libnet/libnet_join.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c
index 498c7af3f0..d9335b6a4b 100644
--- a/source3/libnet/libnet_join.c
+++ b/source3/libnet/libnet_join.c
@@ -762,7 +762,6 @@ static NTSTATUS libnet_join_joindomain_rpc(TALLOC_CTX *mem_ctx,
struct lsa_String lsa_acct_name;
uint32_t user_rid;
uint32_t acct_flags = ACB_WSTRUST;
- uchar md4_trust_password[16];
struct samr_Ids user_rids;
struct samr_Ids name_types;
union samr_UserInfo user_info;
@@ -898,10 +897,6 @@ static NTSTATUS libnet_join_joindomain_rpc(TALLOC_CTX *mem_ctx,
goto done;
}
- /* Create a random machine account password and generate the hash */
-
- E_md4hash(r->in.machine_password, md4_trust_password);
-
init_samr_CryptPasswordEx(r->in.machine_password,
&cli->user_session_key,
&crypt_pwd_ex);