mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 00:05:50 +03:00
[PR #1239] Add login_enabled database field for user enable/disable functionality #1200
Labels
No labels
backend
blocked
bug
cleanup
dependencies
docker
documentation
duplicate
enhancement
enhancement
frontend
github_actions
good first issue
help wanted
help wanted
integration
invalid
ldap
pull-request
question
rust
rust
tests
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/lldap-lldap#1200
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/lldap/lldap/pull/1239
Author: @coolguy1771
Created: 8/7/2025
Status: 🔄 Open
Base:
main← Head:feat/user-enable-disable-field📝 Commits (4)
17189a1feat: add login_enabled database field users89ef5dcfix: streamline existing attribute check in migrate_to_v11 function875846bchore: run cargo fmtd377dd4Merge branch 'main' into feat/user-enable-disable-field📊 Changes
5 files changed (+65 additions, -3 deletions)
View changed files
📝
crates/domain-model/src/model/users.rs(+3 -0)📝
crates/ldap/src/core/user.rs(+2 -1)📝
crates/sql-backend-handler/src/sql_migrations.rs(+58 -1)📝
crates/sql-backend-handler/src/sql_tables.rs(+1 -1)📝
crates/sql-backend-handler/src/sql_user_backend_handler.rs(+1 -0)📄 Description
Summary
This PR introduces the database foundation for user enable/disable functionality by adding a
login_enabledboolean field to the users table. This is the first in a series of PRs to implement the complete feature as discussed in #1193.Changes
Database Migration: Added migration v11 to create the
login_enabledcolumntruefor backward compatibility with existing usersModel Updates:
login_enabledfieldlogin_enabled: trueby defaultMigration Notes
login_enabledset totrueby default, ensuring no disruption to current functionalityTesting
login_enabled: trueRelated Issues
Addresses part of #1193
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.