So i checked and this is ‘CheckPersonForClean’ which is defined in my 
InetOrgPerson.xml file ..
By the way.. is the name of the file important (InetOrgPerson.xml) because my 
pivot belongs to the PosixAccount objectClass ?

Thanks very much ☺



De : lsc-users <lsc-users-boun...@lists.lsc-project.org> De la part de Forster 
Arnaud, Gymnase francais
Envoyé : mercredi, 11 décembre 2019 16:20
À : General discussions and help for Ldap Synchronization Connector (LSC) - 
Start here! <lsc-users@lists.lsc-project.org>
Objet : Re: [lsc-users] Need help configuring clean phase

Hello,

Yes, the command is there but not the same attributes ..

In the doc :
<requestNameForClean>getInetOrgPersonClean</requestNameForClean>

In my file  :
requestNameForClean>CheckPersonForClean</requestNameForClean>


I’m trying with the other value …



De : lsc-users 
<lsc-users-boun...@lists.lsc-project.org<mailto:lsc-users-boun...@lists.lsc-project.org>>
 De la part de Clément OUDOT
Envoyé : mercredi, 11 décembre 2019 16:15
À : lsc-users@lists.lsc-project.org<mailto:lsc-users@lists.lsc-project.org>
Objet : Re: [lsc-users] Need help configuring clean phase



Le 11/12/2019 à 15:49, Forster Arnaud, Gymnase francais a écrit :

Hello All,

I'm synchronizing my LDAP server (destination) with a MariadB Database.

MariaDB is the source and all new entries and modified entries are made to my 
LDAP server ; this is fine.

Now I'd like removing all my LDAP records that are not in my database.



As my script didn't remove records in my LDAP server, I tried to add a 
<cleanfilter> in my LDAPDestinationService
<ldapDestinationService>
    <getAllFilter>(&amp;((objectClass=PosixAccount))</getAllFilter>
    <getOneFilter>(&amp;((uidnumber={uidnumber})))</getOneFilter>
    <cleanFilter>(&amp;((uidnumber={uidnumber})))</cleanFilter>

But now, when I start the process I get the following Error :

"...Contenu non valide trouvé à partir de l'élément 'cleanFilter'. Aucun 
élément enfant n'est attendu à cet endroit."

So this is not the good way.

According to the fact that the policies of my task seem to be right :
defaultPolicy>FORCE</defaultPolicy>
        </conditions>
            <create>true</create>
            <update>true</update>
            <delete>true</delete>
            <changeId>false</changeId>
        </conditions>



That my inetorgpers.xml seems to have the process for cleaning ..

<select id="checkPersonForClean" resultClass="java.util.HashMap" 
parameterClass="java.util.Map">
        Select pers.EventoID as uidnumber
            FROM Evento pers WHERE pers.EventoID = #uidnumber#
    </select>

I dont'know where I could have a deeper look to solve that ...



Did you configure requestNameForClean in your source service? See 
https://lsc-project.org/documentation/latest/configuration/service/sourcesql



--

Clément Oudot | Identity Solutions Manager



clement.ou...@worteks.com<mailto:clement.ou...@worteks.com>



Worteks | https://www.worteks.com
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
lsc-users@lists.lsc-project.org
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users

Reply via email to