Jehan,

Thank You for your response. I tried your example file (Thank you Again for
that) and with a few modifications it works.

Thank You Everyone for your great help.

Regards,
Robert




On Tue, Apr 18, 2017 at 11:59 AM, <[email protected]>
wrote:

> Send lsc-users mailing list submissions to
>         [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users
> or, via email, send a message with subject or body 'help' to
>         [email protected]
>
> You can reach the person managing the list at
>         [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of lsc-users digest..."
>
>
> Today's Topics:
>
>    1. Re: Users Being removed to Ldap to LDPA sync. (Soisik Froger)
>    2. Re: Users Being removed to Ldap to LDPA sync. (Jehan Procaccia)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 18 Apr 2017 16:26:51 +0200
> From: Soisik Froger <[email protected]>
> To: [email protected]
> Subject: Re: [lsc-users] Users Being removed to Ldap to LDPA sync.
> Message-ID:
>         <[email protected]>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Hi Robert,
>
> 1460 [MySyncTask-15] ERROR org.lsc.utils.JScriptEvaluator - Fail to compute
> expression: srcBean.getDatasetFirstValueById(“person”)
> Reason: javax.script.ScriptException:
> sun.org.mozilla.javascript.internal.EvaluatorException: illegal character
>
> It seems you're have unrecognized character “ instead of proper " in the
> lsc.xml conf that have been used to output this log.
>
> You said your destination LDAP is empty, so I don't understand how you
> concluded users are being removed. Please give us more details on your
> analysis here. I don't see anything in the logs about destination users
> being removed.
>
> Soisik
>
> On 18/04/2017 15:51, Robert Czipo wrote:
> > Hello Everyone,
> >
> > I posted here yesterday about Users being removed in my ldap to ldap
> sync, and didn't get a response. I'm trying to populate an empthy ldap from
> a populated one, and the Destination ldap user(s) are being removed. Can
> anyone help me out with this.
> >
> > Thank You,
> > Robert
> >
> > 1248 [main] INFO  o.a.d.a.l.c.s.CodecFactoryUtil - Registered pre-bundled
> > extended operation factory: 1.3.6.1.4.1.4203.1.11.3
> > 1249 [main] INFO  o.a.d.a.l.c.s.CodecFactoryUtil - Registered pre-bundled
> > extended operation factory: 1.3.6.1.4.1.1466.20037
> > 1257 [main] INFO  org.lsc.jndi.JndiServices - Connecting to LDAP server
> > ldap://ldap01.testld.org:389/ou=People,dc=testld,dc=org <
> http://ldap01.testld.org:389/ou=People,dc=testld,dc=org> as cn=Directory
> > Manager
> > 1263 [main] INFO  lsc.destination - Starting sync for MySyncTask
> > 1416 [MySyncTask-15] DEBUG org.lsc.beans.BeanComparator - In object
> > "cn=Test User,ou=People,dc=testld,dc=org":  List of attributes
> considered
> > for writing in destination: [mail, person, sn, cn, objectClass]
> > 1417 [MySyncTask-15] DEBUG org.lsc.beans.BeanComparator - In object
> > "cn=Test User,ou=People,dc=testld,dc=org":  Attribute "mail" is in FORCE
> > status
> > 1417 [MySyncTask-15] DEBUG org.lsc.beans.BeanComparator - In object
> > "cn=Test User,ou=People,dc=testld,dc=org":  Adding attribute "mail" with
> > values [[email protected] <mailto:[email protected]>]
> > 1417 [MySyncTask-15] DEBUG org.lsc.beans.BeanComparator - In object
> > "cn=Test User,ou=People,dc=testld,dc=org":  Attribute "person" is in
> FORCE
> > status
> >
> > 1460 [MySyncTask-15] ERROR org.lsc.utils.JScriptEvaluator - Fail to
> compute
> > expression: srcBean.getDatasetFirstValueById(“person”) on
> > id=cn=test.user,ou=Secure,ou=MIS,ou=People,dc=testld,dc=org
> > Reason: javax.script.ScriptException:
> > sun.org.mozilla.javascript.internal.EvaluatorException: illegal
> character
> > (<Unknown source>#5) in <Unknown source> at line number 5
> >
> > 1469 [MySyncTask-17] DEBUG org.lsc.utils.JScriptEvaluator -
> > javax.script.ScriptException:
> > sun.org.mozilla.javascript.internal.EvaluatorException: illegal
> character
> > (<Unknown source>#5) in <Unknown source> at line number 5
> > javax.script.ScriptException:
> > sun.org.mozilla.javascript.internal.EvaluatorException: illegal
> character
> > (<Unknown source>#5) in <Unknown source> at line number 5
> >         at com.sun.script.javascript.RhinoScriptEngine.eval(Unknown
> Source)
> > ~[na:1.6.0_17]
> >         at com.sun.script.javascript.RhinoScriptEngine.eval(Unknown
> Source)
> > ~[na:1.6.0_17]
> >         at javax.script.AbstractScriptEngine.eval(Unknown Source)
> > ~[na:1.6.0_17]
> >         at
> > org.lsc.utils.JScriptEvaluator.instanceEval(JScriptEvaluator.java:222)
> > [lsc-core-2.1.3.jar:na]
> >         at
> > org.lsc.utils.JScriptEvaluator.evalToStringList(
> JScriptEvaluator.java:119)
> > [lsc-core-2.1.3.jar:na]
> >         at
> > org.lsc.utils.ScriptingEvaluator.evalToStringList(
> ScriptingEvaluator.java:136)
> > [lsc-core-2.1.3.jar:na]
> >         at
> > org.lsc.beans.BeanComparator.getValuesToSet(BeanComparator.java:602)
> > [lsc-core-2.1.3.jar:na]
> >         at
> > org.lsc.beans.BeanComparator.getUpdatedObject(BeanComparator.java:284)
> > [lsc-core-2.1.3.jar:na]
> >
> >
> > LSC.XML FILE
> >
> > <?xml version="1.0" ?>
> > <lsc xmlns="http://lsc-project.org/XSD/lsc-core-2.1.xsd <
> http://lsc-project.org/XSD/lsc-core-2.1.xsd>" revision="0">
> >   <connections>
> >     <ldapConnection>
> >       <name>src-ldap</name>
> >       <url>ldap://ldap01.tst.org:389/dc=testld,dc=org <
> http://ldap01.tst.org:389/dc=testld,dc=org></url>
> >       <username>cn=Directory Manager</username>
> >       <password>test</password>
> >       <authentication>SIMPLE</authentication>
> >       <referral>IGNORE</referral>
> >       <derefAliases>NEVER</derefAliases>
> >       <version>VERSION_3</version>
> >       <pageSize>-1</pageSize>
> >       <factory>com.sun.jndi.ldap.LdapCtxFactory</factory>
> >       <tlsActivated>false</tlsActivated>
> >       <saslMutualAuthentication>false</saslMutualAuthentication>
> >     </ldapConnection>
> >     <ldapConnection>
> >       <name>dst-ldap</name>
> >       <url>ldap://ldaptest.tst.org:389/dc=testld,dc=org <
> http://ldaptest.tst.org:389/dc=testld,dc=org></url>
> >       <username>cn=SSSD
> > Admin,ou=Secure,ou=MIS,ou=Hidden,dc=testld,dc=org</username>
> >       <password>test</password>
> >       <authentication>SIMPLE</authentication>
> >       <referral>IGNORE</referral>
> >       <derefAliases>NEVER</derefAliases>
> >       <version>VERSION_3</version>
> >       <pageSize>-1</pageSize>
> >       <factory>com.sun.jndi.ldap.LdapCtxFactory</factory>
> >       <tlsActivated>false</tlsActivated>
> >       <saslMutualAuthentication>false</saslMutualAuthentication>
> >     </ldapConnection>
> >   </connections>
> >   <audits/>
> >   <tasks>
> >     <task>
> >       <name>MySyncTask</name>
> >       <bean>org.lsc.beans.SimpleBean</bean>
> >       <ldapSourceService>
> >         <name>MySyncTask-src</name>
> >         <connection reference="src-ldap"/>
> >         <baseDn>dc=testld,dc=org</baseDn>
> >         <pivotAttributes>
> >         <string>cn</string>
> >         </pivotAttributes>
> >         <fetchedAttributes>
> >         <string>cn</string>
> >         <string>sn</string>
> >         <string>objectClass</string>
> >         </fetchedAttributes>
> >         <getAllFilter>(objectClass=top)</getAllFilter>
> >           <getOneFilter>(&amp;(objectClass=top)(cn={cn}))</getOneFilter>
> >           <cleanFilter>(&amp;(objectClass=top)(cn={cn}))</cleanFilter>
> >       </ldapSourceService>
> >       <ldapDestinationService>
> >         <name>MySyncTask-dst</name>
> >         <connection reference="dst-ldap"/>
> >         <baseDn>ou=Secure,ou=MIS,ou=People</baseDn>
> >         <pivotAttributes>
> >           <string>cn</string>
> >         </pivotAttributes>
> >         <fetchedAttributes>
> >           <string>cn</string>
> >           <string>sn</string>
> >           <string>objectClass</string>
> >         </fetchedAttributes>
> >         <getAllFilter>(objectClass=top)</getAllFilter>
> >         <getOneFilter>(&amp;(objectClass=top)(cn={cn}))</getOneFilter>
> >       </ldapDestinationService>
> >       <propertiesBasedSyncOptions>
> >         <mainIdentifier>"uid=" + srcBean.getDatasetFirstValueById("cn")
> +
> >             ",ou=Secure,ou=MIS,ou=People,dc=testld,dc=org"</
> mainIdentifier>
> >         <defaultDelimiter>;</defaultDelimiter>
> >         <defaultPolicy>KEEP</defaultPolicy>
> >         <dataset>
> >           <name>objectClass</name>
> >           <policy>KEEP</policy>
> >           <forceValues>
> >             <string>"inetOrgPerson"</string>
> >             <string>"inetuser"</string>
> >             <string>"person"</string>
> >             <string>"top"</string>
> >             <string>"cn"</string>
> >           </forceValues>
> >           <delimiter>,</delimiter>
> >         </dataset>
> >       </propertiesBasedSyncOptions>
> >     </task>
> >   </tasks>
> > </lsc>
> >
> > ------------------------------------------------------------
> ------------------------------------------------------------
> ------------------------------------------------------------
> ------------------------------------------------------------
> ------------------------------------------------------------
> ------------------------------------------------------------
> ------------------------------------------------------------
> ------------------------------------------------------------
> ------------------------------------------------------------
> ------------------------------------------------------------
> ------------------------------------------------------------
> ------------------------------------------------------------
> ------------------------------------------------------------
> ------------------------------------------------------------
> ------------------------------------------------------------
> ------------------------------------------------------------
> ------------------------------
> > UNFPA <http://www.unfpa.org/>
> >
> > <https://www.facebook.com/UNFPA>  <https://twitter.com/unfpa>  <
> https://instagram.com/unfpa/>  <https://www.linkedin.com/company/unfpa>  <
> https://www.youtube.com/user/unfpa>  <https://plus.google.com/+unfpa/posts>
> <http://visitor.r20.constantcontact.com/manage/optin?v=001-
> YNFZmXHhSP25d9kiBTi0ZxtEwaeIcM-UeLsaXPKYoHs5SAGE1WbNakIrfhkc_
> 3wTTkXkKXbHJpBnXtbqkTATg_O174jFAyLQdNkQkPKQAk=&MERGE0=>
> >
> >
> > _______________________________________________________________
> > Ldap Synchronization Connector (LSC) - http://lsc-project.org
> >
> > lsc-users mailing list
> > [email protected]
> > https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users
> >
>
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 18 Apr 2017 17:57:33 +0200
> From: Jehan Procaccia <[email protected]>
> To: [email protected]
> Subject: Re: [lsc-users] Users Being removed to Ldap to LDPA sync.
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="windows-1252"; Format="flowed"
>
> Hello,
>
> your problem seems to be here :
>
> 1460 [MySyncTask-15] ERROR org.lsc.utils.JScriptEvaluator - Fail to compute
> expression: srcBean.
> getDatasetFirstValueById(“person”) on
> id=cn=test.user,ou=Secure,ou=MIS,ou=People,dc=testld,dc=org
> Reason: javax.script.ScriptException:
> sun.org.mozilla.javascript.internal.EvaluatorException: illegal character
> (<Unknown source>#5) in <Unknown source> at line number 5
>
>
> either your expression in <propertiesBasedSyncOptions><mainIdentifier>
> is wrong or contains a typo ?
> I have a working exemple from ldap to ldap here :
> http://www-public.tem-tsp.eu/~procacci/dok/doku.php?id=
> docpublic:systemes:ldap:ldapolc#lsc_project_synchro
> lsc.xml file:
> http://www-public.tem-tsp.eu/~procacci/dok/lib/exe/fetch.
> php?media=docpublic:systemes:ldap:lsc.xml
>
> good luck .
>
> Le 18/04/2017 à 15:51, Robert Czipo a écrit :
> > Hello Everyone,
> >
> > I posted here yesterday about Users being removed in my ldap to ldap
> > sync, and didn't get a response. I'm trying to populate an empthy ldap
> > from a populated one, and the Destination ldap user(s) are being
> > removed. Can anyone help me out with this.
> >
> > Thank You,
> > Robert
> >
> > 1248 [main] INFO o.a.d.a.l.c.s.CodecFactoryUtil - Registered pre-bundled
> > extended operation factory: 1.3.6.1.4.1.4203.1.11.3
> > 1249 [main] INFO o.a.d.a.l.c.s.CodecFactoryUtil - Registered pre-bundled
> > extended operation factory: 1.3.6.1.4.1.1466.20037
> > 1257 [main] INFO org.lsc.jndi.JndiServices - Connecting to LDAP server
> > ldap://ldap01.testld.org:389/ou=People,dc=testld,dc=org
> > <http://ldap01.testld.org:389/ou=People,dc=testld,dc=org> as
> cn=Directory
> > Manager
> > 1263 [main] INFO lsc.destination - Starting sync for MySyncTask
> > 1416 [MySyncTask-15] DEBUG org.lsc.beans.BeanComparator - In object
> > "cn=Test User,ou=People,dc=testld,dc=org": List of attributes considered
> > for writing in destination: [mail, person, sn, cn, objectClass]
> > 1417 [MySyncTask-15] DEBUG org.lsc.beans.BeanComparator - In object
> > "cn=Test User,ou=People,dc=testld,dc=org": Attribute "mail" is in FORCE
> > status
> > 1417 [MySyncTask-15] DEBUG org.lsc.beans.BeanComparator - In object
> > "cn=Test User,ou=People,dc=testld,dc=org": Adding attribute "mail" with
> > values [[email protected] <mailto:[email protected]>]
> > 1417 [MySyncTask-15] DEBUG org.lsc.beans.BeanComparator - In object
> > "cn=Test User,ou=People,dc=testld,dc=org": Attribute "person" is in
> FORCE
> > status
> >
> > 1460 [MySyncTask-15] ERROR org.lsc.utils.JScriptEvaluator - Fail to
> > compute
> > expression: srcBean.getDatasetFirstValueById(“person”) on
> > id=cn=test.user,ou=Secure,ou=MIS,ou=People,dc=testld,dc=org
> > Reason: javax.script.ScriptException:
> > sun.org.mozilla.javascript.internal.EvaluatorException: illegal
> character
> > (<Unknown source>#5) in <Unknown source> at line number 5
> >
> > 1469 [MySyncTask-17] DEBUG org.lsc.utils.JScriptEvaluator -
> > javax.script.ScriptException:
> > sun.org.mozilla.javascript.internal.EvaluatorException: illegal
> character
> > (<Unknown source>#5) in <Unknown source> at line number 5
> > javax.script.ScriptException:
> > sun.org.mozilla.javascript.internal.EvaluatorException: illegal
> character
> > (<Unknown source>#5) in <Unknown source> at line number 5
> >         at com.sun.script.javascript.RhinoScriptEngine.eval(Unknown
> > Source)
> > ~[na:1.6.0_17]
> >         at com.sun.script.javascript.RhinoScriptEngine.eval(Unknown
> > Source)
> > ~[na:1.6.0_17]
> >         at javax.script.AbstractScriptEngine.eval(Unknown Source)
> > ~[na:1.6.0_17]
> >         at
> > org.lsc.utils.JScriptEvaluator.instanceEval(JScriptEvaluator.java:222)
> > [lsc-core-2.1.3.jar:na]
> >         at
> > org.lsc.utils.JScriptEvaluator.evalToStringList(
> JScriptEvaluator.java:119)
> > [lsc-core-2.1.3.jar:na]
> >         at
> > org.lsc.utils.ScriptingEvaluator.evalToStringList(
> ScriptingEvaluator.java:136)
> > [lsc-core-2.1.3.jar:na]
> >         at
> > org.lsc.beans.BeanComparator.getValuesToSet(BeanComparator.java:602)
> > [lsc-core-2.1.3.jar:na]
> >         at
> > org.lsc.beans.BeanComparator.getUpdatedObject(BeanComparator.java:284)
> > [lsc-core-2.1.3.jar:na]
> >
> >
> > LSC.XML FILE
> >
> > <?xml version="1.0" ?>
> > <lsc xmlns="http://lsc-project.org/XSD/lsc-core-2.1.xsd
> > <http://lsc-project.org/XSD/lsc-core-2.1.xsd>" revision="0">
> >   <connections>
> >     <ldapConnection>
> > <name>src-ldap</name>
> >       <url>ldap://ldap01.tst.org:389/dc=testld,dc=org
> > <http://ldap01.tst.org:389/dc=testld,dc=org></url>
> > <username>cn=Directory Manager</username>
> > <password>test</password>
> > <authentication>SIMPLE</authentication>
> > <referral>IGNORE</referral>
> > <derefAliases>NEVER</derefAliases>
> > <version>VERSION_3</version>
> > <pageSize>-1</pageSize>
> > <factory>com.sun.jndi.ldap.LdapCtxFactory</factory>
> > <tlsActivated>false</tlsActivated>
> > <saslMutualAuthentication>false</saslMutualAuthentication>
> >     </ldapConnection>
> >     <ldapConnection>
> > <name>dst-ldap</name>
> >       <url>ldap://ldaptest.tst.org:389/dc=testld,dc=org
> > <http://ldaptest.tst.org:389/dc=testld,dc=org></url>
> >       <username>cn=SSSD
> > Admin,ou=Secure,ou=MIS,ou=Hidden,dc=testld,dc=org</username>
> > <password>test</password>
> > <authentication>SIMPLE</authentication>
> > <referral>IGNORE</referral>
> > <derefAliases>NEVER</derefAliases>
> > <version>VERSION_3</version>
> > <pageSize>-1</pageSize>
> > <factory>com.sun.jndi.ldap.LdapCtxFactory</factory>
> > <tlsActivated>false</tlsActivated>
> > <saslMutualAuthentication>false</saslMutualAuthentication>
> >     </ldapConnection>
> >   </connections>
> >   <audits/>
> >   <tasks>
> >     <task>
> > <name>MySyncTask</name>
> > <bean>org.lsc.beans.SimpleBean</bean>
> >       <ldapSourceService>
> > <name>MySyncTask-src</name>
> >         <connection reference="src-ldap"/>
> > <baseDn>dc=testld,dc=org</baseDn>
> >         <pivotAttributes>
> > <string>cn</string>
> > </pivotAttributes>
> > <fetchedAttributes>
> > <string>cn</string>
> > <string>sn</string>
> > <string>objectClass</string>
> > </fetchedAttributes>
> > <getAllFilter>(objectClass=top)</getAllFilter>
> > <getOneFilter>(&amp;(objectClass=top)(cn={cn}))</getOneFilter>
> > <cleanFilter>(&amp;(objectClass=top)(cn={cn}))</cleanFilter>
> > </ldapSourceService>
> > <ldapDestinationService>
> > <name>MySyncTask-dst</name>
> >         <connection reference="dst-ldap"/>
> > <baseDn>ou=Secure,ou=MIS,ou=People</baseDn>
> >         <pivotAttributes>
> > <string>cn</string>
> > </pivotAttributes>
> > <fetchedAttributes>
> > <string>cn</string>
> > <string>sn</string>
> > <string>objectClass</string>
> > </fetchedAttributes>
> > <getAllFilter>(objectClass=top)</getAllFilter>
> > <getOneFilter>(&amp;(objectClass=top)(cn={cn}))</getOneFilter>
> > </ldapDestinationService>
> > <propertiesBasedSyncOptions>
> > <mainIdentifier>"uid=" + srcBean.getDatasetFirstValueById("cn") +
> > ",ou=Secure,ou=MIS,ou=People,dc=testld,dc=org"</mainIdentifier>
> > <defaultDelimiter>;</defaultDelimiter>
> > <defaultPolicy>KEEP</defaultPolicy>
> >         <dataset>
> > <name>objectClass</name>
> > <policy>KEEP</policy>
> >           <forceValues>
> > <string>"inetOrgPerson"</string>
> > <string>"inetuser"</string>
> > <string>"person"</string>
> > <string>"top"</string>
> > <string>"cn"</string>
> >           </forceValues>
> > <delimiter>,</delimiter>
> >         </dataset>
> > </propertiesBasedSyncOptions>
> >     </task>
> >   </tasks>
> > </lsc>
> >
> > ------------------------------------------------------------------------
> > UNFPA <http://www.unfpa.org/>
> >
> > <https://www.facebook.com/UNFPA> <https://twitter.com/unfpa>
> > <https://instagram.com/unfpa/>
> > <https://www.linkedin.com/company/unfpa>
> > <https://www.youtube.com/user/unfpa>
> > <https://plus.google.com/+unfpa/posts>
> > <http://visitor.r20.constantcontact.com/manage/optin?v=001-
> YNFZmXHhSP25d9kiBTi0ZxtEwaeIcM-UeLsaXPKYoHs5SAGE1WbNakIrfhkc_
> 3wTTkXkKXbHJpBnXtbqkTATg_O174jFAyLQdNkQkPKQAk=&MERGE0=>
> >
> >
> > _______________________________________________________________
> > Ldap Synchronization Connector (LSC) - http://lsc-project.org
> >
> > lsc-users mailing list
> > [email protected]
> > https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.lsc-project.org/pipermail/lsc-users/
> attachments/20170418/ea56ea10/attachment.html>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> lsc-users mailing list
> [email protected]
> https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users
>
> ------------------------------
>
> End of lsc-users Digest, Vol 87, Issue 7
> ****************************************
>

-- 

------------------------------
[image: UNFPA] <http://www.unfpa.org/>

<https://www.facebook.com/UNFPA>   <https://twitter.com/unfpa>   
<https://instagram.com/unfpa/>   <https://www.linkedin.com/company/unfpa>   
<https://www.youtube.com/user/unfpa>   
<https://plus.google.com/+unfpa/posts>   
<http://visitor.r20.constantcontact.com/manage/optin?v=001-YNFZmXHhSP25d9kiBTi0ZxtEwaeIcM-UeLsaXPKYoHs5SAGE1WbNakIrfhkc_3wTTkXkKXbHJpBnXtbqkTATg_O174jFAyLQdNkQkPKQAk=&MERGE0=>
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users

Reply via email to