Hello all!

I'm trying to simulate a policy, processing a 'for each Added
Entitlement' action, but I'm not successful.
It appears that the simulate feature does not process the xml (above).

-[07/01/13 18:28:19.318]:JDBCDRIVER ST:
<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Advanced" version="4.0.2.0">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<add cached-time="20130701212818.366Z" class-name="User"
event-id="W2KJF298-NDS#20130701212817#2#4:fb7c0a2c-3f9f-4380-8317-304936a73b3b"
qualified-src-dn="O=MyCompany\OU=usuarios\OU=contratados\CN=joao galocha"
src-dn="\MyCompany_IDVAULT\MyCompany\usuarios\contrata dos\joaogalocha"
src-entry-id="49736" timestamp="1372714097#9">
<add-attr attr-name="CN">
<value naming="true" timestamp="1336052878#41"
type="string">joaogalocha</value>
</add-attr>
<add-attr attr-name="DirXML-EntitlementRef">
<value timestamp="1372714097#9" type="structured">
<component name="nameSpace">1</component>
<component
name="volume">\MyCompany_IDVAULT\MyCompany\servico s\DriverSet\JDBCDRIVER\RoleBanco</component>
<component name="path.xml">
<ref>
<src>UA</src>
<id/>
<param>ORACLE://R_DSV_GTTI|S</param>
</ref>
</component>
</value>
</add-attr>
<add-attr attr-name="Login Disabled">
<value timestamp="1372365240#10" type="state">false</value>
</add-attr>
<add-attr attr-name="MyCompanyP03uAuth">
<value timestamp="1372714098#2" type="state">true</value>
</add-attr>
<add-attr attr-name="nspmDistributionPassword"><!-- content
suppressed -->
</add-attr>
</add>
<jdbc:statement jdbc:transaction-id="2"
jdbc:transaction-type="manual" jdbc:type="update"
xmlns:jdbc="urn:dirxml:jdbc" xmlns:jdbc-1="urn:dirxml:jdbc"
xmlns:jdbc-2="urn:dirxml:jdbc" xmlns:jdbc-3="urn:dirxml:jdbc"
xmlns:jdbc-4="urn:dirxml:jdbc">
<jdbc:sql>CREATE USER "joaogalocha" IDENTIFIED BY "2479hlpc@"
DEFAULT TABLESPACE "TSUADM01" TEMPORARY TABLESPACE "TSWADM02" ACCOUNT
UNLOCK</jdbc:sql>
<jdbc:sql>GRANT "CONNECT" TO "joaogalocha"</jdbc:sql>
</jdbc:statement>
</input>
</nds>-

After pasting the xml code and click next, the code changes to (deleting
the path.xml reference):

-<?xml version="1.0" encoding="UTF-8"?><nds dtdversion="4.0"
ndsversion="8.x">
<source>
<product version="?.?.?.?">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<add cached-time="20130701212818.366Z" class-name="User"
event-id="W2KJF298-NDS#20130701212817#2#4:fb7c0a2c-3f9f-4380-8317-304936a73b3b"
qualified-src-dn="O=MyCompany\OU=usuarios\OU=contratados\CN=joao galocha"
src-dn="\MyCompany_IDVAULT\MyCompany\usuarios\contrata dos\joaogalocha"
src-entry-id="49736" timestamp="1372714097#9">
<add-attr attr-name="CN">
<value naming="true" timestamp="1336052878#41"
type="string">joaogalocha</value>
</add-attr>
<add-attr attr-name="DirXML-EntitlementRef">
<value timestamp="1372714097#9" type="structured">
<component name="nameSpace">1</component>
<component
name="volume">\MyCompany_IDVAULT\MyCompany\servico s\DriverSet\JDBCDRIVER\RoleBanco</component>
<component name="path.xml"/>
</value>
</add-attr>
<add-attr attr-name="Login Disabled">
<value timestamp="1372365240#10" type="state">false</value>
</add-attr>
<add-attr attr-name="MyCompanyP03uAuth">
<value timestamp="1372714098#2" type="state">true</value>
</add-attr>
<add-attr attr-name="nspmDistributionPassword"/>
</add>
</input>
</nds>-

I know that EntitlementRef is a structured value field and I have to
edit the each field individually (ex path.xml), but I dont know what to
do to get over this and test my code.
Any thoughts?

Thanks in advance.
JP


--
jpgalocha
------------------------------------------------------------------------
jpgalocha's Profile: https://forums.netiq.com/member.php?userid=2741
View this thread: https://forums.netiq.com/showthread.php?t=48136