Hi, I'm using VS2013, C# and asp.net
In my code,my UserPrincipal object's AccountExpirationDate property shows 12/21/2014. But when I check in AD Users and Computer snap-in, Account tab, it shows the account expires end of 12/19/2012. That's 2 days difference. Is this a known bug? How to fix this?
Also, if the account is expired, today's date is 12/24/2012, however, UserPrincipal object's Enabled property still shows true and in AD Users and Computer snap-in the account doesn't have the account disabled checked either. This data is correct but is mis-leading. So when an account is expired, even though it's not disabled, user still can't log in using that account?