Query a multivalued attribute and store part of each value in a single valued string/attribute

Hello hello again,

so I am trying to cook something again and obviously I am failing.

I have a mutlivalued attribute in eDirectory and I need to store a part 
from each value into a single valued attribute.

Example:
Attribute A
- value1: 001-I
- value2: 002-D
- value3: 003-M

I need the I and the D and the M and store in a single valued attribute
Attribute B
-value: IDM

I managed to query the destination user to get the attribute I want from 
the user ... WOHOO :-)
Yet everythin after fails

Here is what I cooked up:

		<actions>
			<do-set-local-variable name="VAR_DN" scope="policy">
				<arg-string>
					<token-dest-dn/>
				</arg-string>
			</do-set-local-variable>
			<do-set-local-variable name="VAR_RESULT" scope="policy">
				<arg-node-set>
					<token-xpath expression="query:search($destQueryProcessor, 
'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')"/>
				</arg-node-set>
			</do-set-local-variable>
			<do-for-each>
				<arg-node-set>
					<token-xpath 
expression='$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value'/>
				</arg-node-set>
				<arg-actions>
					<do-set-local-variable name="VAR_STATUS_TEMP" scope="policy">
						<arg-string>
							<token-xpath 
expression="substring-after($VAR_RESULT/attr[@attr-name=&quot;ROCECrebo&quot;]/value,&apos;-&apos;)"/>
						</arg-string>
					</do-set-local-variable>
					<do-set-local-variable name="VAR_STATUS_TEMP2" scope="policy">
						<arg-string>
							<token-xpath 
expression="concat($VAR_STATUS_TEMP2,$VAR_STATUS_TEMP)"/>
						</arg-string>
					</do-set-local-variable>
					<do-trace-message level="0">
						<arg-string>
							<token-text xml:space="preserve">BLA BLA BLA  </token-text>
							<token-local-variable name="VAR_STATUS_TEMP2"/>
						</arg-string>
					</do-trace-message>
				</arg-actions>
			</do-for-each>
			<do-veto/>
		</actions>


This is the trace result:
01/22/08 20:21:58.178]:HR_CSV PT:Applying command transformation policies.
[01/22/08 20:21:58.179]:HR_CSV PT:Applying policy: %+C%14CTEST%-C.
[01/22/08 20:21:58.180]:HR_CSV PT:  Applying to modify #1.
[01/22/08 20:21:58.180]:HR_CSV PT:    Evaluating selection criteria for 
rule 'TEST'.
[01/22/08 20:21:58.183]:HR_CSV PT:      (if-op-attr 'ROCEcrebo' 
available) = TRUE.
[01/22/08 20:21:58.183]:HR_CSV PT:    Rule selected.
[01/22/08 20:21:58.184]:HR_CSV PT:    Applying rule 'TEST'.
[01/22/08 20:21:58.184]:HR_CSV PT:      Action: 
do-set-local-variable("VAR_DN",scope="policy",token-dest-dn()).
[01/22/08 20:21:58.184]:HR_CSV PT:        arg-string(token-dest-dn())
[01/22/08 20:21:58.186]:HR_CSV PT:          token-dest-dn()
[01/22/08 20:21:58.187]:HR_CSV PT:            Token Value: 
"\EDIR_001\novell\IDM\ROCE\PS100011".
[01/22/08 20:21:58.188]:HR_CSV PT:          Arg Value: 
"\EDIR_001\novell\IDM\ROCE\PS100011".
[01/22/08 20:21:58.188]:HR_CSV PT:      Action: 
do-set-local-variable("VAR_RESULT",scope="policy",arg-node-set(token-xpath("query:search($destQueryProcessor, 
'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')"))).
[01/22/08 20:21:58.191]:HR_CSV PT: 
arg-node-set(token-xpath("query:search($destQueryProcessor, 
'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')"))
[01/22/08 20:21:58.192]:HR_CSV PT: 
token-xpath("query:search($destQueryProcessor, 'user','',$VAR_DN, 
'User', '','', 'ROCEcrebo')")
[01/22/08 20:21:58.194]:HR_CSV PT:            Query from policy
[01/22/08 20:21:58.194]:HR_CSV PT:
<nds dtdversion="3.5" ndsversion="8.x">
   <source>
     <product version="3.5.1.20070411 ">DirXML</product>
     <contact>Novell, Inc.</contact>
   </source>
   <input>
     <query class-name="User" 
dest-dn="\EDIR_001\novell\IDM\ROCE\PS100011" scope="user">
       <search-class class-name="User"/>
       <read-attr attr-name="ROCEcrebo"/>
     </query>
   </input>
</nds>
[01/22/08 20:21:58.199]:HR_CSV PT:            Pumping XDS to eDirectory.
[01/22/08 20:21:58.199]:HR_CSV PT:            Performing operation query 
for \EDIR_001\novell\IDM\ROCE\PS100011.
[01/22/08 20:21:58.204]:HR_CSV PT:            Query from policy result
[01/22/08 20:21:58.206]:HR_CSV PT:
<nds dtdversion="3.5" ndsversion="8.x">
   <source>
     <product version="3.5.1.20070411 ">DirXML</product>
     <contact>Novell, Inc.</contact>
   </source>
   <output>
     <instance class-name="User" event-id="0" 
qualified-src-dn="O=novell\OU=IDM\OU=ROCE\CN=PS100011" 
src-dn="\EDIR_001\novell\IDM\ROCE\PS100011" src-entry-id="33472">
       <association state="associated"></association>
       <attr attr-name="ROCEcrebo">
         <value timestamp="1201028721#15" type="string">001-I</value>
         <value timestamp="1201029408#6" type="string">003-M</value>
         <value timestamp="1201029408#7" type="string">002-D</value>
       </attr>
     </instance>
     <status event-id="0" level="success"></status>
   </output>
</nds>
[01/22/08 20:21:58.214]:HR_CSV PT:          Token Value: {<instance> 
@class-name = "User" @event-id = "0" @qualified-src-dn = 
"O=novell\OU=IDM\OU=ROCE\CN=PS100011" @src-dn = 
"\EDIR_001\novell\IDM\ROCE\PS100011" @src-entry-id = "33472"}.
[01/22/08 20:21:58.216]:HR_CSV PT:          Arg Value: {<instance> 
@class-name = "User" @event-id = "0" @qualified-src-dn = 
"O=novell\OU=IDM\OU=ROCE\CN=PS100011" @src-dn = 
"\EDIR_001\novell\IDM\ROCE\PS100011" @src-entry-id = "33472"}.
[01/22/08 20:21:58.219]:HR_CSV PT:      Action: 
do-for-each(arg-node-set(token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value"))).
[01/22/08 20:21:58.219]:HR_CSV PT: 
arg-node-set(token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value"))
[01/22/08 20:21:58.220]:HR_CSV PT: 
token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value")
[01/22/08 20:21:58.222]:HR_CSV PT:          Token Value: {}.
[01/22/08 20:21:58.222]:HR_CSV PT:          Arg Value: {}.
[01/22/08 20:21:58.223]:HR_CSV PT:      Action: do-veto().
[01/22/08 20:21:58.224]:HR_CSV PT:Policy returned:
[01/22/08 20:21:58.224]:HR_CSV PT:


TIps and hints are highly appreciated!

Cheers,
Londo
0
Dennis
1/22/2008 7:44:52 PM
novell.id-manager.drivers 10360 articles. 2 followers. Follow

10 Replies
995 Views

Similar Articles

[PageSpeed] 59

Attribute A is coming from where? Attribute B is going to where? Is the 
intent to synchronize attribute A in one datastore to attribute B in 
another datastore or are they both from the same datastore?
--

Father Ramon


Dennis the Manace wrote:
> Hello hello again,
> 
> so I am trying to cook something again and obviously I am failing.
> 
> I have a mutlivalued attribute in eDirectory and I need to store a part 
> from each value into a single valued attribute.
> 
> Example:
> Attribute A
> - value1: 001-I
> - value2: 002-D
> - value3: 003-M
> 
> I need the I and the D and the M and store in a single valued attribute
> Attribute B
> -value: IDM
> 
> I managed to query the destination user to get the attribute I want from 
> the user ... WOHOO :-)
> Yet everythin after fails
> 
> Here is what I cooked up:
> 
>         <actions>
>             <do-set-local-variable name="VAR_DN" scope="policy">
>                 <arg-string>
>                     <token-dest-dn/>
>                 </arg-string>
>             </do-set-local-variable>
>             <do-set-local-variable name="VAR_RESULT" scope="policy">
>                 <arg-node-set>
>                     <token-xpath 
> expression="query:search($destQueryProcessor, 'user','',$VAR_DN, 'User', 
> '','', 'ROCEcrebo')"/>
>                 </arg-node-set>
>             </do-set-local-variable>
>             <do-for-each>
>                 <arg-node-set>
>                     <token-xpath 
> expression='$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value'/>
>                 </arg-node-set>
>                 <arg-actions>
>                     <do-set-local-variable name="VAR_STATUS_TEMP" 
> scope="policy">
>                         <arg-string>
>                             <token-xpath 
> expression="substring-after($VAR_RESULT/attr[@attr-name=&quot;ROCECrebo&quot;]/value,&apos;-&apos;)"/> 
> 
>                         </arg-string>
>                     </do-set-local-variable>
>                     <do-set-local-variable name="VAR_STATUS_TEMP2" 
> scope="policy">
>                         <arg-string>
>                             <token-xpath 
> expression="concat($VAR_STATUS_TEMP2,$VAR_STATUS_TEMP)"/>
>                         </arg-string>
>                     </do-set-local-variable>
>                     <do-trace-message level="0">
>                         <arg-string>
>                             <token-text xml:space="preserve">BLA BLA 
> BLA  </token-text>
>                             <token-local-variable name="VAR_STATUS_TEMP2"/>
>                         </arg-string>
>                     </do-trace-message>
>                 </arg-actions>
>             </do-for-each>
>             <do-veto/>
>         </actions>
> 
> 
> This is the trace result:
> 01/22/08 20:21:58.178]:HR_CSV PT:Applying command transformation policies.
> [01/22/08 20:21:58.179]:HR_CSV PT:Applying policy: %+C%14CTEST%-C.
> [01/22/08 20:21:58.180]:HR_CSV PT:  Applying to modify #1.
> [01/22/08 20:21:58.180]:HR_CSV PT:    Evaluating selection criteria for 
> rule 'TEST'.
> [01/22/08 20:21:58.183]:HR_CSV PT:      (if-op-attr 'ROCEcrebo' 
> available) = TRUE.
> [01/22/08 20:21:58.183]:HR_CSV PT:    Rule selected.
> [01/22/08 20:21:58.184]:HR_CSV PT:    Applying rule 'TEST'.
> [01/22/08 20:21:58.184]:HR_CSV PT:      Action: 
> do-set-local-variable("VAR_DN",scope="policy",token-dest-dn()).
> [01/22/08 20:21:58.184]:HR_CSV PT:        arg-string(token-dest-dn())
> [01/22/08 20:21:58.186]:HR_CSV PT:          token-dest-dn()
> [01/22/08 20:21:58.187]:HR_CSV PT:            Token Value: 
> "\EDIR_001\novell\IDM\ROCE\PS100011".
> [01/22/08 20:21:58.188]:HR_CSV PT:          Arg Value: 
> "\EDIR_001\novell\IDM\ROCE\PS100011".
> [01/22/08 20:21:58.188]:HR_CSV PT:      Action: 
> do-set-local-variable("VAR_RESULT",scope="policy",arg-node-set(token-xpath("query:search($destQueryProcessor, 
> 'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')"))).
> [01/22/08 20:21:58.191]:HR_CSV PT: 
> arg-node-set(token-xpath("query:search($destQueryProcessor, 
> 'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')"))
> [01/22/08 20:21:58.192]:HR_CSV PT: 
> token-xpath("query:search($destQueryProcessor, 'user','',$VAR_DN, 
> 'User', '','', 'ROCEcrebo')")
> [01/22/08 20:21:58.194]:HR_CSV PT:            Query from policy
> [01/22/08 20:21:58.194]:HR_CSV PT:
> <nds dtdversion="3.5" ndsversion="8.x">
>   <source>
>     <product version="3.5.1.20070411 ">DirXML</product>
>     <contact>Novell, Inc.</contact>
>   </source>
>   <input>
>     <query class-name="User" 
> dest-dn="\EDIR_001\novell\IDM\ROCE\PS100011" scope="user">
>       <search-class class-name="User"/>
>       <read-attr attr-name="ROCEcrebo"/>
>     </query>
>   </input>
> </nds>
> [01/22/08 20:21:58.199]:HR_CSV PT:            Pumping XDS to eDirectory.
> [01/22/08 20:21:58.199]:HR_CSV PT:            Performing operation query 
> for \EDIR_001\novell\IDM\ROCE\PS100011.
> [01/22/08 20:21:58.204]:HR_CSV PT:            Query from policy result
> [01/22/08 20:21:58.206]:HR_CSV PT:
> <nds dtdversion="3.5" ndsversion="8.x">
>   <source>
>     <product version="3.5.1.20070411 ">DirXML</product>
>     <contact>Novell, Inc.</contact>
>   </source>
>   <output>
>     <instance class-name="User" event-id="0" 
> qualified-src-dn="O=novell\OU=IDM\OU=ROCE\CN=PS100011" 
> src-dn="\EDIR_001\novell\IDM\ROCE\PS100011" src-entry-id="33472">
>       <association state="associated"></association>
>       <attr attr-name="ROCEcrebo">
>         <value timestamp="1201028721#15" type="string">001-I</value>
>         <value timestamp="1201029408#6" type="string">003-M</value>
>         <value timestamp="1201029408#7" type="string">002-D</value>
>       </attr>
>     </instance>
>     <status event-id="0" level="success"></status>
>   </output>
> </nds>
> [01/22/08 20:21:58.214]:HR_CSV PT:          Token Value: {<instance> 
> @class-name = "User" @event-id = "0" @qualified-src-dn = 
> "O=novell\OU=IDM\OU=ROCE\CN=PS100011" @src-dn = 
> "\EDIR_001\novell\IDM\ROCE\PS100011" @src-entry-id = "33472"}.
> [01/22/08 20:21:58.216]:HR_CSV PT:          Arg Value: {<instance> 
> @class-name = "User" @event-id = "0" @qualified-src-dn = 
> "O=novell\OU=IDM\OU=ROCE\CN=PS100011" @src-dn = 
> "\EDIR_001\novell\IDM\ROCE\PS100011" @src-entry-id = "33472"}.
> [01/22/08 20:21:58.219]:HR_CSV PT:      Action: 
> do-for-each(arg-node-set(token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value"))). 
> 
> [01/22/08 20:21:58.219]:HR_CSV PT: 
> arg-node-set(token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value"))
> [01/22/08 20:21:58.220]:HR_CSV PT: 
> token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value")
> [01/22/08 20:21:58.222]:HR_CSV PT:          Token Value: {}.
> [01/22/08 20:21:58.222]:HR_CSV PT:          Arg Value: {}.
> [01/22/08 20:21:58.223]:HR_CSV PT:      Action: do-veto().
> [01/22/08 20:21:58.224]:HR_CSV PT:Policy returned:
> [01/22/08 20:21:58.224]:HR_CSV PT:
> 
> 
> TIps and hints are highly appreciated!
> 
> Cheers,
> Londo
0
Father
1/22/2008 8:20:52 PM
Hi,

both attributes come from the same datastore.

Cheers,
Londo

Father Ramon wrote:
> Attribute A is coming from where? Attribute B is going to where? Is the 
> intent to synchronize attribute A in one datastore to attribute B in 
> another datastore or are they both from the same datastore?
> -- 
> 
> Father Ramon
> 
> 
> Dennis the Manace wrote:
>> Hello hello again,
>>
>> so I am trying to cook something again and obviously I am failing.
>>
>> I have a mutlivalued attribute in eDirectory and I need to store a 
>> part from each value into a single valued attribute.
>>
>> Example:
>> Attribute A
>> - value1: 001-I
>> - value2: 002-D
>> - value3: 003-M
>>
>> I need the I and the D and the M and store in a single valued attribute
>> Attribute B
>> -value: IDM
>>
>> I managed to query the destination user to get the attribute I want 
>> from the user ... WOHOO :-)
>> Yet everythin after fails
>>
>> Here is what I cooked up:
>>
>>         <actions>
>>             <do-set-local-variable name="VAR_DN" scope="policy">
>>                 <arg-string>
>>                     <token-dest-dn/>
>>                 </arg-string>
>>             </do-set-local-variable>
>>             <do-set-local-variable name="VAR_RESULT" scope="policy">
>>                 <arg-node-set>
>>                     <token-xpath 
>> expression="query:search($destQueryProcessor, 'user','',$VAR_DN, 
>> 'User', '','', 'ROCEcrebo')"/>
>>                 </arg-node-set>
>>             </do-set-local-variable>
>>             <do-for-each>
>>                 <arg-node-set>
>>                     <token-xpath 
>> expression='$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value'/>
>>                 </arg-node-set>
>>                 <arg-actions>
>>                     <do-set-local-variable name="VAR_STATUS_TEMP" 
>> scope="policy">
>>                         <arg-string>
>>                             <token-xpath 
>> expression="substring-after($VAR_RESULT/attr[@attr-name=&quot;ROCECrebo&quot;]/value,&apos;-&apos;)"/> 
>>
>>                         </arg-string>
>>                     </do-set-local-variable>
>>                     <do-set-local-variable name="VAR_STATUS_TEMP2" 
>> scope="policy">
>>                         <arg-string>
>>                             <token-xpath 
>> expression="concat($VAR_STATUS_TEMP2,$VAR_STATUS_TEMP)"/>
>>                         </arg-string>
>>                     </do-set-local-variable>
>>                     <do-trace-message level="0">
>>                         <arg-string>
>>                             <token-text xml:space="preserve">BLA BLA 
>> BLA  </token-text>
>>                             <token-local-variable 
>> name="VAR_STATUS_TEMP2"/>
>>                         </arg-string>
>>                     </do-trace-message>
>>                 </arg-actions>
>>             </do-for-each>
>>             <do-veto/>
>>         </actions>
>>
>>
>> This is the trace result:
>> 01/22/08 20:21:58.178]:HR_CSV PT:Applying command transformation 
>> policies.
>> [01/22/08 20:21:58.179]:HR_CSV PT:Applying policy: %+C%14CTEST%-C.
>> [01/22/08 20:21:58.180]:HR_CSV PT:  Applying to modify #1.
>> [01/22/08 20:21:58.180]:HR_CSV PT:    Evaluating selection criteria 
>> for rule 'TEST'.
>> [01/22/08 20:21:58.183]:HR_CSV PT:      (if-op-attr 'ROCEcrebo' 
>> available) = TRUE.
>> [01/22/08 20:21:58.183]:HR_CSV PT:    Rule selected.
>> [01/22/08 20:21:58.184]:HR_CSV PT:    Applying rule 'TEST'.
>> [01/22/08 20:21:58.184]:HR_CSV PT:      Action: 
>> do-set-local-variable("VAR_DN",scope="policy",token-dest-dn()).
>> [01/22/08 20:21:58.184]:HR_CSV PT:        arg-string(token-dest-dn())
>> [01/22/08 20:21:58.186]:HR_CSV PT:          token-dest-dn()
>> [01/22/08 20:21:58.187]:HR_CSV PT:            Token Value: 
>> "\EDIR_001\novell\IDM\ROCE\PS100011".
>> [01/22/08 20:21:58.188]:HR_CSV PT:          Arg Value: 
>> "\EDIR_001\novell\IDM\ROCE\PS100011".
>> [01/22/08 20:21:58.188]:HR_CSV PT:      Action: 
>> do-set-local-variable("VAR_RESULT",scope="policy",arg-node-set(token-xpath("query:search($destQueryProcessor, 
>> 'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')"))).
>> [01/22/08 20:21:58.191]:HR_CSV PT: 
>> arg-node-set(token-xpath("query:search($destQueryProcessor, 
>> 'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')"))
>> [01/22/08 20:21:58.192]:HR_CSV PT: 
>> token-xpath("query:search($destQueryProcessor, 'user','',$VAR_DN, 
>> 'User', '','', 'ROCEcrebo')")
>> [01/22/08 20:21:58.194]:HR_CSV PT:            Query from policy
>> [01/22/08 20:21:58.194]:HR_CSV PT:
>> <nds dtdversion="3.5" ndsversion="8.x">
>>   <source>
>>     <product version="3.5.1.20070411 ">DirXML</product>
>>     <contact>Novell, Inc.</contact>
>>   </source>
>>   <input>
>>     <query class-name="User" 
>> dest-dn="\EDIR_001\novell\IDM\ROCE\PS100011" scope="user">
>>       <search-class class-name="User"/>
>>       <read-attr attr-name="ROCEcrebo"/>
>>     </query>
>>   </input>
>> </nds>
>> [01/22/08 20:21:58.199]:HR_CSV PT:            Pumping XDS to eDirectory.
>> [01/22/08 20:21:58.199]:HR_CSV PT:            Performing operation 
>> query for \EDIR_001\novell\IDM\ROCE\PS100011.
>> [01/22/08 20:21:58.204]:HR_CSV PT:            Query from policy result
>> [01/22/08 20:21:58.206]:HR_CSV PT:
>> <nds dtdversion="3.5" ndsversion="8.x">
>>   <source>
>>     <product version="3.5.1.20070411 ">DirXML</product>
>>     <contact>Novell, Inc.</contact>
>>   </source>
>>   <output>
>>     <instance class-name="User" event-id="0" 
>> qualified-src-dn="O=novell\OU=IDM\OU=ROCE\CN=PS100011" 
>> src-dn="\EDIR_001\novell\IDM\ROCE\PS100011" src-entry-id="33472">
>>       <association state="associated"></association>
>>       <attr attr-name="ROCEcrebo">
>>         <value timestamp="1201028721#15" type="string">001-I</value>
>>         <value timestamp="1201029408#6" type="string">003-M</value>
>>         <value timestamp="1201029408#7" type="string">002-D</value>
>>       </attr>
>>     </instance>
>>     <status event-id="0" level="success"></status>
>>   </output>
>> </nds>
>> [01/22/08 20:21:58.214]:HR_CSV PT:          Token Value: {<instance> 
>> @class-name = "User" @event-id = "0" @qualified-src-dn = 
>> "O=novell\OU=IDM\OU=ROCE\CN=PS100011" @src-dn = 
>> "\EDIR_001\novell\IDM\ROCE\PS100011" @src-entry-id = "33472"}.
>> [01/22/08 20:21:58.216]:HR_CSV PT:          Arg Value: {<instance> 
>> @class-name = "User" @event-id = "0" @qualified-src-dn = 
>> "O=novell\OU=IDM\OU=ROCE\CN=PS100011" @src-dn = 
>> "\EDIR_001\novell\IDM\ROCE\PS100011" @src-entry-id = "33472"}.
>> [01/22/08 20:21:58.219]:HR_CSV PT:      Action: 
>> do-for-each(arg-node-set(token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value"))). 
>>
>> [01/22/08 20:21:58.219]:HR_CSV PT: 
>> arg-node-set(token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value")) 
>>
>> [01/22/08 20:21:58.220]:HR_CSV PT: 
>> token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value")
>> [01/22/08 20:21:58.222]:HR_CSV PT:          Token Value: {}.
>> [01/22/08 20:21:58.222]:HR_CSV PT:          Arg Value: {}.
>> [01/22/08 20:21:58.223]:HR_CSV PT:      Action: do-veto().
>> [01/22/08 20:21:58.224]:HR_CSV PT:Policy returned:
>> [01/22/08 20:21:58.224]:HR_CSV PT:
>>
>>
>> TIps and hints are highly appreciated!
>>
>> Cheers,
>> Londo
0
Dennis
1/22/2008 8:41:23 PM
The ID Vault or the connected application? What event should trigger this?

--

Father Ramon


Dennis the Manace wrote:
> Hi,
> 
> both attributes come from the same datastore.
> 
> Cheers,
> Londo
> 
> Father Ramon wrote:
>> Attribute A is coming from where? Attribute B is going to where? Is 
>> the intent to synchronize attribute A in one datastore to attribute B 
>> in another datastore or are they both from the same datastore?
>> -- 
>>
>> Father Ramon
>>
>>
>> Dennis the Manace wrote:
>>> Hello hello again,
>>>
>>> so I am trying to cook something again and obviously I am failing.
>>>
>>> I have a mutlivalued attribute in eDirectory and I need to store a 
>>> part from each value into a single valued attribute.
>>>
>>> Example:
>>> Attribute A
>>> - value1: 001-I
>>> - value2: 002-D
>>> - value3: 003-M
>>>
>>> I need the I and the D and the M and store in a single valued attribute
>>> Attribute B
>>> -value: IDM
>>>
>>> I managed to query the destination user to get the attribute I want 
>>> from the user ... WOHOO :-)
>>> Yet everythin after fails
>>>
>>> Here is what I cooked up:
>>>
>>>         <actions>
>>>             <do-set-local-variable name="VAR_DN" scope="policy">
>>>                 <arg-string>
>>>                     <token-dest-dn/>
>>>                 </arg-string>
>>>             </do-set-local-variable>
>>>             <do-set-local-variable name="VAR_RESULT" scope="policy">
>>>                 <arg-node-set>
>>>                     <token-xpath 
>>> expression="query:search($destQueryProcessor, 'user','',$VAR_DN, 
>>> 'User', '','', 'ROCEcrebo')"/>
>>>                 </arg-node-set>
>>>             </do-set-local-variable>
>>>             <do-for-each>
>>>                 <arg-node-set>
>>>                     <token-xpath 
>>> expression='$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value'/>
>>>                 </arg-node-set>
>>>                 <arg-actions>
>>>                     <do-set-local-variable name="VAR_STATUS_TEMP" 
>>> scope="policy">
>>>                         <arg-string>
>>>                             <token-xpath 
>>> expression="substring-after($VAR_RESULT/attr[@attr-name=&quot;ROCECrebo&quot;]/value,&apos;-&apos;)"/> 
>>>
>>>                         </arg-string>
>>>                     </do-set-local-variable>
>>>                     <do-set-local-variable name="VAR_STATUS_TEMP2" 
>>> scope="policy">
>>>                         <arg-string>
>>>                             <token-xpath 
>>> expression="concat($VAR_STATUS_TEMP2,$VAR_STATUS_TEMP)"/>
>>>                         </arg-string>
>>>                     </do-set-local-variable>
>>>                     <do-trace-message level="0">
>>>                         <arg-string>
>>>                             <token-text xml:space="preserve">BLA BLA 
>>> BLA  </token-text>
>>>                             <token-local-variable 
>>> name="VAR_STATUS_TEMP2"/>
>>>                         </arg-string>
>>>                     </do-trace-message>
>>>                 </arg-actions>
>>>             </do-for-each>
>>>             <do-veto/>
>>>         </actions>
>>>
>>>
>>> This is the trace result:
>>> 01/22/08 20:21:58.178]:HR_CSV PT:Applying command transformation 
>>> policies.
>>> [01/22/08 20:21:58.179]:HR_CSV PT:Applying policy: %+C%14CTEST%-C.
>>> [01/22/08 20:21:58.180]:HR_CSV PT:  Applying to modify #1.
>>> [01/22/08 20:21:58.180]:HR_CSV PT:    Evaluating selection criteria 
>>> for rule 'TEST'.
>>> [01/22/08 20:21:58.183]:HR_CSV PT:      (if-op-attr 'ROCEcrebo' 
>>> available) = TRUE.
>>> [01/22/08 20:21:58.183]:HR_CSV PT:    Rule selected.
>>> [01/22/08 20:21:58.184]:HR_CSV PT:    Applying rule 'TEST'.
>>> [01/22/08 20:21:58.184]:HR_CSV PT:      Action: 
>>> do-set-local-variable("VAR_DN",scope="policy",token-dest-dn()).
>>> [01/22/08 20:21:58.184]:HR_CSV PT:        arg-string(token-dest-dn())
>>> [01/22/08 20:21:58.186]:HR_CSV PT:          token-dest-dn()
>>> [01/22/08 20:21:58.187]:HR_CSV PT:            Token Value: 
>>> "\EDIR_001\novell\IDM\ROCE\PS100011".
>>> [01/22/08 20:21:58.188]:HR_CSV PT:          Arg Value: 
>>> "\EDIR_001\novell\IDM\ROCE\PS100011".
>>> [01/22/08 20:21:58.188]:HR_CSV PT:      Action: 
>>> do-set-local-variable("VAR_RESULT",scope="policy",arg-node-set(token-xpath("query:search($destQueryProcessor, 
>>> 'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')"))).
>>> [01/22/08 20:21:58.191]:HR_CSV PT: 
>>> arg-node-set(token-xpath("query:search($destQueryProcessor, 
>>> 'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')"))
>>> [01/22/08 20:21:58.192]:HR_CSV PT: 
>>> token-xpath("query:search($destQueryProcessor, 'user','',$VAR_DN, 
>>> 'User', '','', 'ROCEcrebo')")
>>> [01/22/08 20:21:58.194]:HR_CSV PT:            Query from policy
>>> [01/22/08 20:21:58.194]:HR_CSV PT:
>>> <nds dtdversion="3.5" ndsversion="8.x">
>>>   <source>
>>>     <product version="3.5.1.20070411 ">DirXML</product>
>>>     <contact>Novell, Inc.</contact>
>>>   </source>
>>>   <input>
>>>     <query class-name="User" 
>>> dest-dn="\EDIR_001\novell\IDM\ROCE\PS100011" scope="user">
>>>       <search-class class-name="User"/>
>>>       <read-attr attr-name="ROCEcrebo"/>
>>>     </query>
>>>   </input>
>>> </nds>
>>> [01/22/08 20:21:58.199]:HR_CSV PT:            Pumping XDS to eDirectory.
>>> [01/22/08 20:21:58.199]:HR_CSV PT:            Performing operation 
>>> query for \EDIR_001\novell\IDM\ROCE\PS100011.
>>> [01/22/08 20:21:58.204]:HR_CSV PT:            Query from policy result
>>> [01/22/08 20:21:58.206]:HR_CSV PT:
>>> <nds dtdversion="3.5" ndsversion="8.x">
>>>   <source>
>>>     <product version="3.5.1.20070411 ">DirXML</product>
>>>     <contact>Novell, Inc.</contact>
>>>   </source>
>>>   <output>
>>>     <instance class-name="User" event-id="0" 
>>> qualified-src-dn="O=novell\OU=IDM\OU=ROCE\CN=PS100011" 
>>> src-dn="\EDIR_001\novell\IDM\ROCE\PS100011" src-entry-id="33472">
>>>       <association state="associated"></association>
>>>       <attr attr-name="ROCEcrebo">
>>>         <value timestamp="1201028721#15" type="string">001-I</value>
>>>         <value timestamp="1201029408#6" type="string">003-M</value>
>>>         <value timestamp="1201029408#7" type="string">002-D</value>
>>>       </attr>
>>>     </instance>
>>>     <status event-id="0" level="success"></status>
>>>   </output>
>>> </nds>
>>> [01/22/08 20:21:58.214]:HR_CSV PT:          Token Value: {<instance> 
>>> @class-name = "User" @event-id = "0" @qualified-src-dn = 
>>> "O=novell\OU=IDM\OU=ROCE\CN=PS100011" @src-dn = 
>>> "\EDIR_001\novell\IDM\ROCE\PS100011" @src-entry-id = "33472"}.
>>> [01/22/08 20:21:58.216]:HR_CSV PT:          Arg Value: {<instance> 
>>> @class-name = "User" @event-id = "0" @qualified-src-dn = 
>>> "O=novell\OU=IDM\OU=ROCE\CN=PS100011" @src-dn = 
>>> "\EDIR_001\novell\IDM\ROCE\PS100011" @src-entry-id = "33472"}.
>>> [01/22/08 20:21:58.219]:HR_CSV PT:      Action: 
>>> do-for-each(arg-node-set(token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value"))). 
>>>
>>> [01/22/08 20:21:58.219]:HR_CSV PT: 
>>> arg-node-set(token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value")) 
>>>
>>> [01/22/08 20:21:58.220]:HR_CSV PT: 
>>> token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value")
>>> [01/22/08 20:21:58.222]:HR_CSV PT:          Token Value: {}.
>>> [01/22/08 20:21:58.222]:HR_CSV PT:          Arg Value: {}.
>>> [01/22/08 20:21:58.223]:HR_CSV PT:      Action: do-veto().
>>> [01/22/08 20:21:58.224]:HR_CSV PT:Policy returned:
>>> [01/22/08 20:21:58.224]:HR_CSV PT:
>>>
>>>
>>> TIps and hints are highly appreciated!
>>>
>>> Cheers,
>>> Londo
0
Father
1/22/2008 8:43:01 PM
And if the connected application, what application?
--

Father Ramon


Father Ramon wrote:
> The ID Vault or the connected application? What event should trigger this?
> 
> -- 
> 
> Father Ramon
> 
> 
> Dennis the Manace wrote:
>> Hi,
>>
>> both attributes come from the same datastore.
>>
>> Cheers,
>> Londo
>>
>> Father Ramon wrote:
>>> Attribute A is coming from where? Attribute B is going to where? Is 
>>> the intent to synchronize attribute A in one datastore to attribute B 
>>> in another datastore or are they both from the same datastore?
>>> -- 
>>>
>>> Father Ramon
>>>
>>>
>>> Dennis the Manace wrote:
>>>> Hello hello again,
>>>>
>>>> so I am trying to cook something again and obviously I am failing.
>>>>
>>>> I have a mutlivalued attribute in eDirectory and I need to store a 
>>>> part from each value into a single valued attribute.
>>>>
>>>> Example:
>>>> Attribute A
>>>> - value1: 001-I
>>>> - value2: 002-D
>>>> - value3: 003-M
>>>>
>>>> I need the I and the D and the M and store in a single valued attribute
>>>> Attribute B
>>>> -value: IDM
>>>>
>>>> I managed to query the destination user to get the attribute I want 
>>>> from the user ... WOHOO :-)
>>>> Yet everythin after fails
>>>>
>>>> Here is what I cooked up:
>>>>
>>>>         <actions>
>>>>             <do-set-local-variable name="VAR_DN" scope="policy">
>>>>                 <arg-string>
>>>>                     <token-dest-dn/>
>>>>                 </arg-string>
>>>>             </do-set-local-variable>
>>>>             <do-set-local-variable name="VAR_RESULT" scope="policy">
>>>>                 <arg-node-set>
>>>>                     <token-xpath 
>>>> expression="query:search($destQueryProcessor, 'user','',$VAR_DN, 
>>>> 'User', '','', 'ROCEcrebo')"/>
>>>>                 </arg-node-set>
>>>>             </do-set-local-variable>
>>>>             <do-for-each>
>>>>                 <arg-node-set>
>>>>                     <token-xpath 
>>>> expression='$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value'/>
>>>>                 </arg-node-set>
>>>>                 <arg-actions>
>>>>                     <do-set-local-variable name="VAR_STATUS_TEMP" 
>>>> scope="policy">
>>>>                         <arg-string>
>>>>                             <token-xpath 
>>>> expression="substring-after($VAR_RESULT/attr[@attr-name=&quot;ROCECrebo&quot;]/value,&apos;-&apos;)"/> 
>>>>
>>>>                         </arg-string>
>>>>                     </do-set-local-variable>
>>>>                     <do-set-local-variable name="VAR_STATUS_TEMP2" 
>>>> scope="policy">
>>>>                         <arg-string>
>>>>                             <token-xpath 
>>>> expression="concat($VAR_STATUS_TEMP2,$VAR_STATUS_TEMP)"/>
>>>>                         </arg-string>
>>>>                     </do-set-local-variable>
>>>>                     <do-trace-message level="0">
>>>>                         <arg-string>
>>>>                             <token-text xml:space="preserve">BLA BLA 
>>>> BLA  </token-text>
>>>>                             <token-local-variable 
>>>> name="VAR_STATUS_TEMP2"/>
>>>>                         </arg-string>
>>>>                     </do-trace-message>
>>>>                 </arg-actions>
>>>>             </do-for-each>
>>>>             <do-veto/>
>>>>         </actions>
>>>>
>>>>
>>>> This is the trace result:
>>>> 01/22/08 20:21:58.178]:HR_CSV PT:Applying command transformation 
>>>> policies.
>>>> [01/22/08 20:21:58.179]:HR_CSV PT:Applying policy: %+C%14CTEST%-C.
>>>> [01/22/08 20:21:58.180]:HR_CSV PT:  Applying to modify #1.
>>>> [01/22/08 20:21:58.180]:HR_CSV PT:    Evaluating selection criteria 
>>>> for rule 'TEST'.
>>>> [01/22/08 20:21:58.183]:HR_CSV PT:      (if-op-attr 'ROCEcrebo' 
>>>> available) = TRUE.
>>>> [01/22/08 20:21:58.183]:HR_CSV PT:    Rule selected.
>>>> [01/22/08 20:21:58.184]:HR_CSV PT:    Applying rule 'TEST'.
>>>> [01/22/08 20:21:58.184]:HR_CSV PT:      Action: 
>>>> do-set-local-variable("VAR_DN",scope="policy",token-dest-dn()).
>>>> [01/22/08 20:21:58.184]:HR_CSV PT:        arg-string(token-dest-dn())
>>>> [01/22/08 20:21:58.186]:HR_CSV PT:          token-dest-dn()
>>>> [01/22/08 20:21:58.187]:HR_CSV PT:            Token Value: 
>>>> "\EDIR_001\novell\IDM\ROCE\PS100011".
>>>> [01/22/08 20:21:58.188]:HR_CSV PT:          Arg Value: 
>>>> "\EDIR_001\novell\IDM\ROCE\PS100011".
>>>> [01/22/08 20:21:58.188]:HR_CSV PT:      Action: 
>>>> do-set-local-variable("VAR_RESULT",scope="policy",arg-node-set(token-xpath("query:search($destQueryProcessor, 
>>>> 'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')"))).
>>>> [01/22/08 20:21:58.191]:HR_CSV PT: 
>>>> arg-node-set(token-xpath("query:search($destQueryProcessor, 
>>>> 'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')"))
>>>> [01/22/08 20:21:58.192]:HR_CSV PT: 
>>>> token-xpath("query:search($destQueryProcessor, 'user','',$VAR_DN, 
>>>> 'User', '','', 'ROCEcrebo')")
>>>> [01/22/08 20:21:58.194]:HR_CSV PT:            Query from policy
>>>> [01/22/08 20:21:58.194]:HR_CSV PT:
>>>> <nds dtdversion="3.5" ndsversion="8.x">
>>>>   <source>
>>>>     <product version="3.5.1.20070411 ">DirXML</product>
>>>>     <contact>Novell, Inc.</contact>
>>>>   </source>
>>>>   <input>
>>>>     <query class-name="User" 
>>>> dest-dn="\EDIR_001\novell\IDM\ROCE\PS100011" scope="user">
>>>>       <search-class class-name="User"/>
>>>>       <read-attr attr-name="ROCEcrebo"/>
>>>>     </query>
>>>>   </input>
>>>> </nds>
>>>> [01/22/08 20:21:58.199]:HR_CSV PT:            Pumping XDS to 
>>>> eDirectory.
>>>> [01/22/08 20:21:58.199]:HR_CSV PT:            Performing operation 
>>>> query for \EDIR_001\novell\IDM\ROCE\PS100011.
>>>> [01/22/08 20:21:58.204]:HR_CSV PT:            Query from policy result
>>>> [01/22/08 20:21:58.206]:HR_CSV PT:
>>>> <nds dtdversion="3.5" ndsversion="8.x">
>>>>   <source>
>>>>     <product version="3.5.1.20070411 ">DirXML</product>
>>>>     <contact>Novell, Inc.</contact>
>>>>   </source>
>>>>   <output>
>>>>     <instance class-name="User" event-id="0" 
>>>> qualified-src-dn="O=novell\OU=IDM\OU=ROCE\CN=PS100011" 
>>>> src-dn="\EDIR_001\novell\IDM\ROCE\PS100011" src-entry-id="33472">
>>>>       <association state="associated"></association>
>>>>       <attr attr-name="ROCEcrebo">
>>>>         <value timestamp="1201028721#15" type="string">001-I</value>
>>>>         <value timestamp="1201029408#6" type="string">003-M</value>
>>>>         <value timestamp="1201029408#7" type="string">002-D</value>
>>>>       </attr>
>>>>     </instance>
>>>>     <status event-id="0" level="success"></status>
>>>>   </output>
>>>> </nds>
>>>> [01/22/08 20:21:58.214]:HR_CSV PT:          Token Value: {<instance> 
>>>> @class-name = "User" @event-id = "0" @qualified-src-dn = 
>>>> "O=novell\OU=IDM\OU=ROCE\CN=PS100011" @src-dn = 
>>>> "\EDIR_001\novell\IDM\ROCE\PS100011" @src-entry-id = "33472"}.
>>>> [01/22/08 20:21:58.216]:HR_CSV PT:          Arg Value: {<instance> 
>>>> @class-name = "User" @event-id = "0" @qualified-src-dn = 
>>>> "O=novell\OU=IDM\OU=ROCE\CN=PS100011" @src-dn = 
>>>> "\EDIR_001\novell\IDM\ROCE\PS100011" @src-entry-id = "33472"}.
>>>> [01/22/08 20:21:58.219]:HR_CSV PT:      Action: 
>>>> do-for-each(arg-node-set(token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value"))). 
>>>>
>>>> [01/22/08 20:21:58.219]:HR_CSV PT: 
>>>> arg-node-set(token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value")) 
>>>>
>>>> [01/22/08 20:21:58.220]:HR_CSV PT: 
>>>> token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value")
>>>> [01/22/08 20:21:58.222]:HR_CSV PT:          Token Value: {}.
>>>> [01/22/08 20:21:58.222]:HR_CSV PT:          Arg Value: {}.
>>>> [01/22/08 20:21:58.223]:HR_CSV PT:      Action: do-veto().
>>>> [01/22/08 20:21:58.224]:HR_CSV PT:Policy returned:
>>>> [01/22/08 20:21:58.224]:HR_CSV PT:
>>>>
>>>>
>>>> TIps and hints are highly appreciated!
>>>>
>>>> Cheers,
>>>> Londo
0
Father
1/22/2008 8:43:59 PM
The IDVault.


When an attribute A is modified, I want to get the current values of the 
attribute in eDir and construct the single valued attribute B.

Cheers,
Londo

Father Ramon wrote:
> And if the connected application, what application?
> -- 
> 
> Father Ramon
> 
> 
> Father Ramon wrote:
>> The ID Vault or the connected application? What event should trigger 
>> this?
>>
>> -- 
>>
>> Father Ramon
>>
>>
>> Dennis the Manace wrote:
>>> Hi,
>>>
>>> both attributes come from the same datastore.
>>>
>>> Cheers,
>>> Londo
>>>
>>> Father Ramon wrote:
>>>> Attribute A is coming from where? Attribute B is going to where? Is 
>>>> the intent to synchronize attribute A in one datastore to attribute 
>>>> B in another datastore or are they both from the same datastore?
>>>> -- 
>>>>
>>>> Father Ramon
>>>>
>>>>
>>>> Dennis the Manace wrote:
>>>>> Hello hello again,
>>>>>
>>>>> so I am trying to cook something again and obviously I am failing.
>>>>>
>>>>> I have a mutlivalued attribute in eDirectory and I need to store a 
>>>>> part from each value into a single valued attribute.
>>>>>
>>>>> Example:
>>>>> Attribute A
>>>>> - value1: 001-I
>>>>> - value2: 002-D
>>>>> - value3: 003-M
>>>>>
>>>>> I need the I and the D and the M and store in a single valued 
>>>>> attribute
>>>>> Attribute B
>>>>> -value: IDM
>>>>>
>>>>> I managed to query the destination user to get the attribute I want 
>>>>> from the user ... WOHOO :-)
>>>>> Yet everythin after fails
>>>>>
>>>>> Here is what I cooked up:
>>>>>
>>>>>         <actions>
>>>>>             <do-set-local-variable name="VAR_DN" scope="policy">
>>>>>                 <arg-string>
>>>>>                     <token-dest-dn/>
>>>>>                 </arg-string>
>>>>>             </do-set-local-variable>
>>>>>             <do-set-local-variable name="VAR_RESULT" scope="policy">
>>>>>                 <arg-node-set>
>>>>>                     <token-xpath 
>>>>> expression="query:search($destQueryProcessor, 'user','',$VAR_DN, 
>>>>> 'User', '','', 'ROCEcrebo')"/>
>>>>>                 </arg-node-set>
>>>>>             </do-set-local-variable>
>>>>>             <do-for-each>
>>>>>                 <arg-node-set>
>>>>>                     <token-xpath 
>>>>> expression='$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value'/>
>>>>>                 </arg-node-set>
>>>>>                 <arg-actions>
>>>>>                     <do-set-local-variable name="VAR_STATUS_TEMP" 
>>>>> scope="policy">
>>>>>                         <arg-string>
>>>>>                             <token-xpath 
>>>>> expression="substring-after($VAR_RESULT/attr[@attr-name=&quot;ROCECrebo&quot;]/value,&apos;-&apos;)"/> 
>>>>>
>>>>>                         </arg-string>
>>>>>                     </do-set-local-variable>
>>>>>                     <do-set-local-variable name="VAR_STATUS_TEMP2" 
>>>>> scope="policy">
>>>>>                         <arg-string>
>>>>>                             <token-xpath 
>>>>> expression="concat($VAR_STATUS_TEMP2,$VAR_STATUS_TEMP)"/>
>>>>>                         </arg-string>
>>>>>                     </do-set-local-variable>
>>>>>                     <do-trace-message level="0">
>>>>>                         <arg-string>
>>>>>                             <token-text xml:space="preserve">BLA 
>>>>> BLA BLA  </token-text>
>>>>>                             <token-local-variable 
>>>>> name="VAR_STATUS_TEMP2"/>
>>>>>                         </arg-string>
>>>>>                     </do-trace-message>
>>>>>                 </arg-actions>
>>>>>             </do-for-each>
>>>>>             <do-veto/>
>>>>>         </actions>
>>>>>
>>>>>
>>>>> This is the trace result:
>>>>> 01/22/08 20:21:58.178]:HR_CSV PT:Applying command transformation 
>>>>> policies.
>>>>> [01/22/08 20:21:58.179]:HR_CSV PT:Applying policy: %+C%14CTEST%-C.
>>>>> [01/22/08 20:21:58.180]:HR_CSV PT:  Applying to modify #1.
>>>>> [01/22/08 20:21:58.180]:HR_CSV PT:    Evaluating selection criteria 
>>>>> for rule 'TEST'.
>>>>> [01/22/08 20:21:58.183]:HR_CSV PT:      (if-op-attr 'ROCEcrebo' 
>>>>> available) = TRUE.
>>>>> [01/22/08 20:21:58.183]:HR_CSV PT:    Rule selected.
>>>>> [01/22/08 20:21:58.184]:HR_CSV PT:    Applying rule 'TEST'.
>>>>> [01/22/08 20:21:58.184]:HR_CSV PT:      Action: 
>>>>> do-set-local-variable("VAR_DN",scope="policy",token-dest-dn()).
>>>>> [01/22/08 20:21:58.184]:HR_CSV PT:        arg-string(token-dest-dn())
>>>>> [01/22/08 20:21:58.186]:HR_CSV PT:          token-dest-dn()
>>>>> [01/22/08 20:21:58.187]:HR_CSV PT:            Token Value: 
>>>>> "\EDIR_001\novell\IDM\ROCE\PS100011".
>>>>> [01/22/08 20:21:58.188]:HR_CSV PT:          Arg Value: 
>>>>> "\EDIR_001\novell\IDM\ROCE\PS100011".
>>>>> [01/22/08 20:21:58.188]:HR_CSV PT:      Action: 
>>>>> do-set-local-variable("VAR_RESULT",scope="policy",arg-node-set(token-xpath("query:search($destQueryProcessor, 
>>>>> 'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')"))).
>>>>> [01/22/08 20:21:58.191]:HR_CSV PT: 
>>>>> arg-node-set(token-xpath("query:search($destQueryProcessor, 
>>>>> 'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')"))
>>>>> [01/22/08 20:21:58.192]:HR_CSV PT: 
>>>>> token-xpath("query:search($destQueryProcessor, 'user','',$VAR_DN, 
>>>>> 'User', '','', 'ROCEcrebo')")
>>>>> [01/22/08 20:21:58.194]:HR_CSV PT:            Query from policy
>>>>> [01/22/08 20:21:58.194]:HR_CSV PT:
>>>>> <nds dtdversion="3.5" ndsversion="8.x">
>>>>>   <source>
>>>>>     <product version="3.5.1.20070411 ">DirXML</product>
>>>>>     <contact>Novell, Inc.</contact>
>>>>>   </source>
>>>>>   <input>
>>>>>     <query class-name="User" 
>>>>> dest-dn="\EDIR_001\novell\IDM\ROCE\PS100011" scope="user">
>>>>>       <search-class class-name="User"/>
>>>>>       <read-attr attr-name="ROCEcrebo"/>
>>>>>     </query>
>>>>>   </input>
>>>>> </nds>
>>>>> [01/22/08 20:21:58.199]:HR_CSV PT:            Pumping XDS to 
>>>>> eDirectory.
>>>>> [01/22/08 20:21:58.199]:HR_CSV PT:            Performing operation 
>>>>> query for \EDIR_001\novell\IDM\ROCE\PS100011.
>>>>> [01/22/08 20:21:58.204]:HR_CSV PT:            Query from policy result
>>>>> [01/22/08 20:21:58.206]:HR_CSV PT:
>>>>> <nds dtdversion="3.5" ndsversion="8.x">
>>>>>   <source>
>>>>>     <product version="3.5.1.20070411 ">DirXML</product>
>>>>>     <contact>Novell, Inc.</contact>
>>>>>   </source>
>>>>>   <output>
>>>>>     <instance class-name="User" event-id="0" 
>>>>> qualified-src-dn="O=novell\OU=IDM\OU=ROCE\CN=PS100011" 
>>>>> src-dn="\EDIR_001\novell\IDM\ROCE\PS100011" src-entry-id="33472">
>>>>>       <association state="associated"></association>
>>>>>       <attr attr-name="ROCEcrebo">
>>>>>         <value timestamp="1201028721#15" type="string">001-I</value>
>>>>>         <value timestamp="1201029408#6" type="string">003-M</value>
>>>>>         <value timestamp="1201029408#7" type="string">002-D</value>
>>>>>       </attr>
>>>>>     </instance>
>>>>>     <status event-id="0" level="success"></status>
>>>>>   </output>
>>>>> </nds>
>>>>> [01/22/08 20:21:58.214]:HR_CSV PT:          Token Value: 
>>>>> {<instance> @class-name = "User" @event-id = "0" @qualified-src-dn 
>>>>> = "O=novell\OU=IDM\OU=ROCE\CN=PS100011" @src-dn = 
>>>>> "\EDIR_001\novell\IDM\ROCE\PS100011" @src-entry-id = "33472"}.
>>>>> [01/22/08 20:21:58.216]:HR_CSV PT:          Arg Value: {<instance> 
>>>>> @class-name = "User" @event-id = "0" @qualified-src-dn = 
>>>>> "O=novell\OU=IDM\OU=ROCE\CN=PS100011" @src-dn = 
>>>>> "\EDIR_001\novell\IDM\ROCE\PS100011" @src-entry-id = "33472"}.
>>>>> [01/22/08 20:21:58.219]:HR_CSV PT:      Action: 
>>>>> do-for-each(arg-node-set(token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value"))). 
>>>>>
>>>>> [01/22/08 20:21:58.219]:HR_CSV PT: 
>>>>> arg-node-set(token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value")) 
>>>>>
>>>>> [01/22/08 20:21:58.220]:HR_CSV PT: 
>>>>> token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value")
>>>>> [01/22/08 20:21:58.222]:HR_CSV PT:          Token Value: {}.
>>>>> [01/22/08 20:21:58.222]:HR_CSV PT:          Arg Value: {}.
>>>>> [01/22/08 20:21:58.223]:HR_CSV PT:      Action: do-veto().
>>>>> [01/22/08 20:21:58.224]:HR_CSV PT:Policy returned:
>>>>> [01/22/08 20:21:58.224]:HR_CSV PT:
>>>>>
>>>>>
>>>>> TIps and hints are highly appreciated!
>>>>>
>>>>> Cheers,
>>>>> Londo
0
Dennis
1/22/2008 8:47:50 PM
One more question: Is the part of A that contributes to B always the 
last character? Or is it the part after the dash and could be multiple 
characters?
--

Father Ramon


Dennis the Manace wrote:
> The IDVault.
> 
> 
> When an attribute A is modified, I want to get the current values of the 
> attribute in eDir and construct the single valued attribute B.
> 
> Cheers,
> Londo
> 
> Father Ramon wrote:
>> And if the connected application, what application?
>> -- 
>>
>> Father Ramon
>>
>>
>> Father Ramon wrote:
>>> The ID Vault or the connected application? What event should trigger 
>>> this?
>>>
>>> -- 
>>>
>>> Father Ramon
>>>
>>>
>>> Dennis the Manace wrote:
>>>> Hi,
>>>>
>>>> both attributes come from the same datastore.
>>>>
>>>> Cheers,
>>>> Londo
>>>>
>>>> Father Ramon wrote:
>>>>> Attribute A is coming from where? Attribute B is going to where? Is 
>>>>> the intent to synchronize attribute A in one datastore to attribute 
>>>>> B in another datastore or are they both from the same datastore?
>>>>> -- 
>>>>>
>>>>> Father Ramon
>>>>>
>>>>>
>>>>> Dennis the Manace wrote:
>>>>>> Hello hello again,
>>>>>>
>>>>>> so I am trying to cook something again and obviously I am failing.
>>>>>>
>>>>>> I have a mutlivalued attribute in eDirectory and I need to store a 
>>>>>> part from each value into a single valued attribute.
>>>>>>
>>>>>> Example:
>>>>>> Attribute A
>>>>>> - value1: 001-I
>>>>>> - value2: 002-D
>>>>>> - value3: 003-M
>>>>>>
>>>>>> I need the I and the D and the M and store in a single valued 
>>>>>> attribute
>>>>>> Attribute B
>>>>>> -value: IDM
>>>>>>
>>>>>> I managed to query the destination user to get the attribute I 
>>>>>> want from the user ... WOHOO :-)
>>>>>> Yet everythin after fails
>>>>>>
>>>>>> Here is what I cooked up:
>>>>>>
>>>>>>         <actions>
>>>>>>             <do-set-local-variable name="VAR_DN" scope="policy">
>>>>>>                 <arg-string>
>>>>>>                     <token-dest-dn/>
>>>>>>                 </arg-string>
>>>>>>             </do-set-local-variable>
>>>>>>             <do-set-local-variable name="VAR_RESULT" scope="policy">
>>>>>>                 <arg-node-set>
>>>>>>                     <token-xpath 
>>>>>> expression="query:search($destQueryProcessor, 'user','',$VAR_DN, 
>>>>>> 'User', '','', 'ROCEcrebo')"/>
>>>>>>                 </arg-node-set>
>>>>>>             </do-set-local-variable>
>>>>>>             <do-for-each>
>>>>>>                 <arg-node-set>
>>>>>>                     <token-xpath 
>>>>>> expression='$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value'/>
>>>>>>                 </arg-node-set>
>>>>>>                 <arg-actions>
>>>>>>                     <do-set-local-variable name="VAR_STATUS_TEMP" 
>>>>>> scope="policy">
>>>>>>                         <arg-string>
>>>>>>                             <token-xpath 
>>>>>> expression="substring-after($VAR_RESULT/attr[@attr-name=&quot;ROCECrebo&quot;]/value,&apos;-&apos;)"/> 
>>>>>>
>>>>>>                         </arg-string>
>>>>>>                     </do-set-local-variable>
>>>>>>                     <do-set-local-variable name="VAR_STATUS_TEMP2" 
>>>>>> scope="policy">
>>>>>>                         <arg-string>
>>>>>>                             <token-xpath 
>>>>>> expression="concat($VAR_STATUS_TEMP2,$VAR_STATUS_TEMP)"/>
>>>>>>                         </arg-string>
>>>>>>                     </do-set-local-variable>
>>>>>>                     <do-trace-message level="0">
>>>>>>                         <arg-string>
>>>>>>                             <token-text xml:space="preserve">BLA 
>>>>>> BLA BLA  </token-text>
>>>>>>                             <token-local-variable 
>>>>>> name="VAR_STATUS_TEMP2"/>
>>>>>>                         </arg-string>
>>>>>>                     </do-trace-message>
>>>>>>                 </arg-actions>
>>>>>>             </do-for-each>
>>>>>>             <do-veto/>
>>>>>>         </actions>
>>>>>>
>>>>>>
>>>>>> This is the trace result:
>>>>>> 01/22/08 20:21:58.178]:HR_CSV PT:Applying command transformation 
>>>>>> policies.
>>>>>> [01/22/08 20:21:58.179]:HR_CSV PT:Applying policy: %+C%14CTEST%-C.
>>>>>> [01/22/08 20:21:58.180]:HR_CSV PT:  Applying to modify #1.
>>>>>> [01/22/08 20:21:58.180]:HR_CSV PT:    Evaluating selection 
>>>>>> criteria for rule 'TEST'.
>>>>>> [01/22/08 20:21:58.183]:HR_CSV PT:      (if-op-attr 'ROCEcrebo' 
>>>>>> available) = TRUE.
>>>>>> [01/22/08 20:21:58.183]:HR_CSV PT:    Rule selected.
>>>>>> [01/22/08 20:21:58.184]:HR_CSV PT:    Applying rule 'TEST'.
>>>>>> [01/22/08 20:21:58.184]:HR_CSV PT:      Action: 
>>>>>> do-set-local-variable("VAR_DN",scope="policy",token-dest-dn()).
>>>>>> [01/22/08 20:21:58.184]:HR_CSV PT:        arg-string(token-dest-dn())
>>>>>> [01/22/08 20:21:58.186]:HR_CSV PT:          token-dest-dn()
>>>>>> [01/22/08 20:21:58.187]:HR_CSV PT:            Token Value: 
>>>>>> "\EDIR_001\novell\IDM\ROCE\PS100011".
>>>>>> [01/22/08 20:21:58.188]:HR_CSV PT:          Arg Value: 
>>>>>> "\EDIR_001\novell\IDM\ROCE\PS100011".
>>>>>> [01/22/08 20:21:58.188]:HR_CSV PT:      Action: 
>>>>>> do-set-local-variable("VAR_RESULT",scope="policy",arg-node-set(token-xpath("query:search($destQueryProcessor, 
>>>>>> 'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')"))).
>>>>>> [01/22/08 20:21:58.191]:HR_CSV PT: 
>>>>>> arg-node-set(token-xpath("query:search($destQueryProcessor, 
>>>>>> 'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')"))
>>>>>> [01/22/08 20:21:58.192]:HR_CSV PT: 
>>>>>> token-xpath("query:search($destQueryProcessor, 'user','',$VAR_DN, 
>>>>>> 'User', '','', 'ROCEcrebo')")
>>>>>> [01/22/08 20:21:58.194]:HR_CSV PT:            Query from policy
>>>>>> [01/22/08 20:21:58.194]:HR_CSV PT:
>>>>>> <nds dtdversion="3.5" ndsversion="8.x">
>>>>>>   <source>
>>>>>>     <product version="3.5.1.20070411 ">DirXML</product>
>>>>>>     <contact>Novell, Inc.</contact>
>>>>>>   </source>
>>>>>>   <input>
>>>>>>     <query class-name="User" 
>>>>>> dest-dn="\EDIR_001\novell\IDM\ROCE\PS100011" scope="user">
>>>>>>       <search-class class-name="User"/>
>>>>>>       <read-attr attr-name="ROCEcrebo"/>
>>>>>>     </query>
>>>>>>   </input>
>>>>>> </nds>
>>>>>> [01/22/08 20:21:58.199]:HR_CSV PT:            Pumping XDS to 
>>>>>> eDirectory.
>>>>>> [01/22/08 20:21:58.199]:HR_CSV PT:            Performing operation 
>>>>>> query for \EDIR_001\novell\IDM\ROCE\PS100011.
>>>>>> [01/22/08 20:21:58.204]:HR_CSV PT:            Query from policy 
>>>>>> result
>>>>>> [01/22/08 20:21:58.206]:HR_CSV PT:
>>>>>> <nds dtdversion="3.5" ndsversion="8.x">
>>>>>>   <source>
>>>>>>     <product version="3.5.1.20070411 ">DirXML</product>
>>>>>>     <contact>Novell, Inc.</contact>
>>>>>>   </source>
>>>>>>   <output>
>>>>>>     <instance class-name="User" event-id="0" 
>>>>>> qualified-src-dn="O=novell\OU=IDM\OU=ROCE\CN=PS100011" 
>>>>>> src-dn="\EDIR_001\novell\IDM\ROCE\PS100011" src-entry-id="33472">
>>>>>>       <association state="associated"></association>
>>>>>>       <attr attr-name="ROCEcrebo">
>>>>>>         <value timestamp="1201028721#15" type="string">001-I</value>
>>>>>>         <value timestamp="1201029408#6" type="string">003-M</value>
>>>>>>         <value timestamp="1201029408#7" type="string">002-D</value>
>>>>>>       </attr>
>>>>>>     </instance>
>>>>>>     <status event-id="0" level="success"></status>
>>>>>>   </output>
>>>>>> </nds>
>>>>>> [01/22/08 20:21:58.214]:HR_CSV PT:          Token Value: 
>>>>>> {<instance> @class-name = "User" @event-id = "0" @qualified-src-dn 
>>>>>> = "O=novell\OU=IDM\OU=ROCE\CN=PS100011" @src-dn = 
>>>>>> "\EDIR_001\novell\IDM\ROCE\PS100011" @src-entry-id = "33472"}.
>>>>>> [01/22/08 20:21:58.216]:HR_CSV PT:          Arg Value: {<instance> 
>>>>>> @class-name = "User" @event-id = "0" @qualified-src-dn = 
>>>>>> "O=novell\OU=IDM\OU=ROCE\CN=PS100011" @src-dn = 
>>>>>> "\EDIR_001\novell\IDM\ROCE\PS100011" @src-entry-id = "33472"}.
>>>>>> [01/22/08 20:21:58.219]:HR_CSV PT:      Action: 
>>>>>> do-for-each(arg-node-set(token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value"))). 
>>>>>>
>>>>>> [01/22/08 20:21:58.219]:HR_CSV PT: 
>>>>>> arg-node-set(token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value")) 
>>>>>>
>>>>>> [01/22/08 20:21:58.220]:HR_CSV PT: 
>>>>>> token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value")
>>>>>> [01/22/08 20:21:58.222]:HR_CSV PT:          Token Value: {}.
>>>>>> [01/22/08 20:21:58.222]:HR_CSV PT:          Arg Value: {}.
>>>>>> [01/22/08 20:21:58.223]:HR_CSV PT:      Action: do-veto().
>>>>>> [01/22/08 20:21:58.224]:HR_CSV PT:Policy returned:
>>>>>> [01/22/08 20:21:58.224]:HR_CSV PT:
>>>>>>
>>>>>>
>>>>>> TIps and hints are highly appreciated!
>>>>>>
>>>>>> Cheers,
>>>>>> Londo
0
Father
1/22/2008 8:54:53 PM
Hi,

It is the last part after the dash. it can be 1 or 2 characters.

Cheers,
Londo

Father Ramon wrote:
> One more question: Is the part of A that contributes to B always the 
> last character? Or is it the part after the dash and could be multiple 
> characters?
> -- 
> 
> Father Ramon
> 
> 
> Dennis the Manace wrote:
>> The IDVault.
>>
>>
>> When an attribute A is modified, I want to get the current values of 
>> the attribute in eDir and construct the single valued attribute B.
>>
>> Cheers,
>> Londo
>>
>> Father Ramon wrote:
>>> And if the connected application, what application?
>>> -- 
>>>
>>> Father Ramon
>>>
>>>
>>> Father Ramon wrote:
>>>> The ID Vault or the connected application? What event should trigger 
>>>> this?
>>>>
>>>> -- 
>>>>
>>>> Father Ramon
>>>>
>>>>
>>>> Dennis the Manace wrote:
>>>>> Hi,
>>>>>
>>>>> both attributes come from the same datastore.
>>>>>
>>>>> Cheers,
>>>>> Londo
>>>>>
>>>>> Father Ramon wrote:
>>>>>> Attribute A is coming from where? Attribute B is going to where? 
>>>>>> Is the intent to synchronize attribute A in one datastore to 
>>>>>> attribute B in another datastore or are they both from the same 
>>>>>> datastore?
>>>>>> -- 
>>>>>>
>>>>>> Father Ramon
>>>>>>
>>>>>>
>>>>>> Dennis the Manace wrote:
>>>>>>> Hello hello again,
>>>>>>>
>>>>>>> so I am trying to cook something again and obviously I am failing.
>>>>>>>
>>>>>>> I have a mutlivalued attribute in eDirectory and I need to store 
>>>>>>> a part from each value into a single valued attribute.
>>>>>>>
>>>>>>> Example:
>>>>>>> Attribute A
>>>>>>> - value1: 001-I
>>>>>>> - value2: 002-D
>>>>>>> - value3: 003-M
>>>>>>>
>>>>>>> I need the I and the D and the M and store in a single valued 
>>>>>>> attribute
>>>>>>> Attribute B
>>>>>>> -value: IDM
>>>>>>>
>>>>>>> I managed to query the destination user to get the attribute I 
>>>>>>> want from the user ... WOHOO :-)
>>>>>>> Yet everythin after fails
>>>>>>>
>>>>>>> Here is what I cooked up:
>>>>>>>
>>>>>>>         <actions>
>>>>>>>             <do-set-local-variable name="VAR_DN" scope="policy">
>>>>>>>                 <arg-string>
>>>>>>>                     <token-dest-dn/>
>>>>>>>                 </arg-string>
>>>>>>>             </do-set-local-variable>
>>>>>>>             <do-set-local-variable name="VAR_RESULT" scope="policy">
>>>>>>>                 <arg-node-set>
>>>>>>>                     <token-xpath 
>>>>>>> expression="query:search($destQueryProcessor, 'user','',$VAR_DN, 
>>>>>>> 'User', '','', 'ROCEcrebo')"/>
>>>>>>>                 </arg-node-set>
>>>>>>>             </do-set-local-variable>
>>>>>>>             <do-for-each>
>>>>>>>                 <arg-node-set>
>>>>>>>                     <token-xpath 
>>>>>>> expression='$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value'/>
>>>>>>>                 </arg-node-set>
>>>>>>>                 <arg-actions>
>>>>>>>                     <do-set-local-variable name="VAR_STATUS_TEMP" 
>>>>>>> scope="policy">
>>>>>>>                         <arg-string>
>>>>>>>                             <token-xpath 
>>>>>>> expression="substring-after($VAR_RESULT/attr[@attr-name=&quot;ROCECrebo&quot;]/value,&apos;-&apos;)"/> 
>>>>>>>
>>>>>>>                         </arg-string>
>>>>>>>                     </do-set-local-variable>
>>>>>>>                     <do-set-local-variable 
>>>>>>> name="VAR_STATUS_TEMP2" scope="policy">
>>>>>>>                         <arg-string>
>>>>>>>                             <token-xpath 
>>>>>>> expression="concat($VAR_STATUS_TEMP2,$VAR_STATUS_TEMP)"/>
>>>>>>>                         </arg-string>
>>>>>>>                     </do-set-local-variable>
>>>>>>>                     <do-trace-message level="0">
>>>>>>>                         <arg-string>
>>>>>>>                             <token-text xml:space="preserve">BLA 
>>>>>>> BLA BLA  </token-text>
>>>>>>>                             <token-local-variable 
>>>>>>> name="VAR_STATUS_TEMP2"/>
>>>>>>>                         </arg-string>
>>>>>>>                     </do-trace-message>
>>>>>>>                 </arg-actions>
>>>>>>>             </do-for-each>
>>>>>>>             <do-veto/>
>>>>>>>         </actions>
>>>>>>>
>>>>>>>
>>>>>>> This is the trace result:
>>>>>>> 01/22/08 20:21:58.178]:HR_CSV PT:Applying command transformation 
>>>>>>> policies.
>>>>>>> [01/22/08 20:21:58.179]:HR_CSV PT:Applying policy: %+C%14CTEST%-C.
>>>>>>> [01/22/08 20:21:58.180]:HR_CSV PT:  Applying to modify #1.
>>>>>>> [01/22/08 20:21:58.180]:HR_CSV PT:    Evaluating selection 
>>>>>>> criteria for rule 'TEST'.
>>>>>>> [01/22/08 20:21:58.183]:HR_CSV PT:      (if-op-attr 'ROCEcrebo' 
>>>>>>> available) = TRUE.
>>>>>>> [01/22/08 20:21:58.183]:HR_CSV PT:    Rule selected.
>>>>>>> [01/22/08 20:21:58.184]:HR_CSV PT:    Applying rule 'TEST'.
>>>>>>> [01/22/08 20:21:58.184]:HR_CSV PT:      Action: 
>>>>>>> do-set-local-variable("VAR_DN",scope="policy",token-dest-dn()).
>>>>>>> [01/22/08 20:21:58.184]:HR_CSV PT:        
>>>>>>> arg-string(token-dest-dn())
>>>>>>> [01/22/08 20:21:58.186]:HR_CSV PT:          token-dest-dn()
>>>>>>> [01/22/08 20:21:58.187]:HR_CSV PT:            Token Value: 
>>>>>>> "\EDIR_001\novell\IDM\ROCE\PS100011".
>>>>>>> [01/22/08 20:21:58.188]:HR_CSV PT:          Arg Value: 
>>>>>>> "\EDIR_001\novell\IDM\ROCE\PS100011".
>>>>>>> [01/22/08 20:21:58.188]:HR_CSV PT:      Action: 
>>>>>>> do-set-local-variable("VAR_RESULT",scope="policy",arg-node-set(token-xpath("query:search($destQueryProcessor, 
>>>>>>> 'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')"))).
>>>>>>> [01/22/08 20:21:58.191]:HR_CSV PT: 
>>>>>>> arg-node-set(token-xpath("query:search($destQueryProcessor, 
>>>>>>> 'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')"))
>>>>>>> [01/22/08 20:21:58.192]:HR_CSV PT: 
>>>>>>> token-xpath("query:search($destQueryProcessor, 'user','',$VAR_DN, 
>>>>>>> 'User', '','', 'ROCEcrebo')")
>>>>>>> [01/22/08 20:21:58.194]:HR_CSV PT:            Query from policy
>>>>>>> [01/22/08 20:21:58.194]:HR_CSV PT:
>>>>>>> <nds dtdversion="3.5" ndsversion="8.x">
>>>>>>>   <source>
>>>>>>>     <product version="3.5.1.20070411 ">DirXML</product>
>>>>>>>     <contact>Novell, Inc.</contact>
>>>>>>>   </source>
>>>>>>>   <input>
>>>>>>>     <query class-name="User" 
>>>>>>> dest-dn="\EDIR_001\novell\IDM\ROCE\PS100011" scope="user">
>>>>>>>       <search-class class-name="User"/>
>>>>>>>       <read-attr attr-name="ROCEcrebo"/>
>>>>>>>     </query>
>>>>>>>   </input>
>>>>>>> </nds>
>>>>>>> [01/22/08 20:21:58.199]:HR_CSV PT:            Pumping XDS to 
>>>>>>> eDirectory.
>>>>>>> [01/22/08 20:21:58.199]:HR_CSV PT:            Performing 
>>>>>>> operation query for \EDIR_001\novell\IDM\ROCE\PS100011.
>>>>>>> [01/22/08 20:21:58.204]:HR_CSV PT:            Query from policy 
>>>>>>> result
>>>>>>> [01/22/08 20:21:58.206]:HR_CSV PT:
>>>>>>> <nds dtdversion="3.5" ndsversion="8.x">
>>>>>>>   <source>
>>>>>>>     <product version="3.5.1.20070411 ">DirXML</product>
>>>>>>>     <contact>Novell, Inc.</contact>
>>>>>>>   </source>
>>>>>>>   <output>
>>>>>>>     <instance class-name="User" event-id="0" 
>>>>>>> qualified-src-dn="O=novell\OU=IDM\OU=ROCE\CN=PS100011" 
>>>>>>> src-dn="\EDIR_001\novell\IDM\ROCE\PS100011" src-entry-id="33472">
>>>>>>>       <association state="associated"></association>
>>>>>>>       <attr attr-name="ROCEcrebo">
>>>>>>>         <value timestamp="1201028721#15" type="string">001-I</value>
>>>>>>>         <value timestamp="1201029408#6" type="string">003-M</value>
>>>>>>>         <value timestamp="1201029408#7" type="string">002-D</value>
>>>>>>>       </attr>
>>>>>>>     </instance>
>>>>>>>     <status event-id="0" level="success"></status>
>>>>>>>   </output>
>>>>>>> </nds>
>>>>>>> [01/22/08 20:21:58.214]:HR_CSV PT:          Token Value: 
>>>>>>> {<instance> @class-name = "User" @event-id = "0" 
>>>>>>> @qualified-src-dn = "O=novell\OU=IDM\OU=ROCE\CN=PS100011" @src-dn 
>>>>>>> = "\EDIR_001\novell\IDM\ROCE\PS100011" @src-entry-id = "33472"}.
>>>>>>> [01/22/08 20:21:58.216]:HR_CSV PT:          Arg Value: 
>>>>>>> {<instance> @class-name = "User" @event-id = "0" 
>>>>>>> @qualified-src-dn = "O=novell\OU=IDM\OU=ROCE\CN=PS100011" @src-dn 
>>>>>>> = "\EDIR_001\novell\IDM\ROCE\PS100011" @src-entry-id = "33472"}.
>>>>>>> [01/22/08 20:21:58.219]:HR_CSV PT:      Action: 
>>>>>>> do-for-each(arg-node-set(token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value"))). 
>>>>>>>
>>>>>>> [01/22/08 20:21:58.219]:HR_CSV PT: 
>>>>>>> arg-node-set(token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value")) 
>>>>>>>
>>>>>>> [01/22/08 20:21:58.220]:HR_CSV PT: 
>>>>>>> token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value")
>>>>>>> [01/22/08 20:21:58.222]:HR_CSV PT:          Token Value: {}.
>>>>>>> [01/22/08 20:21:58.222]:HR_CSV PT:          Arg Value: {}.
>>>>>>> [01/22/08 20:21:58.223]:HR_CSV PT:      Action: do-veto().
>>>>>>> [01/22/08 20:21:58.224]:HR_CSV PT:Policy returned:
>>>>>>> [01/22/08 20:21:58.224]:HR_CSV PT:
>>>>>>>
>>>>>>>
>>>>>>> TIps and hints are highly appreciated!
>>>>>>>
>>>>>>> Cheers,
>>>>>>> Londo
0
Dennis
1/22/2008 8:56:53 PM
<rule>
  <description>Combine A and writeback to B</description>
  <conditions>
   <and>
    <if-op-attr name="A" op="changing"/>
   </and>
  </conditions>
  <actions>
   <do-for-each>
    <arg-node-set>
     <token-src-attr name="A"/>
    </arg-node-set>
    <arg-actions>
     <do-set-local-variable name="NewB" scope="policy">
      <arg-string>
       <token-local-variable name="NewB"/>
       <token-xpath expression="substring-after(current-node, '-')"/>
      </arg-string>
     </do-set-local-variable>
    </arg-actions>
   </do-for-each>
   <do-set-src-attr-value name="B">
    <arg-value type="string">
     <token-local-variable name="NewB"/>
    </arg-value>
   </do-set-src-attr-value>
  </actions>
</rule>

--

Father Ramon


Dennis the Manace wrote:
> Hi,
> 
> It is the last part after the dash. it can be 1 or 2 characters.
> 
> Cheers,
> Londo
> 
> Father Ramon wrote:
>> One more question: Is the part of A that contributes to B always the 
>> last character? Or is it the part after the dash and could be multiple 
>> characters?
>> -- 
>>
>> Father Ramon
>>
>>
>> Dennis the Manace wrote:
>>> The IDVault.
>>>
>>>
>>> When an attribute A is modified, I want to get the current values of 
>>> the attribute in eDir and construct the single valued attribute B.
>>>
>>> Cheers,
>>> Londo
>>>
>>> Father Ramon wrote:
>>>> And if the connected application, what application?
>>>> -- 
>>>>
>>>> Father Ramon
>>>>
>>>>
>>>> Father Ramon wrote:
>>>>> The ID Vault or the connected application? What event should 
>>>>> trigger this?
>>>>>
>>>>> -- 
>>>>>
>>>>> Father Ramon
>>>>>
>>>>>
>>>>> Dennis the Manace wrote:
>>>>>> Hi,
>>>>>>
>>>>>> both attributes come from the same datastore.
>>>>>>
>>>>>> Cheers,
>>>>>> Londo
>>>>>>
>>>>>> Father Ramon wrote:
>>>>>>> Attribute A is coming from where? Attribute B is going to where? 
>>>>>>> Is the intent to synchronize attribute A in one datastore to 
>>>>>>> attribute B in another datastore or are they both from the same 
>>>>>>> datastore?
>>>>>>> -- 
>>>>>>>
>>>>>>> Father Ramon
>>>>>>>
>>>>>>>
>>>>>>> Dennis the Manace wrote:
>>>>>>>> Hello hello again,
>>>>>>>>
>>>>>>>> so I am trying to cook something again and obviously I am failing.
>>>>>>>>
>>>>>>>> I have a mutlivalued attribute in eDirectory and I need to store 
>>>>>>>> a part from each value into a single valued attribute.
>>>>>>>>
>>>>>>>> Example:
>>>>>>>> Attribute A
>>>>>>>> - value1: 001-I
>>>>>>>> - value2: 002-D
>>>>>>>> - value3: 003-M
>>>>>>>>
>>>>>>>> I need the I and the D and the M and store in a single valued 
>>>>>>>> attribute
>>>>>>>> Attribute B
>>>>>>>> -value: IDM
>>>>>>>>
>>>>>>>> I managed to query the destination user to get the attribute I 
>>>>>>>> want from the user ... WOHOO :-)
>>>>>>>> Yet everythin after fails
>>>>>>>>
>>>>>>>> Here is what I cooked up:
>>>>>>>>
>>>>>>>>         <actions>
>>>>>>>>             <do-set-local-variable name="VAR_DN" scope="policy">
>>>>>>>>                 <arg-string>
>>>>>>>>                     <token-dest-dn/>
>>>>>>>>                 </arg-string>
>>>>>>>>             </do-set-local-variable>
>>>>>>>>             <do-set-local-variable name="VAR_RESULT" 
>>>>>>>> scope="policy">
>>>>>>>>                 <arg-node-set>
>>>>>>>>                     <token-xpath 
>>>>>>>> expression="query:search($destQueryProcessor, 'user','',$VAR_DN, 
>>>>>>>> 'User', '','', 'ROCEcrebo')"/>
>>>>>>>>                 </arg-node-set>
>>>>>>>>             </do-set-local-variable>
>>>>>>>>             <do-for-each>
>>>>>>>>                 <arg-node-set>
>>>>>>>>                     <token-xpath 
>>>>>>>> expression='$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value'/>
>>>>>>>>                 </arg-node-set>
>>>>>>>>                 <arg-actions>
>>>>>>>>                     <do-set-local-variable 
>>>>>>>> name="VAR_STATUS_TEMP" scope="policy">
>>>>>>>>                         <arg-string>
>>>>>>>>                             <token-xpath 
>>>>>>>> expression="substring-after($VAR_RESULT/attr[@attr-name=&quot;ROCECrebo&quot;]/value,&apos;-&apos;)"/> 
>>>>>>>>
>>>>>>>>                         </arg-string>
>>>>>>>>                     </do-set-local-variable>
>>>>>>>>                     <do-set-local-variable 
>>>>>>>> name="VAR_STATUS_TEMP2" scope="policy">
>>>>>>>>                         <arg-string>
>>>>>>>>                             <token-xpath 
>>>>>>>> expression="concat($VAR_STATUS_TEMP2,$VAR_STATUS_TEMP)"/>
>>>>>>>>                         </arg-string>
>>>>>>>>                     </do-set-local-variable>
>>>>>>>>                     <do-trace-message level="0">
>>>>>>>>                         <arg-string>
>>>>>>>>                             <token-text xml:space="preserve">BLA 
>>>>>>>> BLA BLA  </token-text>
>>>>>>>>                             <token-local-variable 
>>>>>>>> name="VAR_STATUS_TEMP2"/>
>>>>>>>>                         </arg-string>
>>>>>>>>                     </do-trace-message>
>>>>>>>>                 </arg-actions>
>>>>>>>>             </do-for-each>
>>>>>>>>             <do-veto/>
>>>>>>>>         </actions>
>>>>>>>>
>>>>>>>>
>>>>>>>> This is the trace result:
>>>>>>>> 01/22/08 20:21:58.178]:HR_CSV PT:Applying command transformation 
>>>>>>>> policies.
>>>>>>>> [01/22/08 20:21:58.179]:HR_CSV PT:Applying policy: %+C%14CTEST%-C.
>>>>>>>> [01/22/08 20:21:58.180]:HR_CSV PT:  Applying to modify #1.
>>>>>>>> [01/22/08 20:21:58.180]:HR_CSV PT:    Evaluating selection 
>>>>>>>> criteria for rule 'TEST'.
>>>>>>>> [01/22/08 20:21:58.183]:HR_CSV PT:      (if-op-attr 'ROCEcrebo' 
>>>>>>>> available) = TRUE.
>>>>>>>> [01/22/08 20:21:58.183]:HR_CSV PT:    Rule selected.
>>>>>>>> [01/22/08 20:21:58.184]:HR_CSV PT:    Applying rule 'TEST'.
>>>>>>>> [01/22/08 20:21:58.184]:HR_CSV PT:      Action: 
>>>>>>>> do-set-local-variable("VAR_DN",scope="policy",token-dest-dn()).
>>>>>>>> [01/22/08 20:21:58.184]:HR_CSV PT:        
>>>>>>>> arg-string(token-dest-dn())
>>>>>>>> [01/22/08 20:21:58.186]:HR_CSV PT:          token-dest-dn()
>>>>>>>> [01/22/08 20:21:58.187]:HR_CSV PT:            Token Value: 
>>>>>>>> "\EDIR_001\novell\IDM\ROCE\PS100011".
>>>>>>>> [01/22/08 20:21:58.188]:HR_CSV PT:          Arg Value: 
>>>>>>>> "\EDIR_001\novell\IDM\ROCE\PS100011".
>>>>>>>> [01/22/08 20:21:58.188]:HR_CSV PT:      Action: 
>>>>>>>> do-set-local-variable("VAR_RESULT",scope="policy",arg-node-set(token-xpath("query:search($destQueryProcessor, 
>>>>>>>> 'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')"))).
>>>>>>>> [01/22/08 20:21:58.191]:HR_CSV PT: 
>>>>>>>> arg-node-set(token-xpath("query:search($destQueryProcessor, 
>>>>>>>> 'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')"))
>>>>>>>> [01/22/08 20:21:58.192]:HR_CSV PT: 
>>>>>>>> token-xpath("query:search($destQueryProcessor, 
>>>>>>>> 'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')")
>>>>>>>> [01/22/08 20:21:58.194]:HR_CSV PT:            Query from policy
>>>>>>>> [01/22/08 20:21:58.194]:HR_CSV PT:
>>>>>>>> <nds dtdversion="3.5" ndsversion="8.x">
>>>>>>>>   <source>
>>>>>>>>     <product version="3.5.1.20070411 ">DirXML</product>
>>>>>>>>     <contact>Novell, Inc.</contact>
>>>>>>>>   </source>
>>>>>>>>   <input>
>>>>>>>>     <query class-name="User" 
>>>>>>>> dest-dn="\EDIR_001\novell\IDM\ROCE\PS100011" scope="user">
>>>>>>>>       <search-class class-name="User"/>
>>>>>>>>       <read-attr attr-name="ROCEcrebo"/>
>>>>>>>>     </query>
>>>>>>>>   </input>
>>>>>>>> </nds>
>>>>>>>> [01/22/08 20:21:58.199]:HR_CSV PT:            Pumping XDS to 
>>>>>>>> eDirectory.
>>>>>>>> [01/22/08 20:21:58.199]:HR_CSV PT:            Performing 
>>>>>>>> operation query for \EDIR_001\novell\IDM\ROCE\PS100011.
>>>>>>>> [01/22/08 20:21:58.204]:HR_CSV PT:            Query from policy 
>>>>>>>> result
>>>>>>>> [01/22/08 20:21:58.206]:HR_CSV PT:
>>>>>>>> <nds dtdversion="3.5" ndsversion="8.x">
>>>>>>>>   <source>
>>>>>>>>     <product version="3.5.1.20070411 ">DirXML</product>
>>>>>>>>     <contact>Novell, Inc.</contact>
>>>>>>>>   </source>
>>>>>>>>   <output>
>>>>>>>>     <instance class-name="User" event-id="0" 
>>>>>>>> qualified-src-dn="O=novell\OU=IDM\OU=ROCE\CN=PS100011" 
>>>>>>>> src-dn="\EDIR_001\novell\IDM\ROCE\PS100011" src-entry-id="33472">
>>>>>>>>       <association state="associated"></association>
>>>>>>>>       <attr attr-name="ROCEcrebo">
>>>>>>>>         <value timestamp="1201028721#15" 
>>>>>>>> type="string">001-I</value>
>>>>>>>>         <value timestamp="1201029408#6" type="string">003-M</value>
>>>>>>>>         <value timestamp="1201029408#7" type="string">002-D</value>
>>>>>>>>       </attr>
>>>>>>>>     </instance>
>>>>>>>>     <status event-id="0" level="success"></status>
>>>>>>>>   </output>
>>>>>>>> </nds>
>>>>>>>> [01/22/08 20:21:58.214]:HR_CSV PT:          Token Value: 
>>>>>>>> {<instance> @class-name = "User" @event-id = "0" 
>>>>>>>> @qualified-src-dn = "O=novell\OU=IDM\OU=ROCE\CN=PS100011" 
>>>>>>>> @src-dn = "\EDIR_001\novell\IDM\ROCE\PS100011" @src-entry-id = 
>>>>>>>> "33472"}.
>>>>>>>> [01/22/08 20:21:58.216]:HR_CSV PT:          Arg Value: 
>>>>>>>> {<instance> @class-name = "User" @event-id = "0" 
>>>>>>>> @qualified-src-dn = "O=novell\OU=IDM\OU=ROCE\CN=PS100011" 
>>>>>>>> @src-dn = "\EDIR_001\novell\IDM\ROCE\PS100011" @src-entry-id = 
>>>>>>>> "33472"}.
>>>>>>>> [01/22/08 20:21:58.219]:HR_CSV PT:      Action: 
>>>>>>>> do-for-each(arg-node-set(token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value"))). 
>>>>>>>>
>>>>>>>> [01/22/08 20:21:58.219]:HR_CSV PT: 
>>>>>>>> arg-node-set(token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value")) 
>>>>>>>>
>>>>>>>> [01/22/08 20:21:58.220]:HR_CSV PT: 
>>>>>>>> token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value")
>>>>>>>> [01/22/08 20:21:58.222]:HR_CSV PT:          Token Value: {}.
>>>>>>>> [01/22/08 20:21:58.222]:HR_CSV PT:          Arg Value: {}.
>>>>>>>> [01/22/08 20:21:58.223]:HR_CSV PT:      Action: do-veto().
>>>>>>>> [01/22/08 20:21:58.224]:HR_CSV PT:Policy returned:
>>>>>>>> [01/22/08 20:21:58.224]:HR_CSV PT:
>>>>>>>>
>>>>>>>>
>>>>>>>> TIps and hints are highly appreciated!
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>> Londo
0
Father
1/22/2008 8:59:34 PM
Hi,

Thanks a lot!

Cheers,
Londo


Father Ramon wrote:
> <rule>
>  <description>Combine A and writeback to B</description>
>  <conditions>
>   <and>
>    <if-op-attr name="A" op="changing"/>
>   </and>
>  </conditions>
>  <actions>
>   <do-for-each>
>    <arg-node-set>
>     <token-src-attr name="A"/>
>    </arg-node-set>
>    <arg-actions>
>     <do-set-local-variable name="NewB" scope="policy">
>      <arg-string>
>       <token-local-variable name="NewB"/>
>       <token-xpath expression="substring-after(current-node, '-')"/>
>      </arg-string>
>     </do-set-local-variable>
>    </arg-actions>
>   </do-for-each>
>   <do-set-src-attr-value name="B">
>    <arg-value type="string">
>     <token-local-variable name="NewB"/>
>    </arg-value>
>   </do-set-src-attr-value>
>  </actions>
> </rule>
> 
> -- 
> 
> Father Ramon
> 
> 
> Dennis the Manace wrote:
>> Hi,
>>
>> It is the last part after the dash. it can be 1 or 2 characters.
>>
>> Cheers,
>> Londo
>>
>> Father Ramon wrote:
>>> One more question: Is the part of A that contributes to B always the 
>>> last character? Or is it the part after the dash and could be 
>>> multiple characters?
>>> -- 
>>>
>>> Father Ramon
>>>
>>>
>>> Dennis the Manace wrote:
>>>> The IDVault.
>>>>
>>>>
>>>> When an attribute A is modified, I want to get the current values of 
>>>> the attribute in eDir and construct the single valued attribute B.
>>>>
>>>> Cheers,
>>>> Londo
>>>>
>>>> Father Ramon wrote:
>>>>> And if the connected application, what application?
>>>>> -- 
>>>>>
>>>>> Father Ramon
>>>>>
>>>>>
>>>>> Father Ramon wrote:
>>>>>> The ID Vault or the connected application? What event should 
>>>>>> trigger this?
>>>>>>
>>>>>> -- 
>>>>>>
>>>>>> Father Ramon
>>>>>>
>>>>>>
>>>>>> Dennis the Manace wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> both attributes come from the same datastore.
>>>>>>>
>>>>>>> Cheers,
>>>>>>> Londo
>>>>>>>
>>>>>>> Father Ramon wrote:
>>>>>>>> Attribute A is coming from where? Attribute B is going to where? 
>>>>>>>> Is the intent to synchronize attribute A in one datastore to 
>>>>>>>> attribute B in another datastore or are they both from the same 
>>>>>>>> datastore?
>>>>>>>> -- 
>>>>>>>>
>>>>>>>> Father Ramon
>>>>>>>>
>>>>>>>>
>>>>>>>> Dennis the Manace wrote:
>>>>>>>>> Hello hello again,
>>>>>>>>>
>>>>>>>>> so I am trying to cook something again and obviously I am failing.
>>>>>>>>>
>>>>>>>>> I have a mutlivalued attribute in eDirectory and I need to 
>>>>>>>>> store a part from each value into a single valued attribute.
>>>>>>>>>
>>>>>>>>> Example:
>>>>>>>>> Attribute A
>>>>>>>>> - value1: 001-I
>>>>>>>>> - value2: 002-D
>>>>>>>>> - value3: 003-M
>>>>>>>>>
>>>>>>>>> I need the I and the D and the M and store in a single valued 
>>>>>>>>> attribute
>>>>>>>>> Attribute B
>>>>>>>>> -value: IDM
>>>>>>>>>
>>>>>>>>> I managed to query the destination user to get the attribute I 
>>>>>>>>> want from the user ... WOHOO :-)
>>>>>>>>> Yet everythin after fails
>>>>>>>>>
>>>>>>>>> Here is what I cooked up:
>>>>>>>>>
>>>>>>>>>         <actions>
>>>>>>>>>             <do-set-local-variable name="VAR_DN" scope="policy">
>>>>>>>>>                 <arg-string>
>>>>>>>>>                     <token-dest-dn/>
>>>>>>>>>                 </arg-string>
>>>>>>>>>             </do-set-local-variable>
>>>>>>>>>             <do-set-local-variable name="VAR_RESULT" 
>>>>>>>>> scope="policy">
>>>>>>>>>                 <arg-node-set>
>>>>>>>>>                     <token-xpath 
>>>>>>>>> expression="query:search($destQueryProcessor, 
>>>>>>>>> 'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')"/>
>>>>>>>>>                 </arg-node-set>
>>>>>>>>>             </do-set-local-variable>
>>>>>>>>>             <do-for-each>
>>>>>>>>>                 <arg-node-set>
>>>>>>>>>                     <token-xpath 
>>>>>>>>> expression='$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value'/>
>>>>>>>>>                 </arg-node-set>
>>>>>>>>>                 <arg-actions>
>>>>>>>>>                     <do-set-local-variable 
>>>>>>>>> name="VAR_STATUS_TEMP" scope="policy">
>>>>>>>>>                         <arg-string>
>>>>>>>>>                             <token-xpath 
>>>>>>>>> expression="substring-after($VAR_RESULT/attr[@attr-name=&quot;ROCECrebo&quot;]/value,&apos;-&apos;)"/> 
>>>>>>>>>
>>>>>>>>>                         </arg-string>
>>>>>>>>>                     </do-set-local-variable>
>>>>>>>>>                     <do-set-local-variable 
>>>>>>>>> name="VAR_STATUS_TEMP2" scope="policy">
>>>>>>>>>                         <arg-string>
>>>>>>>>>                             <token-xpath 
>>>>>>>>> expression="concat($VAR_STATUS_TEMP2,$VAR_STATUS_TEMP)"/>
>>>>>>>>>                         </arg-string>
>>>>>>>>>                     </do-set-local-variable>
>>>>>>>>>                     <do-trace-message level="0">
>>>>>>>>>                         <arg-string>
>>>>>>>>>                             <token-text 
>>>>>>>>> xml:space="preserve">BLA BLA BLA  </token-text>
>>>>>>>>>                             <token-local-variable 
>>>>>>>>> name="VAR_STATUS_TEMP2"/>
>>>>>>>>>                         </arg-string>
>>>>>>>>>                     </do-trace-message>
>>>>>>>>>                 </arg-actions>
>>>>>>>>>             </do-for-each>
>>>>>>>>>             <do-veto/>
>>>>>>>>>         </actions>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> This is the trace result:
>>>>>>>>> 01/22/08 20:21:58.178]:HR_CSV PT:Applying command 
>>>>>>>>> transformation policies.
>>>>>>>>> [01/22/08 20:21:58.179]:HR_CSV PT:Applying policy: %+C%14CTEST%-C.
>>>>>>>>> [01/22/08 20:21:58.180]:HR_CSV PT:  Applying to modify #1.
>>>>>>>>> [01/22/08 20:21:58.180]:HR_CSV PT:    Evaluating selection 
>>>>>>>>> criteria for rule 'TEST'.
>>>>>>>>> [01/22/08 20:21:58.183]:HR_CSV PT:      (if-op-attr 'ROCEcrebo' 
>>>>>>>>> available) = TRUE.
>>>>>>>>> [01/22/08 20:21:58.183]:HR_CSV PT:    Rule selected.
>>>>>>>>> [01/22/08 20:21:58.184]:HR_CSV PT:    Applying rule 'TEST'.
>>>>>>>>> [01/22/08 20:21:58.184]:HR_CSV PT:      Action: 
>>>>>>>>> do-set-local-variable("VAR_DN",scope="policy",token-dest-dn()).
>>>>>>>>> [01/22/08 20:21:58.184]:HR_CSV PT:        
>>>>>>>>> arg-string(token-dest-dn())
>>>>>>>>> [01/22/08 20:21:58.186]:HR_CSV PT:          token-dest-dn()
>>>>>>>>> [01/22/08 20:21:58.187]:HR_CSV PT:            Token Value: 
>>>>>>>>> "\EDIR_001\novell\IDM\ROCE\PS100011".
>>>>>>>>> [01/22/08 20:21:58.188]:HR_CSV PT:          Arg Value: 
>>>>>>>>> "\EDIR_001\novell\IDM\ROCE\PS100011".
>>>>>>>>> [01/22/08 20:21:58.188]:HR_CSV PT:      Action: 
>>>>>>>>> do-set-local-variable("VAR_RESULT",scope="policy",arg-node-set(token-xpath("query:search($destQueryProcessor, 
>>>>>>>>> 'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')"))).
>>>>>>>>> [01/22/08 20:21:58.191]:HR_CSV PT: 
>>>>>>>>> arg-node-set(token-xpath("query:search($destQueryProcessor, 
>>>>>>>>> 'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')"))
>>>>>>>>> [01/22/08 20:21:58.192]:HR_CSV PT: 
>>>>>>>>> token-xpath("query:search($destQueryProcessor, 
>>>>>>>>> 'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')")
>>>>>>>>> [01/22/08 20:21:58.194]:HR_CSV PT:            Query from policy
>>>>>>>>> [01/22/08 20:21:58.194]:HR_CSV PT:
>>>>>>>>> <nds dtdversion="3.5" ndsversion="8.x">
>>>>>>>>>   <source>
>>>>>>>>>     <product version="3.5.1.20070411 ">DirXML</product>
>>>>>>>>>     <contact>Novell, Inc.</contact>
>>>>>>>>>   </source>
>>>>>>>>>   <input>
>>>>>>>>>     <query class-name="User" 
>>>>>>>>> dest-dn="\EDIR_001\novell\IDM\ROCE\PS100011" scope="user">
>>>>>>>>>       <search-class class-name="User"/>
>>>>>>>>>       <read-attr attr-name="ROCEcrebo"/>
>>>>>>>>>     </query>
>>>>>>>>>   </input>
>>>>>>>>> </nds>
>>>>>>>>> [01/22/08 20:21:58.199]:HR_CSV PT:            Pumping XDS to 
>>>>>>>>> eDirectory.
>>>>>>>>> [01/22/08 20:21:58.199]:HR_CSV PT:            Performing 
>>>>>>>>> operation query for \EDIR_001\novell\IDM\ROCE\PS100011.
>>>>>>>>> [01/22/08 20:21:58.204]:HR_CSV PT:            Query from policy 
>>>>>>>>> result
>>>>>>>>> [01/22/08 20:21:58.206]:HR_CSV PT:
>>>>>>>>> <nds dtdversion="3.5" ndsversion="8.x">
>>>>>>>>>   <source>
>>>>>>>>>     <product version="3.5.1.20070411 ">DirXML</product>
>>>>>>>>>     <contact>Novell, Inc.</contact>
>>>>>>>>>   </source>
>>>>>>>>>   <output>
>>>>>>>>>     <instance class-name="User" event-id="0" 
>>>>>>>>> qualified-src-dn="O=novell\OU=IDM\OU=ROCE\CN=PS100011" 
>>>>>>>>> src-dn="\EDIR_001\novell\IDM\ROCE\PS100011" src-entry-id="33472">
>>>>>>>>>       <association state="associated"></association>
>>>>>>>>>       <attr attr-name="ROCEcrebo">
>>>>>>>>>         <value timestamp="1201028721#15" 
>>>>>>>>> type="string">001-I</value>
>>>>>>>>>         <value timestamp="1201029408#6" 
>>>>>>>>> type="string">003-M</value>
>>>>>>>>>         <value timestamp="1201029408#7" 
>>>>>>>>> type="string">002-D</value>
>>>>>>>>>       </attr>
>>>>>>>>>     </instance>
>>>>>>>>>     <status event-id="0" level="success"></status>
>>>>>>>>>   </output>
>>>>>>>>> </nds>
>>>>>>>>> [01/22/08 20:21:58.214]:HR_CSV PT:          Token Value: 
>>>>>>>>> {<instance> @class-name = "User" @event-id = "0" 
>>>>>>>>> @qualified-src-dn = "O=novell\OU=IDM\OU=ROCE\CN=PS100011" 
>>>>>>>>> @src-dn = "\EDIR_001\novell\IDM\ROCE\PS100011" @src-entry-id = 
>>>>>>>>> "33472"}.
>>>>>>>>> [01/22/08 20:21:58.216]:HR_CSV PT:          Arg Value: 
>>>>>>>>> {<instance> @class-name = "User" @event-id = "0" 
>>>>>>>>> @qualified-src-dn = "O=novell\OU=IDM\OU=ROCE\CN=PS100011" 
>>>>>>>>> @src-dn = "\EDIR_001\novell\IDM\ROCE\PS100011" @src-entry-id = 
>>>>>>>>> "33472"}.
>>>>>>>>> [01/22/08 20:21:58.219]:HR_CSV PT:      Action: 
>>>>>>>>> do-for-each(arg-node-set(token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value"))). 
>>>>>>>>>
>>>>>>>>> [01/22/08 20:21:58.219]:HR_CSV PT: 
>>>>>>>>> arg-node-set(token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value")) 
>>>>>>>>>
>>>>>>>>> [01/22/08 20:21:58.220]:HR_CSV PT: 
>>>>>>>>> token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value")
>>>>>>>>> [01/22/08 20:21:58.222]:HR_CSV PT:          Token Value: {}.
>>>>>>>>> [01/22/08 20:21:58.222]:HR_CSV PT:          Arg Value: {}.
>>>>>>>>> [01/22/08 20:21:58.223]:HR_CSV PT:      Action: do-veto().
>>>>>>>>> [01/22/08 20:21:58.224]:HR_CSV PT:Policy returned:
>>>>>>>>> [01/22/08 20:21:58.224]:HR_CSV PT:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> TIps and hints are highly appreciated!
>>>>>>>>>
>>>>>>>>> Cheers,
>>>>>>>>> Londo
0
Dennis
1/22/2008 9:14:49 PM
Just wanted to like all of you know that it works like a charm :-)

I only had to put a $ in front of the "current-node" to make it work.

Cheers,
Dennis


Dennis the Manace wrote:
> Hi,
> 
> Thanks a lot!
> 
> Cheers,
> Londo
> 
> 
> Father Ramon wrote:
>> <rule>
>>  <description>Combine A and writeback to B</description>
>>  <conditions>
>>   <and>
>>    <if-op-attr name="A" op="changing"/>
>>   </and>
>>  </conditions>
>>  <actions>
>>   <do-for-each>
>>    <arg-node-set>
>>     <token-src-attr name="A"/>
>>    </arg-node-set>
>>    <arg-actions>
>>     <do-set-local-variable name="NewB" scope="policy">
>>      <arg-string>
>>       <token-local-variable name="NewB"/>
>>       <token-xpath expression="substring-after(current-node, '-')"/>
>>      </arg-string>
>>     </do-set-local-variable>
>>    </arg-actions>
>>   </do-for-each>
>>   <do-set-src-attr-value name="B">
>>    <arg-value type="string">
>>     <token-local-variable name="NewB"/>
>>    </arg-value>
>>   </do-set-src-attr-value>
>>  </actions>
>> </rule>
>>
>> -- 
>>
>> Father Ramon
>>
>>
>> Dennis the Manace wrote:
>>> Hi,
>>>
>>> It is the last part after the dash. it can be 1 or 2 characters.
>>>
>>> Cheers,
>>> Londo
>>>
>>> Father Ramon wrote:
>>>> One more question: Is the part of A that contributes to B always the 
>>>> last character? Or is it the part after the dash and could be 
>>>> multiple characters?
>>>> -- 
>>>>
>>>> Father Ramon
>>>>
>>>>
>>>> Dennis the Manace wrote:
>>>>> The IDVault.
>>>>>
>>>>>
>>>>> When an attribute A is modified, I want to get the current values 
>>>>> of the attribute in eDir and construct the single valued attribute B.
>>>>>
>>>>> Cheers,
>>>>> Londo
>>>>>
>>>>> Father Ramon wrote:
>>>>>> And if the connected application, what application?
>>>>>> -- 
>>>>>>
>>>>>> Father Ramon
>>>>>>
>>>>>>
>>>>>> Father Ramon wrote:
>>>>>>> The ID Vault or the connected application? What event should 
>>>>>>> trigger this?
>>>>>>>
>>>>>>> -- 
>>>>>>>
>>>>>>> Father Ramon
>>>>>>>
>>>>>>>
>>>>>>> Dennis the Manace wrote:
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> both attributes come from the same datastore.
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>> Londo
>>>>>>>>
>>>>>>>> Father Ramon wrote:
>>>>>>>>> Attribute A is coming from where? Attribute B is going to 
>>>>>>>>> where? Is the intent to synchronize attribute A in one 
>>>>>>>>> datastore to attribute B in another datastore or are they both 
>>>>>>>>> from the same datastore?
>>>>>>>>> -- 
>>>>>>>>>
>>>>>>>>> Father Ramon
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Dennis the Manace wrote:
>>>>>>>>>> Hello hello again,
>>>>>>>>>>
>>>>>>>>>> so I am trying to cook something again and obviously I am 
>>>>>>>>>> failing.
>>>>>>>>>>
>>>>>>>>>> I have a mutlivalued attribute in eDirectory and I need to 
>>>>>>>>>> store a part from each value into a single valued attribute.
>>>>>>>>>>
>>>>>>>>>> Example:
>>>>>>>>>> Attribute A
>>>>>>>>>> - value1: 001-I
>>>>>>>>>> - value2: 002-D
>>>>>>>>>> - value3: 003-M
>>>>>>>>>>
>>>>>>>>>> I need the I and the D and the M and store in a single valued 
>>>>>>>>>> attribute
>>>>>>>>>> Attribute B
>>>>>>>>>> -value: IDM
>>>>>>>>>>
>>>>>>>>>> I managed to query the destination user to get the attribute I 
>>>>>>>>>> want from the user ... WOHOO :-)
>>>>>>>>>> Yet everythin after fails
>>>>>>>>>>
>>>>>>>>>> Here is what I cooked up:
>>>>>>>>>>
>>>>>>>>>>         <actions>
>>>>>>>>>>             <do-set-local-variable name="VAR_DN" scope="policy">
>>>>>>>>>>                 <arg-string>
>>>>>>>>>>                     <token-dest-dn/>
>>>>>>>>>>                 </arg-string>
>>>>>>>>>>             </do-set-local-variable>
>>>>>>>>>>             <do-set-local-variable name="VAR_RESULT" 
>>>>>>>>>> scope="policy">
>>>>>>>>>>                 <arg-node-set>
>>>>>>>>>>                     <token-xpath 
>>>>>>>>>> expression="query:search($destQueryProcessor, 
>>>>>>>>>> 'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')"/>
>>>>>>>>>>                 </arg-node-set>
>>>>>>>>>>             </do-set-local-variable>
>>>>>>>>>>             <do-for-each>
>>>>>>>>>>                 <arg-node-set>
>>>>>>>>>>                     <token-xpath 
>>>>>>>>>> expression='$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value'/>
>>>>>>>>>>                 </arg-node-set>
>>>>>>>>>>                 <arg-actions>
>>>>>>>>>>                     <do-set-local-variable 
>>>>>>>>>> name="VAR_STATUS_TEMP" scope="policy">
>>>>>>>>>>                         <arg-string>
>>>>>>>>>>                             <token-xpath 
>>>>>>>>>> expression="substring-after($VAR_RESULT/attr[@attr-name=&quot;ROCECrebo&quot;]/value,&apos;-&apos;)"/> 
>>>>>>>>>>
>>>>>>>>>>                         </arg-string>
>>>>>>>>>>                     </do-set-local-variable>
>>>>>>>>>>                     <do-set-local-variable 
>>>>>>>>>> name="VAR_STATUS_TEMP2" scope="policy">
>>>>>>>>>>                         <arg-string>
>>>>>>>>>>                             <token-xpath 
>>>>>>>>>> expression="concat($VAR_STATUS_TEMP2,$VAR_STATUS_TEMP)"/>
>>>>>>>>>>                         </arg-string>
>>>>>>>>>>                     </do-set-local-variable>
>>>>>>>>>>                     <do-trace-message level="0">
>>>>>>>>>>                         <arg-string>
>>>>>>>>>>                             <token-text 
>>>>>>>>>> xml:space="preserve">BLA BLA BLA  </token-text>
>>>>>>>>>>                             <token-local-variable 
>>>>>>>>>> name="VAR_STATUS_TEMP2"/>
>>>>>>>>>>                         </arg-string>
>>>>>>>>>>                     </do-trace-message>
>>>>>>>>>>                 </arg-actions>
>>>>>>>>>>             </do-for-each>
>>>>>>>>>>             <do-veto/>
>>>>>>>>>>         </actions>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> This is the trace result:
>>>>>>>>>> 01/22/08 20:21:58.178]:HR_CSV PT:Applying command 
>>>>>>>>>> transformation policies.
>>>>>>>>>> [01/22/08 20:21:58.179]:HR_CSV PT:Applying policy: 
>>>>>>>>>> %+C%14CTEST%-C.
>>>>>>>>>> [01/22/08 20:21:58.180]:HR_CSV PT:  Applying to modify #1.
>>>>>>>>>> [01/22/08 20:21:58.180]:HR_CSV PT:    Evaluating selection 
>>>>>>>>>> criteria for rule 'TEST'.
>>>>>>>>>> [01/22/08 20:21:58.183]:HR_CSV PT:      (if-op-attr 
>>>>>>>>>> 'ROCEcrebo' available) = TRUE.
>>>>>>>>>> [01/22/08 20:21:58.183]:HR_CSV PT:    Rule selected.
>>>>>>>>>> [01/22/08 20:21:58.184]:HR_CSV PT:    Applying rule 'TEST'.
>>>>>>>>>> [01/22/08 20:21:58.184]:HR_CSV PT:      Action: 
>>>>>>>>>> do-set-local-variable("VAR_DN",scope="policy",token-dest-dn()).
>>>>>>>>>> [01/22/08 20:21:58.184]:HR_CSV PT:        
>>>>>>>>>> arg-string(token-dest-dn())
>>>>>>>>>> [01/22/08 20:21:58.186]:HR_CSV PT:          token-dest-dn()
>>>>>>>>>> [01/22/08 20:21:58.187]:HR_CSV PT:            Token Value: 
>>>>>>>>>> "\EDIR_001\novell\IDM\ROCE\PS100011".
>>>>>>>>>> [01/22/08 20:21:58.188]:HR_CSV PT:          Arg Value: 
>>>>>>>>>> "\EDIR_001\novell\IDM\ROCE\PS100011".
>>>>>>>>>> [01/22/08 20:21:58.188]:HR_CSV PT:      Action: 
>>>>>>>>>> do-set-local-variable("VAR_RESULT",scope="policy",arg-node-set(token-xpath("query:search($destQueryProcessor, 
>>>>>>>>>> 'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')"))).
>>>>>>>>>> [01/22/08 20:21:58.191]:HR_CSV PT: 
>>>>>>>>>> arg-node-set(token-xpath("query:search($destQueryProcessor, 
>>>>>>>>>> 'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')"))
>>>>>>>>>> [01/22/08 20:21:58.192]:HR_CSV PT: 
>>>>>>>>>> token-xpath("query:search($destQueryProcessor, 
>>>>>>>>>> 'user','',$VAR_DN, 'User', '','', 'ROCEcrebo')")
>>>>>>>>>> [01/22/08 20:21:58.194]:HR_CSV PT:            Query from policy
>>>>>>>>>> [01/22/08 20:21:58.194]:HR_CSV PT:
>>>>>>>>>> <nds dtdversion="3.5" ndsversion="8.x">
>>>>>>>>>>   <source>
>>>>>>>>>>     <product version="3.5.1.20070411 ">DirXML</product>
>>>>>>>>>>     <contact>Novell, Inc.</contact>
>>>>>>>>>>   </source>
>>>>>>>>>>   <input>
>>>>>>>>>>     <query class-name="User" 
>>>>>>>>>> dest-dn="\EDIR_001\novell\IDM\ROCE\PS100011" scope="user">
>>>>>>>>>>       <search-class class-name="User"/>
>>>>>>>>>>       <read-attr attr-name="ROCEcrebo"/>
>>>>>>>>>>     </query>
>>>>>>>>>>   </input>
>>>>>>>>>> </nds>
>>>>>>>>>> [01/22/08 20:21:58.199]:HR_CSV PT:            Pumping XDS to 
>>>>>>>>>> eDirectory.
>>>>>>>>>> [01/22/08 20:21:58.199]:HR_CSV PT:            Performing 
>>>>>>>>>> operation query for \EDIR_001\novell\IDM\ROCE\PS100011.
>>>>>>>>>> [01/22/08 20:21:58.204]:HR_CSV PT:            Query from 
>>>>>>>>>> policy result
>>>>>>>>>> [01/22/08 20:21:58.206]:HR_CSV PT:
>>>>>>>>>> <nds dtdversion="3.5" ndsversion="8.x">
>>>>>>>>>>   <source>
>>>>>>>>>>     <product version="3.5.1.20070411 ">DirXML</product>
>>>>>>>>>>     <contact>Novell, Inc.</contact>
>>>>>>>>>>   </source>
>>>>>>>>>>   <output>
>>>>>>>>>>     <instance class-name="User" event-id="0" 
>>>>>>>>>> qualified-src-dn="O=novell\OU=IDM\OU=ROCE\CN=PS100011" 
>>>>>>>>>> src-dn="\EDIR_001\novell\IDM\ROCE\PS100011" src-entry-id="33472">
>>>>>>>>>>       <association state="associated"></association>
>>>>>>>>>>       <attr attr-name="ROCEcrebo">
>>>>>>>>>>         <value timestamp="1201028721#15" 
>>>>>>>>>> type="string">001-I</value>
>>>>>>>>>>         <value timestamp="1201029408#6" 
>>>>>>>>>> type="string">003-M</value>
>>>>>>>>>>         <value timestamp="1201029408#7" 
>>>>>>>>>> type="string">002-D</value>
>>>>>>>>>>       </attr>
>>>>>>>>>>     </instance>
>>>>>>>>>>     <status event-id="0" level="success"></status>
>>>>>>>>>>   </output>
>>>>>>>>>> </nds>
>>>>>>>>>> [01/22/08 20:21:58.214]:HR_CSV PT:          Token Value: 
>>>>>>>>>> {<instance> @class-name = "User" @event-id = "0" 
>>>>>>>>>> @qualified-src-dn = "O=novell\OU=IDM\OU=ROCE\CN=PS100011" 
>>>>>>>>>> @src-dn = "\EDIR_001\novell\IDM\ROCE\PS100011" @src-entry-id = 
>>>>>>>>>> "33472"}.
>>>>>>>>>> [01/22/08 20:21:58.216]:HR_CSV PT:          Arg Value: 
>>>>>>>>>> {<instance> @class-name = "User" @event-id = "0" 
>>>>>>>>>> @qualified-src-dn = "O=novell\OU=IDM\OU=ROCE\CN=PS100011" 
>>>>>>>>>> @src-dn = "\EDIR_001\novell\IDM\ROCE\PS100011" @src-entry-id = 
>>>>>>>>>> "33472"}.
>>>>>>>>>> [01/22/08 20:21:58.219]:HR_CSV PT:      Action: 
>>>>>>>>>> do-for-each(arg-node-set(token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value"))). 
>>>>>>>>>>
>>>>>>>>>> [01/22/08 20:21:58.219]:HR_CSV PT: 
>>>>>>>>>> arg-node-set(token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value")) 
>>>>>>>>>>
>>>>>>>>>> [01/22/08 20:21:58.220]:HR_CSV PT: 
>>>>>>>>>> token-xpath("$VAR_RESULT/attr[@attr-name="ROCECrebo"]/value")
>>>>>>>>>> [01/22/08 20:21:58.222]:HR_CSV PT:          Token Value: {}.
>>>>>>>>>> [01/22/08 20:21:58.222]:HR_CSV PT:          Arg Value: {}.
>>>>>>>>>> [01/22/08 20:21:58.223]:HR_CSV PT:      Action: do-veto().
>>>>>>>>>> [01/22/08 20:21:58.224]:HR_CSV PT:Policy returned:
>>>>>>>>>> [01/22/08 20:21:58.224]:HR_CSV PT:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> TIps and hints are highly appreciated!
>>>>>>>>>>
>>>>>>>>>> Cheers,
>>>>>>>>>> Londo
0
Dennis
1/23/2008 6:15:39 PM
Reply:

Similar Artilces:

Mutli-valued attribute to multi-valued attribute
We want to synchronize a multi-valued attribute (created by our own) to a multi-valued attribute in the other edirectory store. But when we are adding attributes we only have the changed values. The previous one is lost. When deleting one value in the Identity Vault then it removes the attribute from the object. Any ideas ? > We want to synchronize a multi-valued attribute (created by our own) to a > multi-valued attribute in the other edirectory store. But when we are > adding attributes we only have the changed values. The previous one is > lost. When deleting ...

Single Value to Multi Value attribute
Hi all I have an attribute 'source', in my eDirectory dn: cn=schema changetype: modify add: attributeTypes attributeTypes: ( source-oid NAME 'source' DESC 'to capture the source where the user or group is pulled from' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE ) - I need to modify this attribute from Single valued to Multi-value attribute, - I also need to modify the name of this attribute from 'source' to 'uniqueSource' can any one please give me the exact syntax for the the above modifications ...

One attribute value to two attributes/ values in eDir
Collective, I have a very interesting issue. I have the need to break one attribute that is in AD (ADval1) to two attributes in eDir (attrval1 and attrval2) . Basically what I want to do is take ADval1 and break that data into the two other attributes, attrval1 and attrval2. The attribute in AD looks like this: AD attribute value data 1 | value data 2 In eDir it looks like this: eDir attribute 1 vlaue data 1 eDir attribute 2 value data 2 I don't know if that's clear, when it was explained to me it was a white board. Has anyone tried this or have any id...

ID-Provider Driver
Novell Identity Manager 3.6 Windows Server 2003 R2 eDirectoy 8.8. SP3 Hi I want to develop a ID-policy based on followin rules: Prefix-GivenName[1]Surname[1]-AutoIcremnetNumber And these policies will be consumed by ID-Client(Identity Manager). So long , I have created ID Provider-driver, and configured it to be run as a RMI server (without ID Generation-Map) and Without defining Attributes in the ID-provider driver Filter. And I have created a NULL driver with some policies which invokes id:getNextID() method to get a Unique ID for newly created users. But my...

Single Value Field to MultiValue Field - Reverse Multi to Single storing all Values
Hi All I have implemented a rule that converts the multivalued Description field to a single valued field in AD (See Attached rule) James Miller - Dec 2004 << Mario Kardum - 10 Feb 2004 << Amanda Saintsbury - June 2005 << The result is as above All good so far. Now I want to create a rule to break up and replace the single value field above to a EDir multivalue Field James Miller - Dec 2004 Mario Kardum - 10 Feb 2004 Amanda Saintsbury - June 2005 I presume I need to use XPATH to create the Multivalue entries Does anyone have an idea? Regards ...

Single Value Field to MultiValue Field - Reverse Multi to Single storing all Values
begin 644 rule.txt M"3QR=6QE/@T*"0D\9&5S8W)I<'1I;VX^57-E<B`M(&-O;G9E<G0@;75L=&DM M=F%L=65D($1E<V-R:7!T:6]N('1O('-I;F=L92!V86QU92`F;'0[)FQT.R!S M97!A<F%T960\+V1E<V-R:7!T:6]N/@T*"0D\8V]N9&ET:6]N<SX-"@D)"3QO M<CX-"@D)"0D\:68M8VQA<W,M;F%M92!O<#TB97%U86PB/E5S97(\+VEF+6-L M87-S+6YA;64^#0H)"0D)/&EF+6-L87-S+6YA;64@;W`](F5Q=6%L(CY'<F]U M<#PO:68M8VQA<W,M;F%M93X-"@D)"3PO;W(^#0H)"0D\;W(^#0H)"0D)/&EF M+6]P+6%T='(@;F%M93TB1&5S8W)I<'1I;VXB(&...

Converting single-valued attribute to normal (multi-valued)
In order to add additional attributes to a User object I have created an Auxiliary Class. Within that class I created a single-valued numeric string with an ASN1 ID. Due to changing requirements it is now necessary to change this attribute to a multi-valued case ignore string. I usually use Designer to do work such as this but, as I'm having some problems, what I describe here is done with iManager (to remove Designer from the equation). There was one object in my tree utilising this auxiliary class (we're still in development) which I have deleted. I then deleted the aux...

Setting multi-value attribute values to query results
I am writing a policy where I need to run a query to get a list of one or more DNs, then place those DNs as the values of a multi-valued attribute in my destination datasource. How do I do this? Can I use the do-add-dest-attr-value action and just specify the query as the values to add, or do I need to place the results of the query in a local variable and do something with that? I'm using IDM 3.5. Here is the query that I'm running: <token-query class-name="Locality"> <arg-dn> <token-parse-dn dest-dn-format="dest-dn" src-dn-form...

superreview requested: [Bug 199959] Attribute.specified isn't true when attribute set through Attribute.value='string' : [Attachment 320744] possible patch
Smaug <Olli.Pettay@gmail.com> has asked for superreview: Bug 199959: Attribute.specified isn't true when attribute set through Attribute.value='string' https://bugzilla.mozilla.org/show_bug.cgi?id=199959 Attachment 320744: possible patch https://bugzilla.mozilla.org/attachment.cgi?id=320744&action=edit ------- Additional Comments from Smaug <Olli.Pettay@gmail.com> You could have sr'd too ;) Thanks. ...

superreview granted: [Bug 199959] Attribute.specified isn't true when attribute set through Attribute.value='string' : [Attachment 320744] possible patch
Boris Zbarsky (very little time until July 7) <bzbarsky@mit.edu> has granted Smaug <Olli.Pettay@gmail.com>'s request for superreview: Bug 199959: Attribute.specified isn't true when attribute set through Attribute.value='string' https://bugzilla.mozilla.org/show_bug.cgi?id=199959 Attachment 320744: possible patch https://bugzilla.mozilla.org/attachment.cgi?id=320744&action=edit ------- Additional Comments from Boris Zbarsky (very little time until July 7) <bzbarsky@mit.edu> Meh. ...

How to tell if an Attribute can hold multi-valued or single valued
Anyone know? If it already populated with data, it is easy to tell. But what if it does not have data? How can you tell? thanks, lee franke You would have to check the schema programatically. There is an attribute on the schema called 'isSingleValued' that will tell you if the attribute is multi-valued or not. MSDN LinkRyan DunnWeblog The BookLDAP Programming Help...

AD Single Value to eDir MultiValued Attributes
Hello, I have eDir syncing with AD 2003 using dirxml 2.0.1 (I know, we should be upgrading soon). I have Multi-valued syncing into AD single valued attributes fine using the �for each� action. The issue I have is syncing AD single values back into eDir MultiValued attributes. Is there anyway using Dirxml I can convert a single string attribute to a multiValued attribute? So for example: Attr = givenName Value = Richard, Rich Convert that to Attr = givenName Value = Richard Value = Rich Thanks in advance guys. Cheers Jim -- forrrestj ----------------...

Multi-valued attribute to single attribute conversion
Afternoon Everyone! I have been trying to use the default rule in the AD driver to strip multi-valued attributes but for a modify operation but without any luck. I made a copy and put it in the Command Transformation. Would someone please give me asome pinters. I keep getting LDap Error 21, Invalid syntax. Error in attribute conversion operation. Here is the rule I am attempting using: <rule> <description>Convert multi-valued Telephone to single value</description> <conditions> <and> <if-operation op="equal">modify<...

ED-ED Driver | Multivalued CN attribute resets to old value
Hi I have ED-ED driver to sync user data from server A to server B. In server A, I store 2 attributes a1, a2 out of which a1 is the CN on server. In server B, driver stores both a1 and a2 in the CN attribute. This works fine. But as soon as, the user object is *moved * in server A, the CN attribute in server B resets to a1 *(a2 is lost)*. Directory structure in both the servers is different, so as a result of move operation in server A there i no move operation in server B. Even if, I add a veto statement in the event transformation policy in the driver on server B, the...

Web resources about - Query a multivalued attribute and store part of each value in a single valued string/attribute - novell.id-manager.drivers

Multivalued function - Wikipedia, the free encyclopedia
In the strict sense, a "well-defined" function associates one, and only one, output to any particular input. The term "multivalued function" ...

Inverse function - Wikipedia, the free encyclopedia
In mathematics , an inverse function is a function that undoes another function: If an input x into the function ƒ produces an output y , then ...

Introduction : Boolean Algebra
Mathematical rules are based on the defining limits we place on the particular numerical quantities dealt with. When we say that 1 + 1 = 2 or ...

apprupt for Publishers - apprupt
With our innovative app recommendation formats we enable publishers to provide their users relevant and multivalued apps. By integrating our ...

Overview
Easy Branches Welcome to Easy Branches the Network of entertainment and Internet Marketing Easy Branches has been working on the internet service ...

Electronic digital logic circuitry inventions May - archived by USPTO category
Freshpatents.com offers information on a variety of new patent applications, updated each week - check out Electronic digital logic circuitry ...


Design Tip #166 Potential Bridge (Table) Detours
Tweet Get the latest Design Tip! Home Consulting DW/BI Strategy Assessments Business Requirements Dimensional Modeling Design Review DW/BI Project ...

JewelCli Documentation - Lexical Scope
Lexical Scope software engineering Search Main menu Skip to primary content Skip to secondary content Home JewelCli Documentation JewelCli Documentation ...

ORA Canada Bibliography
Authors A to B. The ORA Canada Bibliography of Automated Deduction cites over 3,000 reports and papers.

Resources last updated: 12/8/2015 9:22:11 PM