s3-auth Remove confusing reference to global_machine_password_needs_changing
authorAndrew Bartlett <abartlet@samba.org>
Fri, 13 Jul 2012 00:01:44 +0000 (10:01 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 13 Jul 2012 04:00:17 +0000 (06:00 +0200)
This is in the trusted domain codepath, not the primary domain code path.

Andrew Bartlett

source3/auth/auth_domain.c

index 696b18bd4207f50a3e3048645d47d2d13e8f8512..82160bb4f9c60df572c38bb72b2b7de14fb2ec0e 100644 (file)
@@ -493,14 +493,6 @@ static NTSTATUS check_trustdomain_security(const struct auth_context *auth_conte
        E_md4hash(trust_password, trust_md4_password);
        SAFE_FREE(trust_password);
 
-#if 0
-       /* Test if machine password is expired and need to be changed */
-       if (time(NULL) > last_change_time + (time_t)lp_machine_password_timeout())
-       {
-               global_machine_password_needs_changing = True;
-       }
-#endif
-
        /* use get_dc_name() for consistency even through we know that it will be 
           a netbios name */