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.