nginxinc / nginx-ldap-auth

Example of LDAP authentication using ngx_http_auth_request_module
BSD 2-Clause "Simplified" License
678 stars 202 forks source link

Error when search result DN contains unicode characters #94

Open agileknight opened 2 years ago

agileknight commented 2 years ago

Example: The login works for non-unicode DN results but throws this error when an 'ö' is in the result.

Error while verifying search query results: 'ascii' codec can't encode character '\xf6' in position 76: ordinal not in range(128)

zeleny commented 2 years ago

Hi! Change locale in docker image and enjoi. I am use custom image bitnami-based.

FROM bitnami/nginx-ldap-auth-daemon:latest ARG DEBIAN_FRONTEND=noninteractive USER root RUN apt-get update RUN apt-get install -y locales locales-all ENV LC_ALL en_US.UTF-8 ENV LANG en_US.UTF-8 ENV LANGUAGE en_US.UTF-8 USER 1001 and all work.