removed code that used to set trust acct passwd from smbd.
authorLuke Leighton <lkcl@samba.org>
Sat, 19 Feb 2000 20:49:00 +0000 (20:49 +0000)
committerLuke Leighton <lkcl@samba.org>
Sat, 19 Feb 2000 20:49:00 +0000 (20:49 +0000)
source/smbd/process.c

index bb52b8841702d0a027a6a96616e2699b8287029b..0af59cd345f927604dda5f3d174771c5bd98ebad 100644 (file)
@@ -812,8 +812,6 @@ void smbd_process(void)
     int last_keepalive=0;
     int service_load_counter = 0;
     BOOL got_smb = False;
-       BOOL trust_pwd_needs_changing = False;
-       NTTIME ntlct;
 
     if (deadtime <= 0)
       deadtime = DEFAULT_SMBD_TIMEOUT;
@@ -910,28 +908,6 @@ void smbd_process(void)
              return;
       }
 
-       if (msrpc_lsa_query_secret("\\\\.", "$MACHINE.ACC", NULL, &ntlct))
-       {
-               if (time(NULL) > nt_time_to_unix(&ntlct) + lp_machine_password_timeout())
-               {
-                       trust_pwd_needs_changing = True;
-               }
-       }
-
-      if(trust_pwd_needs_changing)
-      {
-        unsigned char trust_passwd_hash[16];
-
-        /*
-         * We're in domain level security, and the code that
-         * read the machine password flagged that the machine
-         * password needs changing.
-         */
-
-         generate_random_buffer( trust_passwd_hash, 16, True);
-          msrpc_lsa_set_secret("\\\\.", "$MACHINE.ACC", trust_passwd_hash, 16);
-      }
-
       /*
        * Check to see if we have any blocking locks
        * outstanding on the queue.