What is written into AD is dependent on what the code is writing, in this
case ADSI. AD plays no part here except being the receptacle for the data
being written to it. I have written code (LDAP API) that sets that time to
1AM (to clear confusion around midnight) or 5PM (end of business day) or
whatever the customer wants that expiration to be. 

  joe

 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tomasz Onyszko
Sent: Monday, June 21, 2004 2:57 PM
To: [EMAIL PROTECTED]
Subject: Re: [ActiveDir] Setting account expiration time date the script

Jeff Salisbury wrote:

> Tomasz - I believe that you will see a difference between what date
 >u see programmatically and what date you see in the GUI. If I remember
correctly,  > if the GUI says an account expires on June 18th, using scripts
to pull the expiration  > date you will actually get a date/time of 2400
(midnight) on June 17th. Assuming  > this is true, you just need to adjust
you code to account for the difference.
>
Thanks Jeff, You are right - I just need to add one day becouse my users
needs to be valid till the end of this day I put into the account property.

Shame for me :(  I should think about this what is written into AD.

Thanks once again.

--
Tomasz Onyszko [MVP]
[EMAIL PROTECTED]
http://www.w2k.pl
List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to