Hi Xavier,

Try

lsc.syncoptions.mytask.mail.force_value  = \
 var email = srcBean.getAttributeFirstValueById("mail"); \
 email.replace("abc", "xyz")

or

lsc.syncoptions.mytask.mail.force_value  = \
 var email = srcBean.getAttributeFirstValueById("mail"); \
 email=email.replace("abc", "xyz"); \
 email

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



2011/11/15 Xavier Montagutelli <[email protected]>

> Hello list,
>
> I have a problem modifying an attribute with LSC (version 1.2.1).
>
>
> lsc.syncoptions.mytask.mail.force_value  =
> srcBean.getAttributeFirstValueById("mail").replace("abc", "xyz")
>
> works, whereas :
>
> lsc.syncoptions.mytask.mail.force_value  = \
>  var email = srcBean.getAttributeFirstValueById("mail"); \
>  email.replace("abc", "xyz"); \
>  email
>
> doesn't work. What's the difference ?
>
> Any help appreciated ...
>
>
> --
> Xavier Montagutelli
> http://twitter.com/#!/XMontagutelli
> Service Commun Informatique - Universite de Limoges
> 123, avenue Albert Thomas - 87060 Limoges cedex
> Tel : +33 (0)5 55 45 77 20 /   Fax : +33 (0)5 55 45 75 95
> _______________________________________________________________
> 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