Bug 2836 - "password never expires" cosmetic problem
Summary: "password never expires" cosmetic problem
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: User/Group Accounts (show other bugs)
Version: 3.0.23
Hardware: All Windows XP
: P3 minor
Target Milestone: 3.0.26
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-29 10:11 UTC by Daniel Beschorner (dead mail address)
Modified: 2020-12-20 19:32 UTC (History)
4 users (show)

See Also:


Attachments
Patch to return time_min if password never expires (1.11 KB, patch)
2005-09-12 10:32 UTC, Daniel Beschorner (dead mail address)
no flags Details
Patch to return time_min if password never expires V2 (1.11 KB, patch)
2005-11-07 15:09 UTC, Daniel Beschorner (dead mail address)
no flags Details
Patch for 3.0.23 (1.06 KB, patch)
2006-06-29 05:27 UTC, Daniel Beschorner (dead mail address)
no flags Details
Patch for 3.0.23 (1.06 KB, patch)
2006-06-29 05:36 UTC, Daniel Beschorner (dead mail address)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Beschorner (dead mail address) 2005-06-29 10:11:31 UTC
With sambaAcctFlags [UX         ] ("password never expires" in usrmgr) Windows 
still complains "Your password expires in ... days".
Comment 1 Jacob Elder (dead mail address) 2005-09-08 12:25:29 UTC
(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. 
Comment 2 Daniel Beschorner (dead mail address) 2005-09-12 10:32:43 UTC
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
Comment 3 Daniel Beschorner (dead mail address) 2005-11-07 15:09:14 UTC
Created attachment 1565 [details]
Patch to return time_min if password never expires V2
Comment 4 Daniel Beschorner (dead mail address) 2006-06-29 05:27:35 UTC
Created attachment 2001 [details]
Patch for 3.0.23

No password expires warnings when password never expires is set
Comment 5 Daniel Beschorner (dead mail address) 2006-06-29 05:36:51 UTC
Created attachment 2002 [details]
Patch for 3.0.23
Comment 6 Daniel Beschorner (dead mail address) 2006-06-29 05:37:26 UTC
Comment on attachment 2002 [details]
Patch for 3.0.23

No password expires warnings when password never expires is set
Comment 7 Volker Lendecke 2006-06-29 06:10:33 UTC
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
Comment 8 Daniel Beschorner (dead mail address) 2006-06-29 09:31:48 UTC
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.
Comment 9 Volker Lendecke 2006-06-29 09:34:43 UTC
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
Comment 10 Björn Jacke 2020-12-20 19:32:59 UTC
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?