LibreChat/api/server/services/Config
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
..
EndpointService.js 🤖 feat: OpenAI Assistants v2 (initial support) (#2781) 2024-05-19 12:56:55 -04:00
getCustomConfig.js 👤 feat: User ID in Model Query; chore: cleanup ModelService (#1753) 2024-02-08 10:06:58 -05:00
handleRateLimits.js 🔉 feat: TTS/STT rate limiters (#2925) 2024-05-30 18:39:21 -04:00
index.js 👤 feat: User ID in Model Query; chore: cleanup ModelService (#1753) 2024-02-08 10:06:58 -05:00
ldap.js 🛂 feat: Allow LDAP login via username (#3463) 2024-07-27 15:42:18 -04:00
loadAsyncEndpoints.js 🔗 feat: User Provided Base URL for OpenAI endpoints (#1919) 2024-02-28 14:27:19 -05:00
loadConfigEndpoints.js 🤖 feat: OpenAI Assistants v2 (initial support) (#2781) 2024-05-19 12:56:55 -04:00
loadConfigModels.js 🤖 feat: OpenAI Assistants v2 (initial support) (#2781) 2024-05-19 12:56:55 -04:00
loadConfigModels.spec.js 🍎 feat: Apple MLX as Known Endpoint (#2580) 2024-05-01 03:27:02 -04:00
loadCustomConfig.js 🎤 feat: add custom speech config, browser TTS/STT features, and dynamic speech tab settings (#2921) 2024-07-05 10:13:34 -04:00
loadCustomConfig.spec.js 🌐 feat: librechat.yaml from URL (#2064) 2024-03-11 10:52:54 -04:00
loadDefaultEConfig.js 🤖 feat: OpenAI Assistants v2 (initial support) (#2781) 2024-05-19 12:56:55 -04:00
loadDefaultModels.js 🤖 feat: OpenAI Assistants v2 (initial support) (#2781) 2024-05-19 12:56:55 -04:00
loadOverrideConfig.js refactor: Speed up Config fetching and Setup Config Groundwork 👷🚧 (#1297) 2023-12-06 19:36:57 -05:00