mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-09 14:53:00 +03:00
[PR #106] [MERGED] feat: add LDAP sync #954
Reference in New Issue
Block a user
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/pocket-id/pocket-id/pull/106
Author: @kmendell
Created: 1/12/2025
Status: ✅ Merged
Merged: 1/19/2025
Merged by: @stonith404
Base:
main← Head:ldap-sync📝 Commits (10+)
ad4356bfeat: ldap sync begin work965191cfeat(ldap-sync): add go-ldapb6c4c0dfeat(ldap-sync): add env varibles for ldap9eccfa3feat(ldap-sync): add env varibles for ldap324d83bfeat(ldap-sync): updated .env.example with ldap configa4f281efeat(ldap-sync): added basic ldapInit() function577de76feat(ldap-sync): added query function6fda6f4feat(ldap-sync): added a few error checks for my testingc019676feat(ldap-sync): updated .env.example0dda254feat(ldap-sync): updated readme with the ldap env vars so far📊 Changes
46 files changed (+911 additions, -111 deletions)
View changed files
📝
README.md(+2 -1)📝
backend/.env.example(+1 -1)📝
backend/.gitignore(+2 -1)📝
backend/go.mod(+8 -5)📝
backend/go.sum(+90 -0)📝
backend/internal/bootstrap/router_bootstrap.go(+5 -1)📝
backend/internal/common/env_config.go(+2 -1)📝
backend/internal/common/errors.go(+17 -1)📝
backend/internal/controller/app_config_controller.go(+13 -0)📝
backend/internal/controller/user_controller.go(+4 -3)📝
backend/internal/controller/user_group_controller.go(+1 -1)📝
backend/internal/dto/app_config_dto.go(+26 -12)📝
backend/internal/dto/user_dto.go(+2 -0)📝
backend/internal/dto/user_group_dto.go(+3 -0)➕
backend/internal/job/ldap_job.go(+39 -0)📝
backend/internal/model/app_config.go(+18 -2)📝
backend/internal/model/user.go(+1 -0)📝
backend/internal/model/user_group.go(+2 -1)📝
backend/internal/service/app_config_service.go(+67 -4)➕
backend/internal/service/ldap_service.go(+261 -0)...and 26 more files
📄 Description
PoC of users from ldap so far, Drafting this PR for code review first, and we can continue on from there.
TODO
dbc8e382293443d4a711f3cc45d918🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.