Hello Soisik,

Thanks very much, I had a deeper look in the GetOneFilter and founded the 
problem ! I can now add and modify entried in my LDAP server thanks very much !
The last problem I’ve is removing old entries in my LDAP server. For the while, 
ldap reccords that are not in my MariaDB databse are not deleted.¨
I checked the policy under <conditions> and I’ve <delete>true<delete> so it 
should do the trick…
I think maybe there’s a problem looking for uidnumber in my database (because 
the fieldname is EventoID and not uinumber) . Could it be that ?
If yes, where can I define this change ?


I take this opportunity to ask 1 more things (If I may) :

In my database connection file, I always do my request with that : select 
pers.EventoID as uidnumber…

Than,  I want to user that field for my pivotattribute. Should I use the term 
‘EventoID’ or ‘uidnumer’ ? I decided to use ‘uidnumber’ but I’m not sure..

Thanks very very much for your help
Kind Regards
Anaud


De : lsc-users <[email protected]> De la part de 
[email protected]
Envoyé : mercredi, 11 décembre 2019 08:00
À : General discussions and help for Ldap Synchronization Connector (LSC) - 
Start here! <[email protected]>
Objet : [lsc-users] Re : Problem adding mariadb java connector


Hi,

Could you check around the getOneFilter of your destination service? If this 
filter does not find any entry, LSC will try and create a new entry which will 
fail if entry already exists in destination. This filter should use the value 
of  your source pivot attribute to retrieve the entry in Openldap. Please send 
us your services configuration so we can help you narrow the error.

 Regards

Soisik Froger
www.worteks.com<http://www.worteks.com>

-------- Message original --------
De : "Forster Arnaud, Gymnase francais" 
<[email protected]<mailto:[email protected]>>
Date : mar. 10 déc. 2019 à 15:11
À : [email protected]<mailto:[email protected]>
Objet : Re: [lsc-users] Problem adding mariadb java connector

Hello all,

So everything works fine to creatre entried in my LDAP system. I can import 
more than 900 records from an AD to my MariaDB database. From there, I can 
create the records in my LDAP server and I can authenticate on MAC computers ! 
:)

The last problem I have is the modification. If, for example, I modify a value 
in my database (for example my surname) , I can't apply this modification in my 
LDAP server ; I always get the following error :

The entry already exist so it should modify it... but it seems it's trying to 
add a new record. Something is wrong in my task but I don't know where... could 
it be the cn value ? maybe cn value is not allowed to be changed ?

déc. 10 13:47:09 - ERROR - Error while adding entry 
[email protected],ou=GFBienne,ou=Users,ou=Accounts,dc=gfbienne,dc=lan<mailto:[email protected],ou=GFBienne,ou=Users,ou=Accounts,dc=gfbienne,dc=lan>
 in directory :javax.naming.NameAlreadyBoundException: [LDAP: error code 68 - 
Entry Already Exists]; remaining name 
'[email protected],ou=GFBienne,ou=Users,ou=Accounts<mailto:[email protected],ou=GFBienne,ou=Users,ou=Accounts>'
déc. 10 13:47:09 - ERROR - Error while synchronizing ID 
[email protected],ou=GFBienne,ou=Users,ou=Accounts,dc=gfbienne,dc=lan<mailto:[email protected],ou=GFBienne,ou=Users,ou=Accounts,dc=gfbienne,dc=lan>:
 java.lang.Exception: Technical problem while applying modifications to the 
destination

# Tue Dec 10 13:47:09 CET 2019
dn: 
[email protected],ou=GFBienne,ou=Users,ou=Accounts,dc=gfbienne,dc=lan<mailto:[email protected],ou=GFBienne,ou=Users,ou=Accounts,dc=gfbienne,dc=lan>
changetype: add
uid: [email protected]<mailto:[email protected]>
userPassword: {SHA}zbDnbBpphzy9zb4KFC1WwCPcnyI=
homeDirectory: /home/gfbienne2
employeeType: Prof
mail: [email protected]<mailto:[email protected]>
uidNumber: 567812
givenname: Arnaud-modifie
objectClass: top
objectClass: posixAccount
objectClass: InetOrgPerson
businessCategory: GFB
cn: Arnaud-modifie Forster
sn: Forster
gidNumber: 63000

déc. 10 13:47:09 - ERROR - All entries: 1, to modify entries: 1, successfully 
modified entries: 0, errors: 1



Thanks to all for your help

Best Regards

Anaud






Le 23.10.2019 à 16:36, Soisik Froger a écrit :

On 23/10/2019 16:11, Forster Arnaud, Gymnase francais wrote:

Should I try to removing the tags you said and change back from

forcevalues to createvalues ?



thanks for your help

It will work either way since forceValues has precedence on createValues.

See 
https://lsc-project.org/documentation/latest/configuration/syncoptions#functionality_matrix




_______________________________________________________________
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