Hi Clement,

thx, it works.

Regards

Uwe



Clément OUDOT schrieb:
2015-04-24 9:56 GMT+02:00 Uwe Faber <[email protected]>:
Hi,

so i had forget to set the sAMAccountName for groups in my slc script, the
result is that in AD the Attribut has an numeric Value.

So ichanged my group script:


  <ldapDestinationService>
         <name>group-dst-service</name>
         <connection reference="AD" />
         <baseDn>cn=users,dc=zkmdom,dc=zkm,dc=de</baseDn>
         <pivotAttributes>
           <string>cn</string>
         </pivotAttributes>
         <fetchedAttributes>
           <string>cn</string>
           <string>description</string>
           <string>member</string>
           <string>objectClass</string>
          <string>sAMAccountName</string>
         </fetchedAttributes>
         <getAllFilter><![CDATA[(&
(objectClass=group)(!(isCriticalSystemObject=true))) ]]></getAllFilter>
<getOneFilter><![CDATA[(&(objectClass=group)(cn={cn}))]]></getOneFilter>
       </ldapDestinationService>


and the sync options


<propertiesBasedSyncOptions>
                 <mainIdentifier>"CN="
+srcBean.getDatasetFirstValueById("cn")
+",cn=users,dc=zkmdom,dc=zkm,dc=de"</mainIdentifier>
                  <defaultDelimiter>$</defaultDelimiter>
                 <defaultPolicy>FORCE</defaultPolicy>

                 <conditions>
                   <create>true</create>
                   <update>true</update>
                   <delete>true</delete>
                   <changeId>true</changeId>
                 </conditions>


and  the dataset


                 <dataset>
                     <name>samaccountname</name>
                     <policy>KEEP</policy>
                      <createValues>
<string>js:srcBean.getDatasetFirstValueById("cn")</string>
                        </createValues>
                 </dataset>




But the value will not be updated, i must delete the group entry, then it
works.


What is wrong ?

As you set "KEEP" in policy, LSC will not update the attribute, it
will just set the value when the entry is created.

To update the value, set policy to "FORCE" and replace createValues by
forceValues.


Clément.


--
Uwe Faber
Leiter | Head of Department
EDV-Abteilung | IT-Department

///////  / |<  ||| | ZKM | Zentrum für Kunst und Medientechnologie Karlsruhe
///////  / |<  ||| | ZKM | Center for Art and Media Karlsruhe
/////// / |< ||| | ZKM | Centre d'Art et de Technologie des Médias Karlsruhe

Lorenzstr. 19, D-76135 Karlsruhe
Tel +49-(0)721-8100-1112, Fax +49-(0)721-8100-1229
E-Mail: [email protected]
www.zkm.de

GLOBALE. Das neue Kunstereignis im digitalen Zeitalter. <http://www.dieglobale.de>

Eröffnungswochenende <http://www.dieglobale.de>: 19. bis 21.06.2015
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users

Reply via email to