[PR #8447] [MERGED] feat: add LDAP_ATTRIBUTE_FOR_MAIL to env-configuration #9019

Closed
opened 2025-11-11 18:11:58 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/8447
Author: @steelcg
Created: 1/10/2025
Status: Merged
Merged: 1/13/2025
Merged by: @tjbck

Base: devHead: dev


📝 Commits (1)

  • ab6dfff feat: add LDAP_ATTRIBUTE_FOR_MAIL to env-configuration

📊 Changes

53 files changed (+190 additions, -2 deletions)

View changed files

📝 backend/open_webui/config.py (+6 -0)
📝 backend/open_webui/main.py (+2 -0)
📝 backend/open_webui/routers/auths.py (+14 -2)
📝 src/lib/components/admin/Settings/General.svelte (+21 -0)
📝 src/lib/i18n/locales/ar-BH/translation.json (+3 -0)
📝 src/lib/i18n/locales/bg-BG/translation.json (+3 -0)
📝 src/lib/i18n/locales/bn-BD/translation.json (+3 -0)
📝 src/lib/i18n/locales/ca-ES/translation.json (+3 -0)
📝 src/lib/i18n/locales/ceb-PH/translation.json (+3 -0)
📝 src/lib/i18n/locales/cs-CZ/translation.json (+3 -0)
📝 src/lib/i18n/locales/da-DK/translation.json (+3 -0)
📝 src/lib/i18n/locales/de-DE/translation.json (+3 -0)
📝 src/lib/i18n/locales/dg-DG/translation.json (+3 -0)
📝 src/lib/i18n/locales/el-GR/translation.json (+3 -0)
📝 src/lib/i18n/locales/en-GB/translation.json (+3 -0)
📝 src/lib/i18n/locales/en-US/translation.json (+3 -0)
📝 src/lib/i18n/locales/es-ES/translation.json (+3 -0)
📝 src/lib/i18n/locales/eu-ES/translation.json (+3 -0)
📝 src/lib/i18n/locales/fa-IR/translation.json (+3 -0)
📝 src/lib/i18n/locales/fi-FI/translation.json (+3 -0)

...and 33 more files

📄 Description

Pull Request Checklist

Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.

Before submitting, make sure you've checked the following:

  • Target branch: Please verify that the pull request targets the dev branch.
  • Description: Provide a concise description of the changes made in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • Testing: Have you written and run sufficient tests for validating the changes?
  • Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
  • Prefix: To cleary categorize this pull request, prefix the pull request title, using one of the following:
    • BREAKING CHANGE: Significant changes that may affect compatibility
    • build: Changes that affect the build system or external dependencies
    • ci: Changes to our continuous integration processes or workflows
    • chore: Refactor, cleanup, or other non-functional code changes
    • docs: Documentation update or addition
    • feat: Introduces a new feature or enhancement to the codebase
    • fix: Bug fix or error correction
    • i18n: Internationalization or localization changes
    • perf: Performance improvement
    • refactor: Code restructuring for better maintainability, readability, or scalability
    • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)
    • test: Adding missing tests or correcting existing tests
    • WIP: Work in progress, a temporary label for incomplete or ongoing work

Changelog Entry

Description

In our LDAP settings, the mail value is not from "mail" but another attribute. we can not get mail from LDAP. I would like to add the attribute: LDAP_ATTRIBUTE_FOR_MAIL to solve that.

Added

  • env configuration: LDAP_ATTRIBUTE_FOR_MAIL

Additional Information

Please note there is also a PR in docs


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/8447 **Author:** [@steelcg](https://github.com/steelcg) **Created:** 1/10/2025 **Status:** ✅ Merged **Merged:** 1/13/2025 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (1) - [`ab6dfff`](https://github.com/open-webui/open-webui/commit/ab6dffffd03d56861d43f756c37142d650dd95a5) feat: add LDAP_ATTRIBUTE_FOR_MAIL to env-configuration ### 📊 Changes **53 files changed** (+190 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/config.py` (+6 -0) 📝 `backend/open_webui/main.py` (+2 -0) 📝 `backend/open_webui/routers/auths.py` (+14 -2) 📝 `src/lib/components/admin/Settings/General.svelte` (+21 -0) 📝 `src/lib/i18n/locales/ar-BH/translation.json` (+3 -0) 📝 `src/lib/i18n/locales/bg-BG/translation.json` (+3 -0) 📝 `src/lib/i18n/locales/bn-BD/translation.json` (+3 -0) 📝 `src/lib/i18n/locales/ca-ES/translation.json` (+3 -0) 📝 `src/lib/i18n/locales/ceb-PH/translation.json` (+3 -0) 📝 `src/lib/i18n/locales/cs-CZ/translation.json` (+3 -0) 📝 `src/lib/i18n/locales/da-DK/translation.json` (+3 -0) 📝 `src/lib/i18n/locales/de-DE/translation.json` (+3 -0) 📝 `src/lib/i18n/locales/dg-DG/translation.json` (+3 -0) 📝 `src/lib/i18n/locales/el-GR/translation.json` (+3 -0) 📝 `src/lib/i18n/locales/en-GB/translation.json` (+3 -0) 📝 `src/lib/i18n/locales/en-US/translation.json` (+3 -0) 📝 `src/lib/i18n/locales/es-ES/translation.json` (+3 -0) 📝 `src/lib/i18n/locales/eu-ES/translation.json` (+3 -0) 📝 `src/lib/i18n/locales/fa-IR/translation.json` (+3 -0) 📝 `src/lib/i18n/locales/fi-FI/translation.json` (+3 -0) _...and 33 more files_ </details> ### 📄 Description # Pull Request Checklist ### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) and describe your changes before submitting a pull request. **Before submitting, make sure you've checked the following:** - [X] **Target branch:** Please verify that the pull request targets the `dev` branch. - [X] **Description:** Provide a concise description of the changes made in this pull request. - [X] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [X] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? - [X] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [X] **Testing:** Have you written and run sufficient tests for validating the changes? - [X] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards? - [X] **Prefix:** To cleary categorize this pull request, prefix the pull request title, using one of the following: - **BREAKING CHANGE**: Significant changes that may affect compatibility - **build**: Changes that affect the build system or external dependencies - **ci**: Changes to our continuous integration processes or workflows - **chore**: Refactor, cleanup, or other non-functional code changes - **docs**: Documentation update or addition - **feat**: Introduces a new feature or enhancement to the codebase - **fix**: Bug fix or error correction - **i18n**: Internationalization or localization changes - **perf**: Performance improvement - **refactor**: Code restructuring for better maintainability, readability, or scalability - **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.) - **test**: Adding missing tests or correcting existing tests - **WIP**: Work in progress, a temporary label for incomplete or ongoing work # Changelog Entry ### Description In our LDAP settings, the mail value is not from "mail" but another attribute. we can not get mail from LDAP. I would like to add the attribute: LDAP_ATTRIBUTE_FOR_MAIL to solve that. - see discussion: [add LDAP_ATTRIBUTE_FOR_MAIL in LDAP configuration](https://github.com/open-webui/open-webui/discussions/8224) ### Added - env configuration: LDAP_ATTRIBUTE_FOR_MAIL --- ### Additional Information **Please note there is also a PR in docs** - related PR in docs: [feat: add LDAP_ATTRIBUTE_FOR_MAIL to env-configuration](https://github.com/open-webui/docs/pull/353) - related discussion: [add LDAP_ATTRIBUTE_FOR_MAIL in LDAP configuration](https://github.com/open-webui/open-webui/discussions/8224) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-11 18:11:58 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#9019