Hello:

I have something that I could not figure it out.
In my AD subscriber channel, I want to get the distinguishedName from AD
and store it in a local variable. So I query for the destination attribute
"distinguishedName". I can see the correct value in the trace, but then it
changed to the eDirectory distinguishedName of the associated record. I do
not understand why it behaviored likt that. Can anyone explain to me what
happened? Also what shall I do if I just want the distinguishedName from
AD?

Thank you

Jie

16:55:30 91FEFBB0 Drvrs: AD ST:
<nds dtdversion="1.1" ndsversion="8.7">
<source>
<product asn1id="" build="20060706_164400"
instance="DEVLIDVTREEescidmdriversetActive Directory"
version="3.1.1">AD</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<instance class-name="user" event-id="0"
src-dn="CN=XXZZZZ,OU=Users,OU=2004,OU=Locations,DC=tes tna,DC=testds,DC=monsanto,DC=com">
<association>5ba7d8cb2c71ab42b29131af5ca7f48c</association>
<attr attr-name="distinguishedName">
<value association-ref="5ba7d8cb2c71ab42b29131af5ca7f48c" naming="true"
type="dn">CN=XXZZZZ,OU=Users,OU=2004,OU=Locations, DC=testna,DC=testds,DC=monsanto,DC=com</value>
</attr>
</instance>
<status event-id="0" level="success"/>
</output>
</nds>
16:55:30 91FEFBB0 Drvrs: AD ST: Applying policy: 'Email notifications for
failed password subscriptions'.
16:55:30 91FEFBB0 Drvrs: AD ST: Applying to instance #1.
16:55:30 91FEFBB0 Drvrs: AD ST: Applying to status #2.
16:55:30 91FEFBB0 Drvrs: AD ST: Policy returned:
16:55:30 91FEFBB0 Drvrs: AD ST:
<nds dtdversion="1.1" ndsversion="8.7">
<source>
<product asn1id="" build="20060706_164400"
instance="DEVLIDVTREEescidmdriversetActive Directory"
version="3.1.1">AD</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<instance class-name="user" event-id="0"
src-dn="CN=XXZZZZ,OU=Users,OU=2004,OU=Locations,DC=tes tna,DC=testds,DC=monsanto,DC=com">
<association>5ba7d8cb2c71ab42b29131af5ca7f48c</association>
<attr attr-name="distinguishedName">
<value association-ref="5ba7d8cb2c71ab42b29131af5ca7f48c" naming="true"
type="dn">CN=XXZZZZ,OU=Users,OU=2004,OU=Locations, DC=testna,DC=testds,DC=monsanto,DC=com</value>
</attr>
</instance>
<status event-id="0" level="success"/>
</output>
</nds>
16:55:30 91FEFBB0 Drvrs: AD ST: Applying schema mapping policies to input.
16:55:30 91FEFBB0 Drvrs: AD ST: Mapping class-name 'user' to 'User'.
16:55:30 91FEFBB0 Drvrs: AD ST: Mapping attr-name 'distinguishedName' to
'distinguishedName'.
16:55:30 91FEFBB0 Drvrs: AD ST: Resolving association references.
16:55:30 92F95BB0 Drvrs: SADIE PT: Sleeping for 20 second(s).
16:55:30 91FEFBB0 Drvrs: AD ST: Query from policy result
16:55:30 91FEFBB0 Drvrs: AD ST:
<nds dtdversion="1.1" ndsversion="8.7">
<source>
<product asn1id="" build="20060706_164400"
instance="DEVLIDVTREEescidmdriversetActive Directory"
version="3.1.1">AD</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<instance class-name="User" event-id="0"
src-dn="CN=XXZZZZ,OU=Users,OU=2004,OU=Locations,DC=tes tna,DC=testds,DC=monsanto,DC=com">
<association>5ba7d8cb2c71ab42b29131af5ca7f48c</association>
<attr attr-name="distinguishedName">
<value naming="true" type="dn">DEVLIDVTREEintactiveXXZZZZ</value>
</attr>
</instance>
<status event-id="0" level="success"/>
</output>
</nds>
16:55:30 91FEFBB0 Drvrs: AD ST: Token Value: "DEVLIDVTREEintactiveXXZZZZ".
16:55:30 91FEFBB0 Drvrs: AD ST: Arg Value: "DEVLIDVTREEintactiveXXZZZZ".
16:55:30 91FEFBB0 Drvrs: AD ST: Action:
do-set-local-variable("VarDestMailzoneOU",token-xpath("substring-after(substring-before($VarDestDN,'OU=Locations,'),'OU=Users,OU=') ")).