Get ldap user objectGUID failed!

Hi everyone,

i have tried to bind LDAP to my seatable server. I run in the following Problem:
2024-08-06 10:23:15 [ERROR] seahub.dtable.management.commands.ldap_user_sync[60] - Get ldap user objectGUID failed.
2024-08-06 10:23:15 [ERROR] seahub.dtable.management.commands.ldap_user_sync[160] - can’t concat str to bytes
Traceback (most recent call last):
File “/opt/seatable/seatable-server-4.4.4/dtable-web/seahub/dtable/management/commands/ldap_user_sync.py”, line 157, in do_action
unique_id, nickname, contact_email, id_in_org, user_role = parse_ldap_result(data)
File “/opt/seatable/seatable-server-4.4.4/dtable-web/seahub/dtable/management/commands/ldap_user_sync.py”, line 70, in parse_ldap_result
nickname = first_name + ’ ’ + last_name
TypeError: can’t concat str to bytes

ENABLE_LDAP = True
LDAP_PROVIDER = ‘ldap’
LDAP_SERVER_URL = ‘ldap://adserver.domain.at’
#LDAP_BASE_DN = ‘CN=ldapuser,OU=Seatable,OU=Applications,OU=,DC=domain,DC=at’
LDAP_BASE_DN = ‘DC=domain,DC=at’
LDAP_ADMIN_DN = ‘ldapuser@domain.at’
LDAP_ADMIN_PASSWORD = '
************’
LDAP_USER_UNIQUE_ID = ‘objectGUID’
LDAP_LOGIN_ATTR = ‘sAMAccountName’

Has anyone encountered the same problem and has a solution to the problem?

Well, the error message is quite clear, isn’t it?

Get ldap user objectGUID failed.

Check what your LDAP server provides, in the manual it is recommended to use EntryUUID instead of ObjectGUID for LDAP. Might be worth a try…

Hi,
thanks for your answer. I have also tried EntryUUID:

2024-08-06 13:26:40 [ERROR] seahub.dtable.management.commands.ldap_user_sync[60] - Get ldap user EntryUUID failed.
2024-08-06 13:26:40 [ERROR] seahub.dtable.management.commands.ldap_user_sync[160] - can’t concat str to bytes
Traceback (most recent call last):
File “/opt/seatable/seatable-server-4.4.4/dtable-web/seahub/dtable/management/commands/ldap_user_sync.py”, line 157, in do_action
unique_id, nickname, contact_email, id_in_org, user_role = parse_ldap_result(data)
File “/opt/seatable/seatable-server-4.4.4/dtable-web/seahub/dtable/management/commands/ldap_user_sync.py”, line 70, in parse_ldap_result
nickname = first_name + ’ ’ + last_name
TypeError: can’t concat str to bytes

same Error as Above, and i checked the User in our AD and there is only the a entry for ObjectGUID. EntryUUID is empty.

This maybe a bug. We are going to simplify LDAP related code in version 5.1 and remove the need of objectGUID. You can re-test it then.

Thank you for the answer. I will try it and give you a Update in this post.

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

Version 5.1 was released today. You can do your re-test.