X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=ud-mailgate;h=4fa2edf0f1f3ee6f043d5be7bde8fb8b0a787946;hp=69707f8be2f2279a790bc44943fd0d5c50e4fa8f;hb=f27db3e7f5d3bb3fe0d36e1ab15e143ce45d269d;hpb=6bcb989fea7bf536788752c42b64f94d3b3d22d3 diff --git a/ud-mailgate b/ud-mailgate index 69707f8..4fa2edf 100755 --- a/ud-mailgate +++ b/ud-mailgate @@ -551,7 +551,8 @@ def HandleChPass(Reply,DnRecord,Key): raise Error, "This account is locked"; # Modify the password - Rec = [(ldap.MOD_REPLACE,"userPassword","{crypt}"+Pass)]; + Rec = [(ldap.MOD_REPLACE,"userPassword","{crypt}"+Pass), + (ldap.MOD_REPLACE,"shadowLastChange",str(int(time.time()/24/60/60)))]; Dn = "uid=" + GetAttr(DnRecord,"uid") + "," + BaseDn; l.modify_s(Dn,Rec);