znuny / Znuny

Znuny/Znuny LTS is a fork of the ((OTRS)) Community Edition, one of the most flexible web-based ticketing systems used for Customer Service, Help Desk, IT Service Management.
https://www.znuny.org
GNU General Public License v3.0
343 stars 83 forks source link

Allow all agent sync from ldap to db #405

Open pboguslawski opened 1 year ago

pboguslawski commented 1 year ago

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

Additional information

Author-Change-Id: IB#1110475

Checklist