s3:auth_domain: remove dead code in check_trustdomain_security()
authorStefan Metzmacher <metze@samba.org>
Tue, 27 Aug 2013 10:09:51 +0000 (12:09 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 16 Oct 2013 19:48:58 +0000 (08:48 +1300)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/auth/auth_domain.c

index 06078e2ada1926f0fb518b9d92ddcaf433974d26..9f88c4a4119f09fef6ea14dc25c96bc685c1540c 100644 (file)
@@ -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 */