Hi all,

( IDM 4.0.1 and WS 2008)
ActiveDirectory Driver: to solve the problem of 86400 seconds of
difference between IDV and AD, I implemented in the subscriber channel a
command rule that adds the 86400 ms to the operation attribute
LoginExpirationtime ($current-value+86400). After, in the output I have
the rule that converts Epoch2Filetime . And it works correctly.
The problem is with the publisher channel.

I tried to put the same rule (now subtracting 86400) in the command
Transformation of the Publisher Channel and didn't work :

Code(-9131) Error in
vnd.nds.stream://DEMOXXX/XXXX/XXXXX/ActiveDirectory/Publisher/Command+T
ransform#XmlData:18 : Error evaluating XPATH expression
'token-xpath("jadutil:translateFileTime2Epoch($current-value-86400)")' :
com.novell.xml.xpath.XPathEvaluationExc
eption: function 'jadutil:translateFileTime2Epoch' not
found.<application>DirXML</application>

......

<status event-id="ActiveDirectory##13c95460d7d##0"
level="error">Code(-9010) An exception occurred:
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(Unk nown
Source)
at java.lang.Long.parseLong(Unknown Source)
at java.lang.Long.parseLong(Unknown Source)
at
com.novell.nds.dirxml.engine.event.DSEUtil.validat eNumber(DSEUtil.java:343)
at
com.novell.nds.dirxml.engine.event.DSETime.fromXML (DSETime.java:144)
at
com.novell.nds.dirxml.engine.event.DSEAttributeVal ueFactory.createValue(DSEAttributeValueFactory.jav a:493)
at
com.novell.nds.dirxml.engine.Transformer$AttrValue Key.&lt;init>(Transformer.java:3108)
at
com.novell.nds.dirxml.engine.Transformer$AttrEntry .addValue(Transformer.java:3145)
at
com.novell.nds.dirxml.engine.Transformer.optimizeM odify(Transformer.java:2245)
at
com.novell.nds.dirxml.engine.Publisher$ModifyProce ssor.process(Publisher.java:1080)
at
com.novell.nds.dirxml.engine.Publisher.processEven t(Publisher.java:789)
at
com.novell.nds.dirxml.engine.Publisher.processEven ts(Publisher.java:694)
at
com.novell.nds.dirxml.engine.Publisher.execute(Pub lisher.java:343)
at
com.novell.nds.dirxml.remote.driver.PublicationShi mImpl.publish(PublicationShimImpl.java:259)
at
com.novell.nds.dirxml.remote.driver.PublicationShi mImpl.start(PublicationShimImpl.java:175)
at
com.novell.nds.dirxml.engine.Publisher.run(Publish er.java:519)
at java.lang.Thread.run(Unknown Source)
<application>DirXML</application>


The same rule, in the input transformation (I thought it could be better
before conversion, before filter) setting the value type like string,
does not work, perhaps because of the '-' XPATH expression. This is the
result in the trace:

Code (-9130) Error in vnd.nds.stream :/ / DEMOXXXX /XXXXX / XXXXX /
ActiveDirectory / InputTransform # XMLData: 64: An invalid XPATH
expression 'jadutil: translateFileTime2Epoch ($ current-value-'86400')
'is specified : java.lang.IllegalArgumentException: DOMEvaluator parser
error: ')' was expected.


So now if a user in Ad expires on March 1, 2015 , in IDV expires on
March 2, 2015.

How can I solve this problem?

Thanks

Silvia


--
snestola
------------------------------------------------------------------------
snestola's Profile: https://forums.netiq.com/member.php?userid=997
View this thread: https://forums.netiq.com/showthread.php?t=46694