[Date Prev][Date Next]
Re: (ITS#6927) smbk5pwd handles DST incorrectly
> Full_Name: Ryan Steele
> Version: 2.4.23
> OS: Ubuntu Server 10.04 (Lucid)
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (188.8.131.52)
> The smbk5pwd overlay (I tested with an older version and HEAD) seems to handle
> Daylight Savings Time incorrectly when it comes to the sambaPwdLastSet
> attribute, populating it with a value that does not take DST into account. As
> an example, consider the following attributes from one of the entries in my
> pwdChangedTime: 20110502160329Z
> sambaPwdLastSet: 1304352209
> Obviously, pwdChangedTime specifies the timestamp:
> Mon May 2 16:03:29 EDT 2011
> On the other hand, sambaPwdLastSet specifies the timestamp as being an hour
> later, as calculated with the 'date' command (date -d'1970-01-01 1304352209
> Mon May 2 17:03:29 EDT 2011
> Right now we're in DST on the east coast, which is GMT -0400. This would mean
> that pwdChangedTime is correct, but sambaPwdLastSet is still incorrectly
> calculating results using GMT -0500.
The sambaPwdLastSet value is not calculated at all, it is exactly what the OS
system clock returns, and the OS system clock is in UTC so DST is irrelevant.
Probably your machine's timezone is misconfigured; notice that pwdChangedTime
is also in UTC so 20110502160329Z cannot be "May 2 16:03:29 EDT".
Closing this ITS.
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/