Bug 2283 - time max_int overflow with timezone
Summary: time max_int overflow with timezone
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: User/Group Accounts (show other bugs)
Version: 3.0.10
Hardware: x86 Linux
: P3 minor
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
Depends on:
Reported: 2005-01-27 09:58 UTC by adrien urban
Modified: 2022-01-17 15:04 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description adrien urban 2005-01-27 09:58:45 UTC
Version 3.0.10-Debian

After smbpasswd, i have :
sambaPwdMustChange: 2147483647

This is MAX_INT.
If i use pdbedit, it shows:

# pbdedit -v username
Password last set:    Thu, 27 Jan 2005 17:42:30 GMT
Password can change:  Thu, 27 Jan 2005 17:42:30 GMT
Password must change: Fri, 13 Dec 1901 21:45:51 GMT
# date
Thu Jan 27 17:43:32 CET 2005
# date -u
Thu Jan 27 16:43:33 UTC 2005

As you can see, is displayed as being somewhere in 1901. This is exactly 
MAX_INT + 3600.

You can also notice it shows last change as being same as localtime, with GMT,
though it is not yet that specified GMT time.

Setting a field to MAX_INT should at least keep it to MAX_INT whatever the
timezone is.
Comment 1 Björn Jacke 2022-01-17 15:04:56 UTC
can't remember having seen this error in the recent years, assuming this is fixed, closing accordingly.