nginx-ldap-auth icon indicating copy to clipboard operation
nginx-ldap-auth copied to clipboard

Error when search result DN contains unicode characters

Open agileknight opened this issue 3 years ago • 1 comments

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)

agileknight avatar Jan 10 '22 13:01 agileknight

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.

zeleny avatar Jan 17 '22 15:01 zeleny