Errors in ldap sync

Hi, I’m trying to get the LDAP sync to work and all I see are these errors in dtable-events.log

[2023-10-03 11:41:49,006] ldap_syncer.py[line:61] [INFO] Starts to ldap sync
[2023-10-03 11:41:49,006] ldap_syncer.py[line:73] [ERROR] error when sync ldap user: name 'run' is not defined
Traceback (most recent call last):
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/tasks/ldap_syncer.py", line 71, in run
    run(cmd, cwd=dtable_web_dir, output=fp)
NameError: name 'run' is not defined

my ldap configuration:

# LDAP
ENABLE_LDAP = True
LDAP_PROVIDER = 'UCS'
LDAP_SERVER_URL = 'ldap://192.168.120.2:7389/'
LDAP_BASE_DN = 'dc=example,dc=com'
LDAP_ADMIN_DN = 'uid=seafile-ldap,cn=users,dc=example,dc=com'
LADP_ADMIN_PASSWORD = '***'
LDAP_USER_UNIQUE_ID = 'uid'
LDAP_LOGIN_ATTR = 'mailPrimaryAddress'
LDAP_FILTER = 'memberOf=cn=seatable,cn=groups,dc=example,dc=com'
LDAP_CONTACT_EMAIL_ATTR = 'mailPrimaryAddress'
LDAP_USER_FIRST_NAME_ATTR = 'givenName'
LDAP_USER_LAST_NAME_ATTR = 'sn'

# LDAP Sync
LDAP_SYNC_GROUP = False
LDAP_GROUP_MEMBER_ATTR = 'memberUid'
# LDAP_GROUP_MEMBER_UID_ATTR = 'entryUUID'
LDAP_USER_OBJECT_CLASS = 'inetOrgPerson'
LDAP_GROUP_OBJECT_CLASS = 'posixGroup'
LDAP_GROUP_UUID_ATTR = 'entryUUID'
SYNC_GROUP_AS_DEPARTMENT = False

what am I missing?
I can’t even log in with ldap and don’t really see any errors or I’m looking at the wrong logfiles.

We will look into the problem in the next week.

Hi there, meanwhile we’ve got a paid license. Any updates on this issue? I really need to set up the ldap and have no Idea what I might have set up wrong.
No issues with Seafile with the LDAP Server, the way it’s configured does however differ slightly.

This is a bug in our code. The problem will be fixed in version 4.2.

1 Like

SeaTable 4.2 was released today. It contains a bug fix for an LDAP sync issue.

Could you update to SeaTable 4.2 and retest?

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.