mirror of
https://github.com/SaraSmiseth/prosody.git
synced 2025-05-12 13:27:35 +00:00
Add LDAP authentication and support to Prosody
This commit adds support for LDAP authentication. The Dockerfile has been modified to install the required Lua modules (lua-ldap) and the prosody.cfg.lua file has been modified to add environment variables for configuring the LDAP connection. These environment variables include LDAP_BASE, LDAP_SERVER, LDAP_ROOTDN, LDAP_PASSWORD, LDAP_FILTER, LDAP_SCOPE, LDAP_TLS, LDAP_MODE, and LDAP_ADMIN_FILTER. The authentication variable has also been updated to use the value of the AUTHENTICATION environment variable, which defaults to "internal_hashed" if not set. This allows users to configure Prosody to use LDAP for authentication instead of the default internal hashing method.
This commit is contained in:
parent
f7fcfd5d88
commit
30a7893739
3 changed files with 50 additions and 29 deletions
|
@ -35,6 +35,7 @@ RUN apt-get update \
|
|||
lua-dbi-mysql \
|
||||
lua-expat \
|
||||
lua-filesystem \
|
||||
lua-ldap \
|
||||
lua-socket \
|
||||
lua-sec \
|
||||
lua-unbound \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue