Scritping Driver and Multi-Valued Attributes

Using the 3.6 (patched to IR3) scripting driver and having issues with 
multi-valued attributes.  If two or more values are being added at the 
same time according to the documentation it's supposed to have multiple 
name/pairs:
ADD_TELEPHONE=818-555-2100
ADD_TELEPHONE=818-555-9842

When I test sending the mail attribute through with multiple values it 
seems to only take the first value.  I also tested with additional 
attributes with the same results.  The attributes I tested with are 
declared in the schema.def file as multi-valued.

Thank you in advance for any help or possible direction to look for the 
issue.


Here is a trace from the RL side with sending 2 values of the mail 
attribute, when it split into the name/value pairs it only takes the 
first value of the attribute:

2009-09-21 17:24:08  [9108@12236] (trace):  Received.
2009-09-21 17:24:08  [9108@12236] (trace):   <nds ndsversion="8.x" 
dtdversion="3.5">
2009-09-21 17:24:08  [9108@12236] (trace):     <source>
2009-09-21 17:24:08  [9108@12236] (trace):       <product 
version="3.5.11.20080307 ">DirXML</product>
2009-09-21 17:24:08  [9108@12236] (trace):       <contact>Novell, Inc.</
contact>
2009-09-21 17:24:08  [9108@12236] (trace):     </source>
2009-09-21 17:24:08  [9108@12236] (trace):     <input>
2009-09-21 17:24:08  [9108@12236] (trace):       <modify 
timestamp="1253571848#2" src-entry-id="35387" src-dn="\CMPNYAD-DEV\Company
\SubCompany\Users\xdbo001" qualified-src-dn="O=Company\OU=SubCompany
\OU=Users\CN=xdbo001" event-id="DEVCMPNYAD1#20090921222408#1#1" class-
name="User" cached-time="20090921222408.012Z">
2009-09-21 17:24:08  [9108@12236] (trace):         <association 
state="associated">xdbo001</association>
2009-09-21 17:24:08  [9108@12236] (trace):         <modify-attr attr-
name="mail">
2009-09-21 17:24:08  [9108@12236] (trace):           <add-value>
2009-09-21 17:24:08  [9108@12236] (trace):             <value 
type="string">test31@devCompany.com</value>
2009-09-21 17:24:08  [9108@12236] (trace):           </add-value>
2009-09-21 17:24:08  [9108@12236] (trace):           <add-value>
2009-09-21 17:24:08  [9108@12236] (trace):             <value 
type="string">test32@devCompany.com</value>
2009-09-21 17:24:08  [9108@12236] (trace):           </add-value>
2009-09-21 17:24:08  [9108@12236] (trace):         </modify-attr>
2009-09-21 17:24:08  [9108@12236] (trace):         <modify-attr attr-
name="wwgForeignUserID">
2009-09-21 17:24:08  [9108@12236] (trace):           <remove-all-values />
2009-09-21 17:24:08  [9108@12236] (trace):           <add-value>
2009-09-21 17:24:08  [9108@12236] (trace):             <value>E02946</
value>
2009-09-21 17:24:08  [9108@12236] (trace):           </add-value>
2009-09-21 17:24:08  [9108@12236] (trace):         </modify-attr>
2009-09-21 17:24:08  [9108@12236] (trace):         <modify-attr attr-
name="CN">
2009-09-21 17:24:08  [9108@12236] (trace):           <remove-all-values />
2009-09-21 17:24:08  [9108@12236] (trace):           <add-value>
2009-09-21 17:24:08  [9108@12236] (trace):             <value>xdbo001</
value>
2009-09-21 17:24:08  [9108@12236] (trace):           </add-value>
2009-09-21 17:24:08  [9108@12236] (trace):         </modify-attr>
2009-09-21 17:24:08  [9108@12236] (trace):       </modify>
2009-09-21 17:24:08  [9108@12236] (trace):     </input>
2009-09-21 17:24:08  [9108@12236] (trace):   </nds>
2009-09-21 17:24:08  [9108@12236] (trace):  Received document for 
subscriber channel
2009-09-21 17:24:08  [9108@12236] (drv_connection):  
Connection_queueDocument: starting
2009-09-21 17:24:08  [9108@12236] (drv_connection):  
Connection_queueDocument: ending
2009-09-21 17:24:08  [9108@12236] (drv_connection):  
Connection_receiveBytes: starting
2009-09-21 17:24:08  [9108@12236] (trace):  Waiting for receive...
2009-09-21 17:24:08  [9108@12188] (drv_connection):  
Connection_receiveBytesWithCommand: ending
2009-09-21 17:24:08  [9108@12188] (drv_driver):  
Driver_reCMPNYterObjectDn: starting
2009-09-21 17:24:08  [9108@12188] (drv_driver):  
Driver_reCMPNYterObjectDn: ending
2009-09-21 17:24:08  [9108@12188] (trace):  Calling 
SubscriptionShim.execute()
2009-09-21 17:24:08  [9108@12188] (trace):  --->DriverShim subscriber 
execute()..
2009-09-21 17:24:08  [9108@12188] (trace):  --->DriverShim subscriber 
dispatch() command = modify
2009-09-21 17:24:08  [9108@12188] (drv_loopback):  --->DriverShim 
Subscriber loopback: starting...
2009-09-21 17:24:08  [9108@12188] (drv_loopback):     COMMAND=modify
2009-09-21 17:24:08  [9108@12188] (drv_loopback):     ASSOCIATION=xdbo001
2009-09-21 17:24:08  [9108@12188] (drv_loopback):     CLASS_NAME=User
2009-09-21 17:24:08  [9108@12188] (drv_loopback):     
EVENT_ID=DEVCMPNYAD1#20090921222408#1#1
2009-09-21 17:24:08  [9108@12188] (drv_loopback):     SRC_DN=\CMPNYAD-DEV
\Company\SubCompany\Users\xdbo001
2009-09-21 17:24:08  [9108@12188] (drv_loopback):     SRC_ENTRY_ID=35387
2009-09-21 17:24:08  [9108@12188] (drv_loopback):     
ADD_mail=test31@devCompany.com
2009-09-21 17:24:08  [9108@12188] (drv_loopback):     
REMOVE_ALL_wwgForeignUserID=true
2009-09-21 17:24:08  [9108@12188] (drv_loopback):     
ADD_wwgForeignUserID=E02946
2009-09-21 17:24:08  [9108@12188] (drv_loopback):     REMOVE_ALL_CN=true
2009-09-21 17:24:08  [9108@12188] (drv_loopback):     ADD_CN=xdbo001
2009-09-21 17:24:08  [9108@12188] (drv_loopback):  --->DriverShim 
Subscriber loopback: checking filter..





0
RJoseph
9/21/2009 10:47:32 PM
novell.id-manager.drivers 10360 articles. 2 followers. Follow

3 Replies
597 Views

Similar Articles

[PageSpeed] 14
Get it on Google Play
Get it on Apple App Store

What Scripting language are you using? For VBScript and PowerShell,
there are different commands for retrieving one value and multiple
values.
VBScript: IDMGetEventValues / IDMGetEventValue
PowerShell: idm_geteventvalues / idm_geteventvalue

I'd have to look up how it works for perl and sh.

Sam Sampson
Novell IDM Drivers


-- 
Zygomax
------------------------------------------------------------------------
Zygomax's Profile: http://forums.novell.com/member.php?userid=10581
View this thread: http://forums.novell.com/showthread.php?t=386902

0
Zygomax
9/22/2009 1:36:02 PM
You may want to try two values inside the add-value:

<add-value>
<value>test31@devCompany.com</value>
<value>test32@devCompany.com</value>
</add-value>



RJoseph;1859207 Wrote: 
> Using the 3.6 (patched to IR3) scripting driver and having issues with
> multi-valued attributes.  If two or more values are being added at the
> same time according to the documentation it's supposed to have
> multiple
> name/pairs:
> ADD_TELEPHONE=818-555-2100
> ADD_TELEPHONE=818-555-9842
> 
> When I test sending the mail attribute through with multiple values it
> seems to only take the first value.  I also tested with additional
> attributes with the same results.  The attributes I tested with are
> declared in the schema.def file as multi-valued.
> 
> Thank you in advance for any help or possible direction to look for
> the
> issue.
> 
> 
> Here is a trace from the RL side with sending 2 values of the mail
> attribute, when it split into the name/value pairs it only takes the
> first value of the attribute:
> 
> 2009-09-21 17:24:08  [9108@12236] (trace):  Received.
> 2009-09-21 17:24:08  [9108@12236] (trace):   <nds ndsversion="8.x"
> dtdversion="3.5">
> 2009-09-21 17:24:08  [9108@12236] (trace):     <source>
> 2009-09-21 17:24:08  [9108@12236] (trace):       <product
> version="3.5.11.20080307 ">DirXML</product>
> 2009-09-21 17:24:08  [9108@12236] (trace):       <contact>Novell,
> Inc.</
> contact>
> 2009-09-21 17:24:08  [9108@12236] (trace):     </source>
> 2009-09-21 17:24:08  [9108@12236] (trace):     <input>
> 2009-09-21 17:24:08  [9108@12236] (trace):       <modify
> timestamp="1253571848#2" src-entry-id="35387"
> src-dn="\CMPNYAD-DEV\Company
> \SubCompany\Users\xdbo001" qualified-src-dn="O=Company\OU=SubCompany
> \OU=Users\CN=xdbo001" event-id="DEVCMPNYAD1#20090921222408#1#1" class-
> name="User" cached-time="20090921222408.012Z">
> 2009-09-21 17:24:08  [9108@12236] (trace):         <association
> state="associated">xdbo001</association>
> 2009-09-21 17:24:08  [9108@12236] (trace):         <modify-attr attr-
> name="mail">
> 2009-09-21 17:24:08  [9108@12236] (trace):           <add-value>
> 2009-09-21 17:24:08  [9108@12236] (trace):             <value
> type="string">test31@devCompany.com</value>
> 2009-09-21 17:24:08  [9108@12236] (trace):           </add-value>
> 2009-09-21 17:24:08  [9108@12236] (trace):           <add-value>
> 2009-09-21 17:24:08  [9108@12236] (trace):             <value
> type="string">test32@devCompany.com</value>
> 2009-09-21 17:24:08  [9108@12236] (trace):           </add-value>
> 2009-09-21 17:24:08  [9108@12236] (trace):         </modify-attr>
> 2009-09-21 17:24:08  [9108@12236] (trace):         <modify-attr attr-
> name="wwgForeignUserID">
> 2009-09-21 17:24:08  [9108@12236] (trace):           <remove-all-values
> />
> 2009-09-21 17:24:08  [9108@12236] (trace):           <add-value>
> 2009-09-21 17:24:08  [9108@12236] (trace):             <value>E02946</
> value>
> 2009-09-21 17:24:08  [9108@12236] (trace):           </add-value>
> 2009-09-21 17:24:08  [9108@12236] (trace):         </modify-attr>
> 2009-09-21 17:24:08  [9108@12236] (trace):         <modify-attr attr-
> name="CN">
> 2009-09-21 17:24:08  [9108@12236] (trace):           <remove-all-values
> />
> 2009-09-21 17:24:08  [9108@12236] (trace):           <add-value>
> 2009-09-21 17:24:08  [9108@12236] (trace):            
> <value>xdbo001</
> value>
> 2009-09-21 17:24:08  [9108@12236] (trace):           </add-value>
> 2009-09-21 17:24:08  [9108@12236] (trace):         </modify-attr>
> 2009-09-21 17:24:08  [9108@12236] (trace):       </modify>
> 2009-09-21 17:24:08  [9108@12236] (trace):     </input>
> 2009-09-21 17:24:08  [9108@12236] (trace):   </nds>
> 2009-09-21 17:24:08  [9108@12236] (trace):  Received document for
> subscriber channel
> 2009-09-21 17:24:08  [9108@12236] (drv_connection):
> Connection_queueDocument: starting
> 2009-09-21 17:24:08  [9108@12236] (drv_connection):
> Connection_queueDocument: ending
> 2009-09-21 17:24:08  [9108@12236] (drv_connection):
> Connection_receiveBytes: starting
> 2009-09-21 17:24:08  [9108@12236] (trace):  Waiting for receive...
> 2009-09-21 17:24:08  [9108@12188] (drv_connection):
> Connection_receiveBytesWithCommand: ending
> 2009-09-21 17:24:08  [9108@12188] (drv_driver):
> Driver_reCMPNYterObjectDn: starting
> 2009-09-21 17:24:08  [9108@12188] (drv_driver):
> Driver_reCMPNYterObjectDn: ending
> 2009-09-21 17:24:08  [9108@12188] (trace):  Calling
> SubscriptionShim.execute()
> 2009-09-21 17:24:08  [9108@12188] (trace):  --->DriverShim subscriber
> execute()..
> 2009-09-21 17:24:08  [9108@12188] (trace):  --->DriverShim subscriber
> dispatch() command = modify
> 2009-09-21 17:24:08  [9108@12188] (drv_loopback):  --->DriverShim
> Subscriber loopback: starting...
> 2009-09-21 17:24:08  [9108@12188] (drv_loopback):     COMMAND=modify
> 2009-09-21 17:24:08  [9108@12188] (drv_loopback):    
> ASSOCIATION=xdbo001
> 2009-09-21 17:24:08  [9108@12188] (drv_loopback):     CLASS_NAME=User
> 2009-09-21 17:24:08  [9108@12188] (drv_loopback):
> EVENT_ID=DEVCMPNYAD1#20090921222408#1#1
> 2009-09-21 17:24:08  [9108@12188] (drv_loopback):    
> SRC_DN=\CMPNYAD-DEV
> \Company\SubCompany\Users\xdbo001
> 2009-09-21 17:24:08  [9108@12188] (drv_loopback):    
> SRC_ENTRY_ID=35387
> 2009-09-21 17:24:08  [9108@12188] (drv_loopback):
> ADD_mail=test31@devCompany.com
> 2009-09-21 17:24:08  [9108@12188] (drv_loopback):
> REMOVE_ALL_wwgForeignUserID=true
> 2009-09-21 17:24:08  [9108@12188] (drv_loopback):
> ADD_wwgForeignUserID=E02946
> 2009-09-21 17:24:08  [9108@12188] (drv_loopback):    
> REMOVE_ALL_CN=true
> 2009-09-21 17:24:08  [9108@12188] (drv_loopback):     ADD_CN=xdbo001
> 2009-09-21 17:24:08  [9108@12188] (drv_loopback):  --->DriverShim
> Subscriber loopback: checking filter..


-- 
jgrieshop
------------------------------------------------------------------------
jgrieshop's Profile: http://forums.novell.com/member.php?userid=5538
View this thread: http://forums.novell.com/showthread.php?t=386902

0
jgrieshop
9/22/2009 3:26:02 PM
Thank you all.

It was mostly using idm_geteventvalue vs idm_geteventvalues.  When I was 
looking in the RL log and saw it only seemed to be loading one name/value 
pair I thought there was an issue with it taking all the values.  The 
additional values were there just not showing in RL log as a name/value 
pair.  So after getting that resolved and getting jiggy with Powershell 
Arrays I have my issue resolved.
0
RJoseph
9/22/2009 8:34:59 PM
Reply: