Feature: Sync accounts from the directory 

Description 

A directory provider now syncs its entries at the interval the admin sets (15 minutes to a day, default an hour) and when an admin starts it (startLdapSync, with a dry run). The sync links each entry to the employee with its work e-mail address or personnel number and to that employee's account, which it creates without a password where none exists; it never creates employees. HR sees the entries without an employee (listUnmatchedLdapEntries) and links one (linkLdapEntry). With updateEmployeeFields on, it updates given name, surname and work phone, audited as changed by the directory.

Impact 

The account of a linked entry the directory disabled, or that left the directory or its filter, is blocked with the source directory and its sessions end; the block is lifted when the entry is back. A run that would block more than a fifth of the linked accounts blocks no one, reports massBlockPrevented and notifies the admins (security.ldapSyncFailed) until an admin starts it again with confirmMassBlock. Runs are listed with their counts and errors (listLdapSyncRuns, getLdapSyncRun). New table ldap_sync_run.