I'm having a problem with renames to ldap. While the rename works the
problem I'm having is the original name in the ldap is prefixed with
"employee." I need to keep the naming standard. i.e. employee.UserA. I
should state the in the identity vault the user object is not prefixed
with employee. I have been successful in striping the new-name xml
element out but my problem is inserting it back in.

Here is the start of the rename event

<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product version="3.5.11.20080307 ">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<rename cached-time="20090130220647.590Z" class-name="User"
event-id="idvsrv1#20090130220647#2#2"
old-src-dn="\IDV\ca\identities\userA"
qualified-old-src-dn="O=ca\OU=identities\CN=userA"
qualified-src-dn="O=ca\OU=identities\CN=userA" remove-old-name="true"
src-dn="\IDV\ca\identities\userA" src-entry-id="45904"
timestamp="1233353202#2">
_*<association_state=\"associated\">uid=employee.u serA,ou=employees,o=ca,dc=xxxxx,dc=com</association>
<new-name>userB</new-name>*_
</rename>
</input>
</nds>

Tried the following in the event transform as well as the output
transform but the do-set-xml-attr doesn't work.

<rule>
<description>Rename: User</description>
<conditions>
<and>
<if-operation op="equal">rename</if-operation>
</and>
</conditions>
<actions>
<do-strip-xpath expression="./new-name"/>
<do-set-xml-attr expression="." name="new-name">
<arg-string>
<token-text>employee.</token-text>
<token-src-name/>
</arg-string>
</do-set-xml-attr>
</actions>
</rule>

Any help/advice in advance is greatly appreciated.


--
jneufeld
------------------------------------------------------------------------
jneufeld's Profile: http://forums.novell.com/member.php?userid=13845
View this thread: http://forums.novell.com/showthread.php?t=358705