freman / caddy-reauth

Auth your Caddyserver requests against another server
MIT License
27 stars 15 forks source link

Invalid Credentials - ldap username with CN #35

Closed greenpau closed 4 years ago

greenpau commented 4 years ago

I am setting the value of username in LDAP configuration as user's CN. There are a number of systems (e.g. Grafana, Apache Airflow) requiring a CN, as opposed to samAccountName

username="CN=WebAdmin,OU=Management\u0020Accounts,,DC=CONTOSO,DC=COM"

In the error log, I see the username being truncated:

bind with "username=\"CN=WebAdmin": LDAP Result Code 49 "Invalid Credentials": 80090308: LdapErr: DSID-0C09042F, comment: AcceptSecurityContext error, data 52e, v2580

Is it a feature request?

greenpau commented 4 years ago

Typo on my part. I had it as username=username="CN=Web ...