Application Delivery Management
Application Modernization & Connectivity
CyberRes by OpenText
IT Operations Management
<rule>
<description>accountExpires: Convert to Identity Vault time format</description>
<comment xml:space="preserve">The Identity Vault uses a 32 bit value to store certain time values while Active Directory uses a 64 bit time value. Reformat the 64 bit value to fit within the vault's 32 bit syntax.</comment>
<conditions/>
<actions>
<do-reformat-op-attr name="accountExpires">
<arg-value type="time">
<token-xpath expression="jadutil:translateFileTime2Epoch($current-value)"/>
</arg-value>
</do-reformat-op-attr>
</actions>
</rule>
<rule>
<description>accountExpires: Convert to Identity Vault time format (Convert Time Token)</description>
<comment xml:space="preserve">The Identity Vault uses a 32 bit value to store certain time values while Active Directory uses a 64 bit time value. Reformat the 64 bit value to fit within the vault's 32 bit syntax.</comment>
<conditions/>
<actions>
<do-reformat-op-attr name="accountExpires">
<arg-value type="time">
<token-convert-time dest-format="!CTIME" dest-tz="UTC" src-format="!FILETIME" src-tz="UTC">
<token-local-variable name="current-value"/>
</token-convert-time>
</arg-value>
</do-reformat-op-attr>
</actions>
</rule>
function: translateFileTime2Epoch()
function: translateEpoch2FileTime()
<add-attr attr-name="accountExpires">
<value type="string">9223372036854775807</value>
</add-attr>
</add>
</input>
</nds>
AD402 :Applying policy: % CCadutil-test%-C.
AD402 : Applying to add #1.
AD402 : Evaluating selection criteria for rule 'accountExpires: Convert to Identity Vault time format'.
AD402 : Rule selected.
AD402 : Applying rule 'accountExpires: Convert to Identity Vault time format'.
AD402 : Action: do-reformat-op-attr("accountExpires",token-xpath("jadutil:translateFileTime2Epoch($current-value)")).
AD402 : arg-string(token-xpath("jadutil:translateFileTime2Epoch($current-value)"))
AD402 : token-xpath("jadutil:translateFileTime2Epoch($current-value)")
AD402 : Token Value: "4294967294".
AD402 : Arg Value: "4294967294".
AD402 :Policy returned:
AD402 :
<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product version="?.?.?.?">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<add class-name="User" qualified-src-dn="o=dirXML Test\ou=Users\cn=User1" src-dn="o=dirXML Test\ou=Users\cn=User1">
<association>o=dirXML Test\ou=Users\cn=User1</association>
<add-attr attr-name="accountExpires">
<value type="time">4294967294</value>
<add-attr attr-name="accountExpires">
<value type="string">0</value>
</add-attr>
</add>
</input>
</nds>
AD402 :Applying policy: % CCadutil-test%-C.
AD402 : Applying to add #1.
AD402 : Evaluating selection criteria for rule 'accountExpires: Convert to Identity Vault time format'.
AD402 : Rule selected.
AD402 : Applying rule 'accountExpires: Convert to Identity Vault time format'.
AD402 : Action: do-reformat-op-attr("accountExpires",token-xpath("jadutil:translateFileTime2Epoch($current-value)")).
AD402 : arg-string(token-xpath("jadutil:translateFileTime2Epoch($current-value)"))
AD402 : token-xpath("jadutil:translateFileTime2Epoch($current-value)")
AD402 : Token Value: "4294967295".
AD402 : Arg Value: "4294967295".
AD402 :Policy returned:
AD402 :
<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product version="?.?.?.?">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<add class-name="User" qualified-src-dn="o=dirXML Test\ou=Users\cn=User1" src-dn="o=dirXML Test\ou=Users\cn=User1">
<association>o=dirXML Test\ou=Users\cn=User1</association>
<add-attr attr-name="accountExpires">
<value type="time">4294967295</value>
function: translateTimeMap2eDir()
function: translateTimeMap2ADLenient()
function: fixLines()