Hi,

we are trying to update the DirXml-EntitlementRef attribute on User.
The problem we are getting while updating Dirxml_entitlementRef.

It gets updated without any problem as described below

Code written in User entity with entity DN -
'CN=temp1234,OU=Users,O=chw'
Description for Dirxml-EntitlementRef attribute
Modify Type - *Replace All Value*
Datatype - *String*
Modify Value Expression - *Code below*

Code:
--------------------
function list() {
v=new java.util.Vector();
v.add('cn=CHW_UP_Entitlement_Emtek,cn=Emtek,cn=Dri verSet,ou=services,o=chw#0#<ref><src>NRF</src><id>1230876159040</id><param>10006|52193</param></ref>');
v.add('cn=CHW_UP_Entitlement_Invision,cn=chw_UP_Dr iver_Invision,cn=DriverSet,ou=services,o=chw#0#<re f><src>NRF</src><id>1230884291459</id><param>ANC001</param></ref>');
return v;
};
list();
--------------------


But if we fetch Dirxml-EntitlementRef from other User object and trying
to update then it do not update. code snippet is as below


Code:
--------------------
function list() {
v=new java.util.Vector();
var entList = IDVault.get('CN=temp12345,OU=Users,O=chw' , 'user', 'dirXML-EntitlementRef');
for( var i=0 ; i < entList.length ; i++)
{
var iEnt = entList[i];
v.add(Object(iEnt).toString());

};
v.add('cn=CHW_UP_Entitlement_Emtek,cn=Emtek,cn=Dri verSet,ou=services,o=chw#0#<ref><src>NRF</src><id>1230876159040</id><param>10006|52193</param></ref>');
v.add('cn=CHW_UP_Entitlement_Invision,cn=chw_UP_Dr iver_Invision,cn=DriverSet,ou=services,o=chw#0#<re f><src>NRF</src><id>1230884291459</id><param>ANC001</param></ref>');
return v;
};
list();
--------------------


The only difference is in first case we are hardcoding whereas in next
case we are fetching Dirxml-EntitlementRef from User
*'CN=temp12345,OU=Users,O=chw' *and updating in
*'CN=temp1234,OU=Users,O=chw' * as string value.

Please help me out.
Thanks in advance!!


--
rajeshemailto
------------------------------------------------------------------------
rajeshemailto's Profile: http://forums.novell.com/member.php?userid=32760
View this thread: http://forums.novell.com/showthread.php?t=355660