[lsc-users] RES: Problem merging two attributes to one

Marcio Ricardo Schneider marcio_schneider at sicredi.com.br
Thu Sep 29 22:50:49 CEST 2011


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"));\

                MailAlternateAddress




Thanks!

De: Sébastien Bahloul [mailto:sebastien.bahloul at gmail.com]
Enviada em: quinta-feira, 29 de setembro de 2011 17:35
Para: Marcio Ricardo Schneider
Cc: lsc-users at lists.lsc-project.org
Assunto: Re: [lsc-users] Problem merging two attributes to one

Can you paste the new javascript expression ?

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


2011/9/29 Marcio Ricardo Schneider <marcio_schneider at sicredi.com.br<mailto:marcio_schneider at sicredi.com.br>>
Sorry folks, the email was stuck on my antispam system.

Now the error is:

C:\lsc-1.2.1\bin>lsc.bat -f c:\lsc-1.2.1\etc -s replica_ListasEmail
Sep 29 16:46:35 - INFO  - Starting sync for replica_ListasEmail
Sep 29 16:46:35 - INFO  - Connecting to LDAP server ldap://172.23.0.79:389/dc=sicredi,dc=com,dc=br<http://172.23.0.79:389/dc=sicredi,dc=com,dc=br> anonymously
Sep 29 16:46:36 - INFO  - Connecting to LDAP server ldap://172.23.134.52:389/DC=sicredi-hom,DC=net,DC=br<http://172.23.134.52:389/DC=sicredi-hom,DC=net,DC=br> as CN=administrator,CN=Users,DC=sicredi-hom,DC=net,DC=br

Sep 29 16:46:37 - ERROR - Error while synchronizing ID {uid=accenture_incidentes_terceiros}: org.mozilla.javascript.EvaluatorException: Java class "java.lang.Object" has no public instance field or method named "1". (<cmd>#1)Sep 29 16:46:37 - ERROR - All entries: 1, to modify entries: 0, modified entries: 0, errors: 1

De: Sébastien Bahloul [mailto:sebastien.bahloul at gmail.com<mailto:sebastien.bahloul at gmail.com>]
Enviada em: quinta-feira, 29 de setembro de 2011 16:41
Para: Marcio Ricardo Schneider
Cc: lsc-users at lists.lsc-project.org<mailto:lsc-users at lists.lsc-project.org>
Assunto: Re: [lsc-users] Problem merging two attributes to one

Hi Marcio,

Does Xavier's answer solve your issue ?

Regards,

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

2011/9/28 Xavier Montagutelli <xavier.montagutelli at unilim.fr<mailto:xavier.montagutelli at unilim.fr>>
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<tel:%2B33%20%280%295%2055%2045%2077%2020>
Service Commun Informatique              Fax : +33 (0)5 55 45 75 95<tel:%2B33%20%280%295%2055%2045%2075%2095>
Universite de Limoges
123, avenue Albert Thomas
87060 Limoges cedex
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
lsc-users at lists.lsc-project.org<mailto:lsc-users at lists.lsc-project.org>
http://lists.lsc-project.org/listinfo/lsc-users


As informacoes contidas neste e-mail e anexos podem ser confidenciais e privilegiadas, protegidas por sigilo legal. Qualquer forma de utilizacao deste documento depende de autorizacao do emissor, sujeito as penalidades cabiveis. O emissor utiliza o recurso somente para fins profissionais, eximindo o empregador de responsabilidades por uso pessoal ou improprio. Se esta mensagem foi recebida por engano, o conteudo deve ser apagado e o remetente avisado imediatamente, atraves de resposta a este e-mail.



As informacoes contidas neste e-mail e anexos podem ser confidenciais e privilegiadas, protegidas por sigilo legal. Qualquer forma de utilizacao deste documento depende de autorizacao do emissor, sujeito as penalidades cabiveis. O emissor utiliza o recurso somente para fins profissionais, eximindo o empregador de responsabilidades por uso pessoal ou improprio. Se esta mensagem foi recebida por engano, o conteudo deve ser apagado e o remetente avisado imediatamente, atraves de resposta a este e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lsc-project.org/pipermail/lsc-users/attachments/20110929/f574da4e/attachment.htm>


More information about the lsc-users mailing list