1
0
Fork 0
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:
Carter 2023-02-11 13:16:33 -06:00 committed by GitHub
parent 2a929865e2
commit da60e56982
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 244 additions and 48 deletions

View file

@ -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/*

View file

@ -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/*