summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-08-27 12:09:51 +0200
committerAndrew Bartlett <abartlet@samba.org>2013-10-17 08:48:58 +1300
commit6db5aca6033477bb6104520d6623cec19a1a9af3 (patch)
tree14e53c74bf34a61db3e10b3119dbadcd877c8c1c /source3/auth
parentd221d84e8d4e2eeefaf0fe9869cc127787936e0b (diff)
downloadsamba-6db5aca6033477bb6104520d6623cec19a1a9af3.tar.gz
samba-6db5aca6033477bb6104520d6623cec19a1a9af3.tar.bz2
samba-6db5aca6033477bb6104520d6623cec19a1a9af3.zip
s3:auth_domain: remove dead code in check_trustdomain_security()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_domain.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/source3/auth/auth_domain.c b/source3/auth/auth_domain.c
index 06078e2ada..9f88c4a411 100644
--- a/source3/auth/auth_domain.c
+++ b/source3/auth/auth_domain.c
@@ -378,8 +378,6 @@ static NTSTATUS check_trustdomain_security(const struct auth_context *auth_conte
struct auth_serversupplied_info **server_info)
{
NTSTATUS nt_status = NT_STATUS_LOGON_FAILURE;
- unsigned char trust_md4_password[16];
- char *trust_password;
fstring dc_name;
struct sockaddr_storage dc_ss;
@@ -408,26 +406,6 @@ static NTSTATUS check_trustdomain_security(const struct auth_context *auth_conte
if ( !is_trusted_domain( user_info->mapped.domain_name ) )
return NT_STATUS_NOT_IMPLEMENTED;
- /*
- * Get the trusted account password for the trusted domain
- * No need to become_root() as secrets_init() is done at startup.
- */
-
- if (!pdb_get_trusteddom_pw(user_info->mapped.domain_name, &trust_password,
- NULL, NULL)) {
- DEBUG(0, ("check_trustdomain_security: could not fetch trust "
- "account password for domain %s\n",
- user_info->mapped.domain_name));
- return NT_STATUS_CANT_ACCESS_DOMAIN_INFO;
- }
-
-#ifdef DEBUG_PASSWORD
- DEBUG(100, ("Trust password for domain %s is %s\n", user_info->mapped.domain_name,
- trust_password));
-#endif
- E_md4hash(trust_password, trust_md4_password);
- SAFE_FREE(trust_password);
-
/* use get_dc_name() for consistency even through we know that it will be
a netbios name */