LDAP auth error: can't decode byte 0xc3 #2646
-
Is the issue already present in https://github.com/cloudera/hue/issues or discussed in the forum https://discourse.gethue.com? Describe the bug: [14/Jun/2021 08:46:34 +0000] backend INFO Augmenting users with class: <class 'desktop.auth.backend.DefaultUserAugmentor'> This blocks migration to 4.10 if connected to LDAP Steps to reproduce it? Hue version or source? (e.g. open source 4.5, CDH 5.16, CDP 1.0...). System info (e.g. OS, Browser...). Connected with issue: #2250 |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
This issue is stale because it has been open 30 days with no activity and is not "roadmap" labeled or part of any milestone. Remove stale label or comment or this will be closed in 5 days. |
Beta Was this translation helpful? Give feedback.
-
Hi, I can confirm that hue since v4.8.0 has some bug with at least cyrillic ldap-groups: |
Beta Was this translation helpful? Give feedback.
-
Hi, simple patch for this issue is here: #2622 |
Beta Was this translation helpful? Give feedback.
-
Also looks like sometimes we gets binary string in "username_pattern": Also if you use gethue docker image with non-ascii locale, you should rebuild gethue image with additional steps: ` |
Beta Was this translation helpful? Give feedback.
-
@arturbrandysonwelo - Thanks for reporting this issue! It has been committed in the master branch, it will be part of the 4.11 release. |
Beta Was this translation helpful? Give feedback.
Also looks like sometimes we gets binary string in "username_pattern":
Pushed fix to the same branch.
Also if you use gethue docker image with non-ascii locale, you should rebuild gethue image with additional steps:
`
FROM myhue:4.10.0
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y locales && apt-get clean
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
`
It prevents logger errors for non-ascii symbols.