Open Commifreak opened 3 years ago
I suspect the issue is going to be one of encoding.
You haven't stated how you're pushing - I assume it's over http(s) from a git command line. Is the user using a windows or a linux box? What encoding are they sending the password in? Is it possible that they're sending the character using CP-1252 encoding or an ISO-8859-2 encoding?
If you can reliably replicate the problem you could look at exactly what is being sent across to the LDAP server.
If you were on 1.16 I'd say take a look at:
https://github.com/go-gitea/gitea/blob/main/services/auth/source/ldap/source_authenticate.go#L18
adding in some logging there and then work back at all the places it's called. On 1.15 it'd be similar.
I also note you report you're on 1.14 - please upgrade to 1.15.
Maybe related to https://github.com/go-gitea/gitea/issues/19336
Only pushing doesn't work
Gitea Version
1.14.6
Git Version
2.30.2
Operating System
Linux
How are you running Gitea?
Docker
Database
MySQL
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Description
gitea is configured to use LDAP for Auth.
This happens with a user which has an Umlaut (Ä) in its password:
invalid credentials
:Removing the umlaut fixed the issue. Is there a problem with Umlauts and
ldap.go:178:bindUser()
?Screenshots
No response