grealish / pwm

Automatically exported from code.google.com/p/pwm
0 stars 0 forks source link

wrong password expire year #475

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. login to PWM
2.  click on Account information
3.

What is the expected output? What do you see instead?

Password Expiration Time should be under 90 days from current date
However it showing as followes:

Username    Prince.Dhiman

Password Expired    False
Password Pre-Expired    False
Within Warning Period   False
Violates Password Policy    False
Password Set Time   Thursday, September 12, 2013 3:16:48 PM IST
Password Set Time Delta     2 days, 22 hours, 48 minutes, 26 seconds
Password Expiration Time    Saturday, December 11, 2382 3:16:48 PM IST

What version of PWM are you using?

v1.7
What ldap directory and version are you using?
Active directory 2003 r2

Please paste any error log messages below:
2013-09-15 13:53:46, INFO , event.AuditManager, audit event: 
{"eventCode":"AUTHENTICATE","perpetratorID":"Prince.Dhiman","perpetratorDN":"CN\
u003dPrince 
Dhiman,OU\u003dUsers,OU\u003dDelhi,OU\u003dIndia,dc\u003dbcone,dc\u003dcom","tim
estamp":"Sep 15, 2013 1:53:46 
PM","message":"AUTHENTICATED","targetID":"Prince.Dhiman","targetDN":"CN\u003dPri
nce 
Dhiman,OU\u003dUsers,OU\u003dDelhi,OU\u003dIndia,dc\u003dbcone,dc\u003dcom","sou
rceAddress":"101.59.115.79","sourceHost":"101.59.115.79"}

Original issue reported on code.google.com by prince.d...@bcone.com on 15 Sep 2013 at 8:33

GoogleCodeExporter commented 9 years ago

Original comment by jrivard on 11 Nov 2013 at 5:15

GoogleCodeExporter commented 9 years ago
Hi Team,

I am also facing the same issue. Any updates on this?

Thanks,

Siva C

Original comment by aspire.s...@gmail.com on 3 Jan 2014 at 6:53

GoogleCodeExporter commented 9 years ago
This is due to an epoch difference between java and active directory.  Java 
epoch starts at year 1970 and AD starts at 1601.  The difference between the 
two dates is exactly 369 years, which if you check the difference in years 
between the set time and expiration date it should be exactly 369 years.

Link to java code example to move between AD and Java epochs
http://rajnishbhatia19.blogspot.com/2008/05/converting-ad-long-dates-to-java-dat
e.html

Original comment by ever...@gmail.com on 14 Feb 2014 at 8:36

GoogleCodeExporter commented 9 years ago
Hi,
    Any Update on this issue.?

Original comment by prince23...@gmail.com on 4 Apr 2014 at 10:53

GoogleCodeExporter commented 9 years ago
fixed as per issue 500. 

Original comment by jrivard on 5 Apr 2014 at 9:35