File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/middlewared/middlewared/plugins Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -428,9 +428,14 @@ def update_passdb_user(self, username):
428
428
except Exception :
429
429
nt_passwd = ''
430
430
431
+ pass_last_set_time = int (smbpasswd_string [5 ].strip ("LCT-" ), 16 )
432
+
431
433
if smbpasswd_string [3 ] != nt_passwd :
432
434
p .nt_passwd = binascii .unhexlify (smbpasswd_string [3 ])
433
435
pdb_entry_changed = True
436
+ if pass_last_set_time != p .pass_last_set_time :
437
+ p .pass_last_set_time = pass_last_set_time
438
+ pdb_entry_changed = True
434
439
if 'D' in smbpasswd_string [4 ] and not (p .acct_ctrl & SAMR_AcctFlags .DISABLED ):
435
440
p .acct_ctrl |= SAMR_AcctFlags .DISABLED
436
441
pdb_entry_changed = True
@@ -480,9 +485,14 @@ def synchronize_passdb(self):
480
485
except Exception :
481
486
nt_passwd = ''
482
487
488
+ pass_last_set_time = int (smbpasswd_string [5 ].strip ("LCT-" ), 16 )
489
+
483
490
if smbpasswd_string [3 ] != nt_passwd :
484
491
p .nt_passwd = binascii .unhexlify (smbpasswd_string [3 ])
485
492
pdb_entry_changed = True
493
+ if pass_last_set_time != p .pass_last_set_time :
494
+ p .pass_last_set_time = pass_last_set_time
495
+ pdb_entry_changed = True
486
496
if 'D' in smbpasswd_string [4 ] and not (p .acct_ctrl & SAMR_AcctFlags .DISABLED ):
487
497
p .acct_ctrl |= SAMR_AcctFlags .DISABLED
488
498
pdb_entry_changed = True
You can’t perform that action at this time.
0 commit comments