s3-ntlmssp Remove rpccli_get_pwd_hash and auth_ntlmssp_get_nt_hash
authorAndrew Bartlett <abartlet@samba.org>
Mon, 25 Jul 2011 01:21:31 +0000 (11:21 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 3 Aug 2011 08:48:03 +0000 (18:48 +1000)
commitda4345a8d1da94ac879b876ad826fa4ea7b95efd
treeff7b25a10a1c1573df22eb4313bc31063c14f37e
parent779573a5b3c6b8e91a08cc08ff516a957e539722
s3-ntlmssp Remove rpccli_get_pwd_hash and auth_ntlmssp_get_nt_hash

The session key we want here (the only one that is availble to the
encryption layer) is the one obtained by cli_get_session_key(), as
NTLMSSP creates a per-session session key via key exchange and NTLMv2
negotiation.

The key was never directly the NT hash anyway (this is simply a
mistake, the extra MD4() was lost during my previous cleanup
f28f113d8e76824b080359c90efd9c92de533740 in 2008), but was MD4(NT
hash) in early implementations of NTLMSSP.

However, regardless this call is not available on domain trusts
between AD domains and Windows 2003 R2, making this less useful.

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
source3/include/ntlmssp_wrap.h
source3/libsmb/ntlmssp_wrap.c
source3/rpc_client/cli_pipe.c
source3/rpc_client/cli_pipe.h
source3/rpcclient/cmd_lsarpc.c
source3/utils/net_rpc.c