On Tuesday 27 September 2011 20:26:43 Marcio Ricardo Schneider wrote:
> Hi folks, I need some help here.
> 
> I'm synchronizing groups from LDAP to AD. When I try to replicate two
> attributes "mailalternateaddress" and "mail" to active directory
> "proxyAddresses" attribute I'm getting the error:
> 
> 
> ERROR - Error while synchronizing ID {uid=accenture_incidentes_terceiros}:
> org.mozilla.javascript.EvaluatorException: missing ; before statement
> (<cmd>#1)
> 
> I'm trying to insert a string inside an array with "push".
> 
> Below it's the relevant config:
> 
> lsc.syncoptions.replica_ListasEmail.proxyAddresses.action = F
> lsc.syncoptions.replica_ListasEmail.proxyAddresses.force_value = \
> 
>                 var  MailAlternateAddress =
> srcBean.getAttributeValuesById("mailalternateaddress").toArray() ; \
> 
>                 for (var k=0; k < MailAlternateAddress.length; k++ )  { \
>                                MailAlternateAddress[k] = "SMTP:" +
> MailAlternateAddress[k]  \ }   \
> 
>                
> MailAlternateAddress.push(srcBean.getAttributeFirstValueById("mail")) \

Try adding a ";" at the end of this line, like this :

 MailAlternateAddress.push(srcBean.getAttributeFirstValueById("mail")) ; \


> 
>                 MailAlternateAddress
> 
> 
> Thank you in advance!
> 


-- 
Xavier Montagutelli                      Tel : +33 (0)5 55 45 77 20
Service Commun Informatique              Fax : +33 (0)5 55 45 75 95
Universite de Limoges
123, avenue Albert Thomas
87060 Limoges cedex
_______________________________________________________________
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