mirror of
https://github.com/lldap/lldap.git
synced 2026-04-26 00:36:01 +03:00
[PR #1265] [MERGED] app: Add modifyTimestamp and pwdChangedTime attributes #1217
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#1217
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/1265
Author: @Kumpelinus
Created: 8/26/2025
Status: ✅ Merged
Merged: 8/31/2025
Merged by: @nitnelave
Base:
main← Head:modification-date📝 Commits (10+)
df49d82Initial plana90695aImplement core modifyTimestamp functionality with database migration and backend supportf7ab6deFix database migration default values for modify timestamps1c92ae6Complete modifyTimestamp implementation - fix remaining test compilation errors8a8eb41Address review feedback: remove backup file, initialize timestamps with current time, move attributes to Public schemab8b48ebSet modification timestamps for new users and groups during creation233262eFix tests and formatting for modifyTimestamp implementation7e64e06Fix clippy collapsible-if warnings in LDAP search codeedf22afUpdate user modification time when changing passworde2d9d47Update group modification time when adding or removing users from groups📊 Changes
21 files changed (+295 additions, -24 deletions)
View changed files
📝
app/src/infra/attributes.rs(+17 -2)📝
crates/domain-model/src/model/groups.rs(+3 -0)📝
crates/domain-model/src/model/users.rs(+8 -0)📝
crates/domain/src/public_schema.rs(+27 -0)📝
crates/domain/src/types.rs(+6 -0)📝
crates/graphql-server/Cargo.toml(+1 -1)📝
crates/graphql-server/src/query.rs(+48 -0)📝
crates/ldap/src/compare.rs(+2 -0)📝
crates/ldap/src/core/group.rs(+10 -0)📝
crates/ldap/src/core/user.rs(+12 -0)📝
crates/ldap/src/core/utils.rs(+10 -4)📝
crates/ldap/src/delete.rs(+2 -0)📝
crates/ldap/src/handler.rs(+1 -0)📝
crates/ldap/src/modify.rs(+1 -0)📝
crates/ldap/src/password.rs(+2 -0)📝
crates/ldap/src/search.rs(+24 -3)📝
crates/sql-backend-handler/src/sql_group_backend_handler.rs(+3 -0)📝
crates/sql-backend-handler/src/sql_migrations.rs(+51 -0)📝
crates/sql-backend-handler/src/sql_opaque_handler.rs(+3 -0)📝
crates/sql-backend-handler/src/sql_tables.rs(+1 -1)...and 1 more files
📄 Description
Add a modifyTimestamp attribute to LDAP entries for users and groups, and expose pwdChangedTime for users.
These attributes let clients track when an entry (or its password) was last changed.
modifyTimestamp is a server-maintained attribute that updates on any write to user or group entries, including membership changes (on the group side).
pwdChangedTime is set when a user’s password is created or changed.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.