Bug 4719 - "Password Must Change" field set incorrectly on new accounts
Summary: "Password Must Change" field set incorrectly on new accounts
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: User/Group Accounts (show other bugs)
Version: 3.0.25a
Hardware: All Linux
: P3 normal
Target Milestone: none
Assignee: Jim McDonough
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-20 15:17 UTC by John Janosik
Modified: 2007-06-26 22:27 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Janosik 2007-06-20 15:17:47 UTC
When using user manager for domains from a Windows XP client to a Samba 3.0.25a domain with ldap passdb backend to create new accounts the "Password Must Change" field is not set.  The "Password Must Change" box is checked in user manager by default but after creating the account pdbedit shows the password must change date as calculated from the password policy and password set time:

rchs20dc:/var/log/samba # pdbedit -d 0 -v -u jpjtest6 | grep Pass
Password last set:    Wed, 20 Jun 2007 15:33:25 CDT
Password can change:  Wed, 20 Jun 2007 15:33:25 CDT
Password must change: Tue, 18 Sep 2007 15:33:25 CDT
Comment 1 Jim McDonough 2007-06-25 13:13:22 UTC
taking this one

tdbsam works, ldapsam does not...
Comment 2 Jim McDonough 2007-06-26 07:48:14 UTC
Found it...nothing to do with ldap, and everything to do with which usrmgr you use.  user_info_25 isn't fully parsed, and we're not honoring the expired bit.  I should have a patch soon.

By the way, it also means logon hours aren't done from this usrmgr either...
Comment 3 Jim McDonough 2007-06-26 15:10:23 UTC
ok, fixed up the set of user_info_25 to not always have the password last time set .  Should be fixed now in revision 23616.