Skip to content

Handle LDAP user photo when account is no longer in AD #35

Description

@Cold-FR

Problem

When an LDAP user account that previously had a photo is removed from Active Directory (AD), there may still be references or photos present in the system. This can result in orphaned photos or inconsistent state in NexTrombi-AD for users that are no longer active.

Expected behavior

  • LDAP user photos should be properly handled when their account is no longer present in AD.
  • Orphaned photos should be cleaned up or flagged appropriately.
  • The application should not display or retain photos for users not present in AD.

Steps to Reproduce

  1. Sync a user from LDAP to NexTrombi-AD with a photo.
  2. Remove the user from AD.
  3. Observe the photo data/state in NexTrombi-AD after the next sync or lookup.

Suggested Solution

  • Detect when users with remaining photos no longer exist in AD.
  • Remove or archive their photo data.

Additional Context

  • This can help keep user data accurate and comply with privacy or retention standards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions