Sorry David but it should work (and works for me :).

Can you give a try through your Eclipse debugger, breakpoint
and cloneSrcBean method inside BeanComparator to look at the srcBean value
to check that it really contains the "uid" attribute
and ScriptingEvaluator.evalToString method call returns what you are
looking for ?

Kind regards,
-- 
Sebastien BAHLOUL
IAM / Security specialist
Ldap Synchronization Connector : http://lsc-project.org
Blog : http://sbahloul.wordpress.com/



2012/4/20 David Coutadeur <[email protected]>

>
> Hi everybody,
>
> I am trying to synchronize 2 openldap directories, but I have some
> difficulties to deal with the mainIdentifier.
> My configuration is below. The problem is that the
> srcBean.getDatasetFirstValueById("uid") does not seem to be converted to
> my uid value. I tryed to replace uid by any other attribute, the problem
> is persisting.
>
> Does anybody has an explanation ?
>
> Thanks,
> D.C.
>
>      <ldapSourceService>
>        <name>ldap-src-service</name>
>        <connection reference="ldap-src-conn" />
>        <baseDn>ou=people,ou=organization,c=fr</baseDn>
>        <pivotAttributes>
>          <string>myUniqueId</string>
>        </pivotAttributes>
>        <fetchedAttributes>
>          <string>cn</string>
>          <string>sn</string>
>          <string>objectClass</string>
>          <string>uid</string>
>          <string>myUniqueId</string>
>        </fetchedAttributes>
>        <getAllFilter>(objectClass=inetorgperson)</getAllFilter>
>
>
> <getOneFilter>(&amp;(objectClass=inetorgperson)(myUniqueId={myUniqueId}))</getOneFilter>
>      </ldapSourceService>
>
>
>
>      <propertiesBasedSyncOptions>
>        <mainIdentifier>"uid=" + srcBean.getDatasetFirstValueById("uid")
> + ",ou=people,ou=organization,c=fr"</mainIdentifier>
> _______________________________________________________________
> Ldap Synchronization Connector (LSC) - http://lsc-project.org
>
> lsc-users mailing list
> [email protected]
> http://lists.lsc-project.org/listinfo/lsc-users
>
_______________________________________________________________
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