SilverStripe\LDAP\Tasks\LDAPGroupSyncTask
Class LDAPGroupSyncTask
A task to sync all groups from a specific DN in LDAP to the SilverStripe site in Group models
Synopsis
class LDAPGroupSyncTask
extends BuildTask
{
- // members
- private static string $segment = 'LDAPGroupSyncTask';
- private static array $dependencies = ;
- private static bool $destructive = false;
- protected LDAPService $ldapService;
- // methods
- public string getTitle()
- public void run()
- protected void log()
- public $this setLDAPService()
Hierarchy
Extends
- SilverStripe\Dev\BuildTask
Members
private
- $dependencies — array
- $destructive
—
SilverStripe\LDAP\Tasks\bool
Setting this to true causes the sync to delete any local Group records that were previously imported, but no longer existing in LDAP. - $segment
—
string
{@inheritDoc}
protected
- $ldapService — SilverStripe\LDAP\Services\LDAPService
Methods
protected
- log() — Sends a message, formatted either for the CLI or browser
public
- getTitle()
- run() — {@inheritDoc}
- setLDAPService()