Ignore:
Timestamp:
Jul 11, 2008, 1:13:42 AM (17 years ago)
Author:
Paul Smedley
Message:

Update branch to 3.0.31 release

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/rpc_server/srv_samr_util.c

    r62 r140  
    279279                        pdb_set_pass_last_set_time(to, 0, PDB_CHANGED);         
    280280                } else {
    281                         pdb_set_pass_last_set_time(to, time(NULL),PDB_CHANGED);
     281                        /* A subtlety here: some windows commands will
     282                           clear the expired flag even though it's not
     283                           set, and we don't want to reset the time
     284                           in these caess.  "net user /dom <user> /active:y"
     285                           for example, to clear an autolocked acct.
     286                           We must check to see if it's expired first. jmcd */
     287                        stored_time = pdb_get_pass_last_set_time(to);
     288                        if (stored_time == 0)
     289                                pdb_set_pass_last_set_time(to, time(NULL),PDB_CHANGED);
    282290                }
    283291        }
     
    493501                        pdb_set_pass_last_set_time(to, 0, PDB_CHANGED);         
    494502                } else {
    495                         pdb_set_pass_last_set_time(to, time(NULL),PDB_CHANGED);
     503                        /* A subtlety here: some windows commands will
     504                           clear the expired flag even though it's not
     505                           set, and we don't want to reset the time
     506                           in these caess.  "net user /dom <user> /active:y"
     507                           for example, to clear an autolocked acct.
     508                           We must check to see if it's expired first. jmcd */
     509                        stored_time = pdb_get_pass_last_set_time(to);
     510                        if (stored_time == 0)
     511                                pdb_set_pass_last_set_time(to, time(NULL),PDB_CHANGED);
    496512                }
    497513        }
     
    711727                        pdb_set_pass_last_set_time(to, 0, PDB_CHANGED);         
    712728                } else {
    713                         pdb_set_pass_last_set_time(to, time(NULL),PDB_CHANGED);
     729                        /* A subtlety here: some windows commands will
     730                           clear the expired flag even though it's not
     731                           set, and we don't want to reset the time
     732                           in these caess.  "net user /dom <user> /active:y"
     733                           for example, to clear an autolocked acct.
     734                           We must check to see if it's expired first. jmcd */
     735                        stored_time = pdb_get_pass_last_set_time(to);
     736                        if (stored_time == 0)
     737                                pdb_set_pass_last_set_time(to, time(NULL),PDB_CHANGED);
    714738                }
    715739        }
Note: See TracChangeset for help on using the changeset viewer.