mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #3568] [MERGED] feat: add ldap component #5441
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#5441
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/3568
Author: @konstpic
Created: 9/26/2025
Status: ✅ Merged
Merged: 9/28/2025
Merged by: @MHSanaei
Base:
main← Head:main📝 Commits (3)
685b9a0add ldap componentd8c3844fix: fix russian comments, tls cert verify default true3efa271feat: remove replaces go mod for local dev📊 Changes
12 files changed (+910 additions, -23 deletions)
View changed files
📝
go.mod(+3 -0)➕
util/ldap/ldap.go(+144 -0)📝
web/assets/js/model/setting.js(+22 -0)📝
web/assets/js/util/index.js(+7 -17)📝
web/entity/entity.go(+25 -1)📝
web/html/settings.html(+22 -1)📝
web/html/settings/panel/general.html(+130 -0)➕
web/job/ldap_sync_job.go(+393 -0)📝
web/service/inbound.go(+17 -0)📝
web/service/setting.go(+102 -0)📝
web/service/user.go(+33 -4)📝
web/web.go(+12 -0)📄 Description
What is the pull request?
This PR introduces LDAP integration for client access management with scheduled synchronization and group capture support:
LDAP sync job (
web/job/ldap_sync_job.go):ldapFlagField,ldapTruthyValues,ldapInvertFlag).ldapUserAttr↔client.email.ldapInboundTags).Auto client management:
ldapDefaultTotalGB,ldapDefaultExpiryDays,ldapDefaultLimitIP.Settings (UI + backend):
Implementation details:
util/ldap/ldap.go: LDAP client (usinggo-ldap/ldap/v3).web/service/setting.go,web/entity/entity.go: new settings handling.web/assets/js/model/setting.js,web/html/settings/*.html: frontend integration.Which part of the application is affected by the change?
Type of Changes
Screenshots
New settings panel with LDAP integration and group capture options:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.