Problem LDAP Attributes

Hello,
With Seafile I try to get the LDAP values below:

FIRST_NAME_ATTR = givenName
LAST_NAME_ATTR = sn

But on my side it doesn’t seem to work.

Did you have the same problem too?

I use the seafile-pro-server_6.3.13 version on Debian.

LDAP authentication works very well.

The command pro.py ldapsync --test
returns many email addresses.

ccnet.conf

[LDAP_SYNC]
ENABLE_EXTRA_USER_INFO_SYNC = true
ENABLE_USER_SYNC = true
FIRST_NAME_ATTR = givenName
LAST_NAME_ATTR = sn

I can’t understand what’s wrong.

Sincerely,
Jacky

Which LDAP is installed? OpenLDAP? 389?

Shouldn’t LAST_NAME_ATTR = surname ?

Can you ldapsearch the values that you need?

e.g. :

ldapsearch -x -h localhost -D “cn=” -w -b “dc=yourdomain,dc=org” “(sn=LAST_NAME_ATTR)” ?

…or something similar…

Finally it works.

I did not understand that “ENABLE_EXTRA_USER_INFO_SYNC” was dependent on “ENABLE_USER_SYNC” and therefore also the delay with “SYNC_INTERVAL”

I thought it was instantaneous during the first connection in ldap, this is not the case