Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow all agent sync from ldap to db #405

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from

Conversation

pboguslawski
Copy link
Contributor

Proposed change

This mod introduces cli command

 otrs.Console.pl Admin::User::SyncAll [--count ...] [--invalidate-missing]

that allows to synchronize all agents from specified backend.

Specify --count X to synchronize from AuthSyncBackendX configured
in Config.pm (AuthSyncBackend will be used if --count parameter
is not specified).

Adding --invalidate-missing will force all valid users in DB
that are not present in LDAP backend to be invalidated on sync.

This mod introduces also
AuthSyncModule::LDAP::AlwaysFilterReturnsOnlyValidUsers option; when set,
invalid users in DB will be changed to valid when synchronized from LDAP
to DB.

Type of change

  • '1 - 🚀 feature' - New feature (which adds functionality to an existing integration)

Additional information

Author-Change-Id: IB#1110475

Checklist

  • The code change is tested and works locally.(❗)
  • There is no commented out code in this PR.(❕)
  • You improved or added new unit tests.(❕)
  • Local ZnunyCodePolicy passed.(❕)
  • Local UnitTests / Selenium passed.(❕)
  • GitHub workflow CI (UnitTests / Selenium) passed.(❗)

This mod introduces cli command

 otrs.Console.pl Admin::User::SyncAll [--count ...] [--invalidate-missing]

that allows to synchronize all agents from specified backend.

Specify --count X to synchronize from AuthSyncBackendX configured
in Config.pm (AuthSyncBackend will be used if --count parameter
is not specified).

Adding --invalidate-missing will force all valid users in DB
that are not present in LDAP backend to be invalidated on sync.

This mod introduces also
AuthSyncModule::LDAP::AlwaysFilterReturnsOnlyValidUsers option; when set,
invalid users in DB will be changed to valid when synchronized from LDAP
to DB.

Author-Change-Id: IB#1110475
Fixes: f9fad03d7c8ab326deb1f536a182fd2d3184cab3
Author-Change-Id: IB#1110475
Fixes: f9fad03d7c8ab326deb1f536a182fd2d3184cab3
Author-Change-Id: IB#1110475
Fixes: 09559a0ee93a29cd20b1679047223a49cfad91f2
Author-Change-Id: IB#1110475
Fixes: f9fad03d7c8ab326deb1f536a182fd2d3184cab3
Author-Change-Id: IB#1110475
Fixes: f9fad03d7c8ab326deb1f536a182fd2d3184cab3
Author-Change-Id: IB#1110475
Author-Change-Id: IB#1110475
Author-Change-Id: IB#1110475
Author-Change-Id: IB#1110475
@dennykorsukewitz dennykorsukewitz added the 1 - 🚀 feature New feature or request label Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 - 🚀 feature New feature or request
Development

Successfully merging this pull request may close these issues.

2 participants