With sambaAcctFlags [UX ] ("password never expires" in usrmgr) Windows still complains "Your password expires in ... days".
(In reply to comment #0) > With sambaAcctFlags [UX ] ("password never expires" in usrmgr) Windows > still complains "Your password expires in ... days". This more than cosmetic. It has triggered dozens of help desk calls from frustrated users who's passwords are expiring all of a sudden.
Created attachment 1439 [details] Patch to return time_min if password never expires so Windows won't complain any longer, works at least for me
Created attachment 1565 [details] Patch to return time_min if password never expires V2
Created attachment 2001 [details] Patch for 3.0.23 No password expires warnings when password never expires is set
Created attachment 2002 [details] Patch for 3.0.23
Comment on attachment 2002 [details] Patch for 3.0.23 No password expires warnings when password never expires is set
I'd rather set this in the init_sam_from_xx routines, so that there can be no confusion about the data field contents. Volker
A better solution might be to init the pwd_must_change on toggling the noexp flag. But why not kill the pwd_must_change field at all? It's just calculated from last password change time + maximum password age policy in Windows I assume.
Sure, that's the 100% solution. Feel free, but please don't change any data format in LDAP or tdb, just ignore this field while reading and set it to some defined dummy value while writing. Volker
afair, passwdord expiration time was switched to be calculated dynamically during the 3.x releases, which should have fixed this problem also. Can you confirm that this was fixed in the meantime?