Changing a Notes DateTime Field



By: pnuffer

November 21, 2007 4:04 am

Reads: 243

Comments:0

Rating:0

Problem

A Forum reader recently asked:

“Is it possible to set the HTTPPasswordChangeDate value in the Domino directory, (Public Notes Address Book, i.e. NAB)? This particular Notes field on the Person document in the NAB is in Notes DateTime format, and I’ve been struggling to figure out how to set it.”

And here’s the response from Perry Nuffer …

Solution

Prior to NotesDriverShim v3.5.1, the input format for Notes DateTime fields needs to be in ‘seconds since midnight 1/1/1970 UTC’ format (i.e. CTIME). The NotesDriverShim v3.5.1 can handle input timestamps in a traditional readable format (mm/dd/yyyy hh:mm:ss) as well. The readable DateTime format parsing is done by the Lotus Notes APIs, so the language and format you use is subject to the settings of the Notes/Domino API libraries that the NotesDriverShim is accessing at runtime.

The XDS input document to the NotesDriverShim should look something like this:

<input>
  <modify class-name="Person" event-id="82869BF0052E4FDE87257242007B00B7 - 1166130787379" src-dn="\novell\John Doe">
    <association state="associated">82869BF0052E4FDE87257242007B00B7</association>
    <modify-attr attr-name="HTTPPasswordChangeDate">
      <remove-all-values/>
      <add-value>
        <value type="time">1176492434</value>
      </add-value>
    </modify-attr>
  </modify>
</input>

The XDS input document for NotesDriverShim v3.5.1 can look something like this:

<input>
  <modify class-name="Person" event-id="82869BF0052E4FDE87257242007B00B7 - 1166130787379" src-dn="\novell\John Doe">
    <association state="associated">82869BF0052E4FDE87257242007B00B7</association>
    <modify-attr attr-name="HTTPPasswordChangeDate">
      <remove-all-values/>
      <add-value>
        <value type="time">04/12/2009 1:00:00pm MDT</value>
      </add-value>
    </modify-attr>
  </modify>
</input>
VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Tags: ,
Categories: Uncategorized

Disclaimer: As with everything else at NetIQ Cool Solutions, this content is definitely not supported by NetIQ, so Customer Support will not be able to help you if it has any adverse effect on your environment.  It just worked for at least one person, and perhaps it will be useful for you too.  Be sure to test in a non-production environment.

Comment