Credential expiration timestamps and groups

Credential expiration timestamps and groups

Secure Home | Search | About
 Microsoft Applications Security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
Credential expiration timestamps and groups Paul Barrett 01-10-2007
Posted by Paul Barrett on January 10, 2007, 10:59 am
If you were  Registered and logged in, you could reply and use other advanced thread options
I'm using the GenClientContext sample code (which calls
AcceptSecurityContext) to look up the expiration date of a set of
credentials so we can provide advance warning to the users of our client
that their password is about to expire. This normally works fine.
One of our customers though has the users in a group, where the group has a
password expiration policy of 30 days, but some of the accounts in the group
override that and have no expiration.
If a user logs onto the server with one of these non-expiring accounts, they
don't get the expiration warning from Windows.
But when they use our client, which looks up the expiration date for that
same account, it gets a timestamp indicating the credentials are about to
expire.

Is there any way to look up credential expiration time that won't return us
a timestamp based on the group policy but instead would honor the
password-never-expires flag on the account? Or a way of determining that
flag is set on the account?



Posted by Paul Barrett on January 10, 2007, 11:26 am
If you were  Registered and logged in, you could reply and use other advanced thread options
Nevermind - I was looking in the wrong chunk of code.
It's actually using NetUserGetInfo to look up the expiration, and I think I
see a bug. Sorry to post before checking further.


> I'm using the GenClientContext sample code (which calls
> AcceptSecurityContext) to look up the expiration date of a set of
> credentials so we can provide advance warning to the users of our client
> that their password is about to expire. This normally works fine.
> One of our customers though has the users in a group, where the group has
> a password expiration policy of 30 days, but some of the accounts in the
> group override that and have no expiration.
> If a user logs onto the server with one of these non-expiring accounts,
> they don't get the expiration warning from Windows.
> But when they use our client, which looks up the expiration date for that
> same account, it gets a timestamp indicating the credentials are about to
> expire.
>
> Is there any way to look up credential expiration time that won't return
> us a timestamp based on the group policy but instead would honor the
> password-never-expires flag on the account? Or a way of determining that
> flag is set on the account?
>
>



Similar ThreadsPosted
Nesting domain groups under local groups March 18, 2007, 3:53 am
domain cache credential corrupted January 15, 2007, 9:38 am
Tasklist.exe -- credential caching for remote workstations? January 19, 2006, 6:47 pm
Credential Roaming + EFS - how to cleanup user certificates ? May 5, 2008, 2:49 pm
KerberosToken constructor gives error - Kerberos credential handle could not be returned June 4, 2007, 2:01 am
Certificates, Autoenrollment, Credential Roaming and User's Personal Store April 29, 2008, 10:53 am
Re: Expiration Of Certificates July 11, 2005, 8:32 am
On password expiration March 31, 2006, 1:51 am
PKI - Certificate expiration notifications November 8, 2007, 12:27 am
clm users certificates expiration March 30, 2008, 5:39 am

The site map in XML format XML site map

Contact Us | Privacy Policy