LibreChat/api/server/routes
Danny Avila ba9cb71245
🛂 feat: Allow LDAP login via username (#3463)
* Allow LDAP login via username

This patch adds the option to login via username instead of using an
email address since the latter may not be unique or may change.

For example, our organization has two main domains and users have a log
and a short form of their mail address. This makes it hard for users to
identify what their primary email address is and causes a lot of
confusion. Using their username instead makes it much easier.

Using a username will also make it easier in the future to not need a
separate bind user to get user attributes. So, this is also a bit of
prep work for that.

* Update config.js

* feat: Enable LDAP login via username

This commit enables the option to login via username instead of using an email address for LDAP authentication. This change is necessary because email addresses may not be unique or may change, causing confusion for users. By using usernames, it becomes easier for users to identify their primary email address. Additionally, this change prepares for future improvements by eliminating the need for a separate bind user to retrieve user attributes.

Co-authored-by: Danny Avila <danny@librechat.ai>

* chore: jsdocs

* chore: import order

* ci: add ldap config tests

---------

Co-authored-by: Lars Kiesow <lkiesow@uos.de>
2024-07-27 15:42:18 -04:00
..
__tests__ 🛂 feat: Allow LDAP login via username (#3463) 2024-07-27 15:42:18 -04:00
ask fix: Wait for Initial Message Save & Correct Latest Message (#3399) 2024-07-20 01:51:59 -04:00
assistants 🤖 feat: Private Assistants (#2881) 2024-05-28 08:27:45 -04:00
edit ⚙️ fix: Plugin Message Handling Errors (#3392) 2024-07-19 08:06:05 -04:00
files 🎤 feat: add custom speech config, browser TTS/STT features, and dynamic speech tab settings (#2921) 2024-07-05 10:13:34 -04:00
types WIP: Update UI to match Official Style; Vision and Assistants 👷🏽 (#1190) 2023-11-16 10:42:24 -05:00
auth.js 🚀 feat(LDAP): Add Flexible Configuration Options (#3124) 2024-06-21 10:14:53 -04:00
balance.js feat: Accurate Token Usage Tracking & Optional Balance (#1018) 2023-10-05 18:34:10 -04:00
categories.js 🗨️ feat: Prompts (#3131) 2024-06-20 20:24:32 -04:00
config.js 🛂 feat: Allow LDAP login via username (#3463) 2024-07-27 15:42:18 -04:00
convos.js fix: Wait for Initial Message Save & Correct Latest Message (#3399) 2024-07-20 01:51:59 -04:00
endpoints.js refactor: Speed up Config fetching and Setup Config Groundwork 👷🚧 (#1297) 2023-12-06 19:36:57 -05:00
index.js 🗨️ feat: Prompts (#3131) 2024-06-20 20:24:32 -04:00
keys.js refactor: Encrypt & Expire User Provided Keys, feat: Rate Limiting (#874) 2023-09-06 10:46:27 -04:00
messages.js fix: Wait for Initial Message Save & Correct Latest Message (#3399) 2024-07-20 01:51:59 -04:00
models.js 🛠️ refactor: Model Loading and Custom Endpoint Error Handling (#1849) 2024-02-20 12:57:58 -05:00
oauth.js 📧 feat: email verification (#2344) 2024-06-07 15:06:47 -04:00
plugins.js feat(GPT/Anthropic): Continue Regenerating & Generation Buttons (#808) 2023-08-17 12:50:05 -04:00
presets.js 🛡️ : Security Enhancements (#1681) 2024-01-30 14:34:02 -05:00
prompts.js 🗨️ feat: Prompt Slash Commands (#3219) 2024-06-27 17:34:48 -04:00
roles.js 🗨️ feat: Prompts (#3131) 2024-06-20 20:24:32 -04:00
search.js 🤖 feat: OpenAI Assistants v2 (initial support) (#2781) 2024-05-19 12:56:55 -04:00
share.js 🔧 fix(Shared Links): Handling Shared Link Errors (#3118) 2024-06-21 10:12:37 -04:00
static.js 🔒 feat: Authenticated Image Requests (#2389) 2024-04-11 02:50:57 -04:00
tokenizer.js 🛡️ : Security Enhancements (#1681) 2024-01-30 14:34:02 -05:00
user.js 📧 feat: email verification (#2344) 2024-06-07 15:06:47 -04:00