Hi,

Le 05/07/2013 19:02, [email protected] a écrit :
jul 05 18:41:06 - ERROR - Error while modifying entry
cn=uidNumberSequence,ou=HiddenTree,dc=azertyuiop,dc=local in directory
:javax.naming.directory.NoSuchAttributeException: [LDAP: error code 16
- modify/delete: serialNumber: no such value]; remaining name
'cn=uidNumberSequence,ou=HiddenTree'

[...]

That's a bit strange because
cn=uidNumberSequence,ou=HiddenTree,dc=azertyuiop,dc=local already
exist on the openldap server (we created it)
And serialNumber increase every time we execute the synchronisation
ldapsearch -LLL -h 127.0.0.1 -p 389 -D
'cn=xxxxxx,dc=azertyuiop,dc=local' -w xxxxxxxx
'cn=uidNumberSequence,OU=HiddenTree, dc=azertyuiop, dc=local'
dn: cn=uidNumberSequence,ou=HiddenTree,dc=azertyuiop,dc=local
cn: uidNumberSequence
objectClass: device
objectClass: top
serialNumber: 1108

This is not an issue. The error is not "invalid attribute" but "no such value". When you try to increment an attribute, the LDAP operation is something like that:
delete: serialNumber
serialNumber: 1108
-
add: serialNumber
serialNumber: 1109

The two operations must be done atomically. So if an other application updates the serialNumber between when you read the value "1108" and when you send the update, then the update is refused.

To fix this you can:
- try to catch the error and retry
- disallow other applications updates

If LSC is the only application, you should run it with only one thread (option -t 1).

Regards,
Raphaël Ouazana.
_______________________________________________________________
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