Changeset 140 for branches/samba-3.0/source/rpc_server/srv_samr_util.c
- Timestamp:
- Jul 11, 2008, 1:13:42 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/rpc_server/srv_samr_util.c
r62 r140 279 279 pdb_set_pass_last_set_time(to, 0, PDB_CHANGED); 280 280 } 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); 282 290 } 283 291 } … … 493 501 pdb_set_pass_last_set_time(to, 0, PDB_CHANGED); 494 502 } 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); 496 512 } 497 513 } … … 711 727 pdb_set_pass_last_set_time(to, 0, PDB_CHANGED); 712 728 } 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); 714 738 } 715 739 }
Note:
See TracChangeset
for help on using the changeset viewer.
