I changed my LDAP hostname address and now I cannot get back my users.
I have 5-6 users that were created via LDAP, after changing the LDAP hostname, it tries to recreate the users but since they already exists, it fails:
2022/05/15 15:40:05 …/ldap/source_sync.go:120:Sync() [E] SyncExternalUsers[LDAP Synology]: Error creating user XXX: user already exists [name: XXX]
Not sure how to tell Gitea that those are the same users.
Also another strange thing is now I cannot see the users if I do “gitea admin users list”,
If you created a new auth source, the old users are still point to old auth source id with login_type and login_id. So they cannot be found. But I think it’s still a bug, the search condition is not same as creating condition.