Trying to craft a policy in an existing Null driver that will fix up
attributes on a rename operation. The attributes in question are used by
our email system and, with a few exceptions, are equal to
"[CN]"@"uga.edu"

Everything works fine with one exception - a particular attribute does
not get set, and there is no error message in the trace to indicate
where I should look. The driver is running with security equal to admin
(in a dev environment) so I do not think it's a rights issue.

Here is a trace. The attribute that fails to set correctly is
"miraRoutAddr" For testing I set the "direct=true" flag; that seems to
be ignored also.

[10/26/09 11:30:12.681]:null ST: Applying rule 'Set common
attributes on rename operation'.
[10/26/09 11:30:12.681]:null ST: Action:
do-set-local-variable("lvMyID",scope="policy",token-src-attr("CN")).
[10/26/09 11:30:12.681]:null ST:
arg-string(token-src-attr("CN"))
[10/26/09 11:30:12.682]:null ST: token-src-attr("CN")
[10/26/09 11:30:12.682]:null ST: Query from policy
[10/26/09 11:30:12.682]:null ST:
<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product version="3.6.0.4294">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<query class-name="User" dest-dn="\DEVTREE\UGA\Users\myid1091"
dest-entry-id="38630" scope="entry">
<read-attr attr-name="CN"/>
</query>
</input>
</nds>
[10/26/09 11:30:12.683]:null ST: Pumping XDS to eDirectory.
[10/26/09 11:30:12.683]:null ST: Performing operation query
for \DEVTREE\UGA\Users\myid1091.
[10/26/09 11:30:12.684]:null ST: Query from policy result
[10/26/09 11:30:12.684]:null ST:
<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product version="3.6.0.4294">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<instance class-name="User"
qualified-src-dn="O=UGA\OU=Users\CN=myid1091"
src-dn="\DEVTREE\UGA\Users\myid1091" src-entry-id="38630">
<attr attr-name="CN">
<value naming="true" timestamp="1256571012#2"
type="string">myid1091</value>
</attr>
</instance>
<status level="success"></status>
</output>
</nds>
[10/26/09 11:30:12.685]:null ST: Token Value: "myid1091".
[10/26/09 11:30:12.685]:null ST: Arg Value: "myid1091".
[10/26/09 11:30:12.686]:null ST: Action:
do-set-local-variable("lvmiraLocalAddr",scope="policy",token-map("\[root]\UGA\services\UGADriverSet\UGAIDM36\UGADepartments ","DeptCode","miraLocalAddr",token-src-attr("ugaDeptNum"))).
[10/26/09 11:30:12.686]:null ST:
arg-string(token-map("\[root]\UGA\services\UGADriverSet\UGAIDM36\UGADepartments ","DeptCode","miraLocalAddr",token-src-attr("ugaDeptNum")))
[10/26/09 11:30:12.686]:null ST:
token-map("\[root]\UGA\services\UGADriverSet\UGAIDM36\UGADepartments ","DeptCode","miraLocalAddr",token-src-attr("ugaDeptNum"))
[10/26/09 11:30:12.687]:null ST:
token-map("\[root]\UGA\services\UGADriverSet\UGAIDM36\UGADepartments ","DeptCode","miraLocalAddr",token-src-attr("ugaDeptNum"))
[10/26/09 11:30:12.687]:null ST:
token-src-attr("ugaDeptNum")
[10/26/09 11:30:12.688]:null ST: Query from policy
[10/26/09 11:30:12.688]:null ST:
<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product version="3.6.0.4294">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<query class-name="User" dest-dn="\DEVTREE\UGA\Users\myid1091"
dest-entry-id="38630" scope="entry">
<read-attr attr-name="ugaDeptNum"/>
</query>
</input>
</nds>
[10/26/09 11:30:12.689]:null ST: Pumping XDS to
eDirectory.
[10/26/09 11:30:12.689]:null ST: Performing operation
query for \DEVTREE\UGA\Users\myid1091.
[10/26/09 11:30:12.689]:null ST: Query from policy
result
[10/26/09 11:30:12.690]:null ST:
<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product version="3.6.0.4294">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<instance class-name="User"
qualified-src-dn="O=UGA\OU=Users\CN=myid1091"
src-dn="\DEVTREE\UGA\Users\myid1091" src-entry-id="38630"/>
<status level="success"></status>
</output>
</nds>
[10/26/09 11:30:12.691]:null ST: Token Value: "".
[10/26/09 11:30:12.691]:null ST: Arg Value: "".
[10/26/09 11:30:12.691]:null ST: Token Value: "".
[10/26/09 11:30:12.691]:null ST: Arg Value: "".
[10/26/09 11:30:12.691]:null ST: Action:
do-set-local-variable("lvMailString",scope="policy",token-local-variable("lvMyID")+"@uga.edu").
[10/26/09 11:30:12.691]:null ST:
arg-string(token-local-variable("lvMyID")+"@uga.edu")
[10/26/09 11:30:12.692]:null ST:
token-local-variable("lvMyID")
[10/26/09 11:30:12.692]:null ST: Token Value: "myid1091".
[10/26/09 11:30:12.692]:null ST: token-text("@uga.edu")
[10/26/09 11:30:12.692]:null ST: Arg Value:
"myid1091@uga.edu".
[10/26/09 11:30:12.692]:null ST: Action:
do-set-src-attr-value("ugaMyID",token-local-variable("lvMyID")).
[10/26/09 11:30:12.693]:null ST:
arg-string(token-local-variable("lvMyID"))
[10/26/09 11:30:12.693]:null ST:
token-local-variable("lvMyID")
[10/26/09 11:30:12.693]:null ST: Token Value: "myid1091".
[10/26/09 11:30:12.693]:null ST: Arg Value: "myid1091".
[10/26/09 11:30:12.693]:null ST: Action:
do-set-src-attr-value("miLoginid",token-local-variable("lvMailString")).
[10/26/09 11:30:12.694]:null ST:
arg-string(token-local-variable("lvMailString"))
[10/26/09 11:30:12.694]:null ST:
token-local-variable("lvMailString")
[10/26/09 11:30:12.694]:null ST: Token Value:
"myid1091@uga.edu".
[10/26/09 11:30:12.694]:null ST: Arg Value:
"myid1091@uga.edu".
[10/26/09 11:30:12.694]:null ST: Action:
do-set-src-attr-value("miraMailAddr",token-local-variable("lvMailString")).
[10/26/09 11:30:12.695]:null ST:
arg-string(token-local-variable("lvMailString"))
[10/26/09 11:30:12.695]:null ST:
token-local-variable("lvMailString")
[10/26/09 11:30:12.695]:null ST: Token Value:
"myid1091@uga.edu".
[10/26/09 11:30:12.695]:null ST: Arg Value:
"myid1091@uga.edu".
[10/26/09 11:30:12.695]:null ST: Action:
do-set-dest-attr-value("miraRoutAddr",direct="true",token-local-variable("lvMailString")).
[10/26/09 11:30:12.696]:null ST:
arg-string(token-local-variable("lvMailString"))
[10/26/09 11:30:12.696]:null ST:
token-local-variable("lvMailString")
[10/26/09 11:30:12.696]:null ST: Token Value:
"myid1091@uga.edu".
[10/26/09 11:30:12.697]:null ST: Arg Value:
"myid1091@uga.edu".
[10/26/09 11:30:12.697]:null ST: Action:
do-set-src-attr-value("miraLocalAddr",token-local-variable("lvMyID")).
[10/26/09 11:30:12.697]:null ST:
arg-string(token-local-variable("lvMyID"))
[10/26/09 11:30:12.697]:null ST:
token-local-variable("lvMyID")
[10/26/09 11:30:12.697]:null ST: Token Value: "myid1091".
[10/26/09 11:30:12.697]:null ST: Arg Value: "myid1091".
[10/26/09 11:30:12.698]:null ST: Action:
do-add-src-attr-value("miraLocalAddr",token-local-variable("lvMailString")).
[10/26/09 11:30:12.698]:null ST:
arg-string(token-local-variable("lvMailString"))
[10/26/09 11:30:12.698]:null ST:
token-local-variable("lvMailString")
[10/26/09 11:30:12.698]:null ST: Token Value:
"myid1091@uga.edu".
[10/26/09 11:30:12.699]:null ST: Arg Value:
"myid1091@uga.edu".
[10/26/09 11:30:12.699]:null ST: Action: do-if().
[10/26/09 11:30:12.699]:null ST: Evaluating conditions.
[10/26/09 11:30:12.699]:null ST: (if-local-variable
'lvmiraLocalAddr' not-equal "") = FALSE.
[10/26/09 11:30:12.699]:null ST: Performing else actions.
[10/26/09 11:30:12.699]:null ST: Direct command from policy
[10/26/09 11:30:12.700]:null ST:
<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product version="3.6.0.4294">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<modify class-name="User" dest-dn="\DEVTREE\UGA\Users\myid1091"
dest-entry-id="38630" event-id="idm-dev#20091026153012#1#2">
<modify-attr attr-name="ugaMyID">
<remove-all-values/>
<add-value>
<value>myid1091</value>
</add-value>
</modify-attr>
<modify-attr attr-name="miLoginid">
<remove-all-values/>
<add-value>
<value>myid1091@uga.edu</value>
</add-value>
</modify-attr>
<modify-attr attr-name="miraMailAddr">
<remove-all-values/>
<add-value>
<value>myid1091@uga.edu</value>
</add-value>
</modify-attr>
<modify-attr attr-name="miraLocalAddr">
<remove-all-values/>
<add-value>
<value>myid1091</value>
</add-value>
</modify-attr>
<modify-attr attr-name="miraLocalAddr">
<add-value>
<value>myid1091@uga.edu</value>
</add-value>
</modify-attr>
</modify>
</input>
</nds>
[10/26/09 11:30:12.702]:null ST: Pumping XDS to eDirectory.
[10/26/09 11:30:12.702]:null ST: Performing operation modify for
\DEVTREE\UGA\Users\myid1091.
[10/26/09 11:30:12.703]:null ST: Modifying entry
\DEVTREE\UGA\Users\myid1091.
[10/26/09 11:30:13.022]:null ST: Processing returned document.
[10/26/09 11:30:13.022]:null ST: Processing operation <status> for .
[10/26/09 11:30:13.022]:null ST:
DirXML Log Event -------------------
Driver: \DEVTREE\UGA\services\UGADriverSet\st-fs-bc-null
Channel: Subscriber
Status: Success


--
keithbmartin
------------------------------------------------------------------------
keithbmartin's Profile: http://forums.novell.com/member.php?userid=48654
View this thread: http://forums.novell.com/showthread.php?t=390539