mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-18 20:59:41 +02:00
fix: user login and creation with LDAP (#2107)
* Corrected if statement to check if a results was returned by the LDAP search. And decoded the user_attributes from binary data to string * removed trailing spaces * Revert asserts in LDAP unit test back Since an empty tuple is still a result, an user is created and the result should not be false. * Simplified code * Extended the LDAP implementation * fix ldap authentication and user creation * modified docs to include new LDAP environment variables * update tests and linting * add libldap-2.4-2 as runtime dependency for the api --------- Co-authored-by: Erik Landkroon <eriklandkroon@gmail.com>
This commit is contained in:
parent
2a929865e2
commit
da60e56982
8 changed files with 244 additions and 48 deletions
|
@ -72,6 +72,7 @@ RUN apt-get update \
|
|||
&& apt-get install --no-install-recommends -y \
|
||||
gosu \
|
||||
tesseract-ocr-all \
|
||||
libldap-2.4-2 \
|
||||
&& apt-get autoremove \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
|
|
@ -97,6 +97,7 @@ RUN apt-get update \
|
|||
tesseract-ocr-all \
|
||||
curl \
|
||||
gnupg \
|
||||
libldap-2.4-2 \
|
||||
&& apt-get autoremove \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue