🐛 Bug Report: LDAP Error #20

Closed
opened 2025-07-08 08:37:45 -04:00 by AtHeartEngineer · 0 comments

Originally created by @drag0n141 on 7/3/2025

Reproduction steps

Every time the Sync runs i get that error and no users or groups are sync.

That are my LDAP Settings.
Image

Expected behavior

I expect that my Pocket-ID Instance sync my ldap users and groups.

Actual Behavior

Users and Groups get not synced to my Pocket-ID

Version and Environment

v1.5.0 with and ldap connection to my active directory.

Log Output

2025/07/03 09:06:02 github.com/pocket-id/pocket-id/backend/internal/service/ldap_service.go:304 ERROR: invalid byte sequence for encoding "UTF8": 0xb0 (SQLSTATE 22021)
[1.065ms] [rows:0] SELECT * FROM "users" WHERE ldap_id = $1$ ORDER BY "users"."id" LIMIT $2$
[GIN] 2025/07/03 - 09:06:02 | 500 |   35.152815ms |  192.168.140.42 | POST     "/api/application-configuration/sync-ldap"
Error #01: failed to sync users: failed to query for LDAP user ID 'T▒H▒
U▒|': ERROR: invalid byte sequence for encoding "UTF8": 0xb0 (SQLSTATE 22021)
*Originally created by @drag0n141 on 7/3/2025* ### Reproduction steps Every time the Sync runs i get that error and no users or groups are sync. That are my LDAP Settings. ![Image](https://github.com/user-attachments/assets/6abb8eca-1384-4b76-8828-cdf4039e49a8) ### Expected behavior I expect that my Pocket-ID Instance sync my ldap users and groups. ### Actual Behavior Users and Groups get not synced to my Pocket-ID ### Version and Environment v1.5.0 with and ldap connection to my active directory. ### Log Output ``` 2025/07/03 09:06:02 github.com/pocket-id/pocket-id/backend/internal/service/ldap_service.go:304 ERROR: invalid byte sequence for encoding "UTF8": 0xb0 (SQLSTATE 22021) [1.065ms] [rows:0] SELECT * FROM "users" WHERE ldap_id = $1$ ORDER BY "users"."id" LIMIT $2$ [GIN] 2025/07/03 - 09:06:02 | 500 | 35.152815ms | 192.168.140.42 | POST "/api/application-configuration/sync-ldap" Error #01: failed to sync users: failed to query for LDAP user ID 'T▒H▒ U▒|': ERROR: invalid byte sequence for encoding "UTF8": 0xb0 (SQLSTATE 22021) ```
AtHeartEngineer added the bugbugbugbugbug labels 2025-07-08 08:37:47 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pocket-id#20