LDAP Account Manager

ShadowAccountExpirationNotifyJob extends PasswordExpirationJob
in package

Job to notify users about account expiration.

Table of Contents

getAlias()  : string
Returns the alias name of the job.
getDescription()  : mixed
{@inheritDoc}
checkSingleUser()  : mixed
Checks if a user needs to change his password.
findUsers()  : array<string|int, mixed>
Searches for users in LDAP.

Methods

getAlias()

Returns the alias name of the job.

public getAlias() : string
Return values
string

name

getDescription()

{@inheritDoc}

public getDescription() : mixed
Tags
see
PasswordExpirationJob::getDescription()
Return values
mixed

checkSingleUser()

Checks if a user needs to change his password.

protected checkSingleUser(int $jobID, array<string|int, mixed> $options, PDO &$pdo, DateTime $now, array<string|int, mixed> $policyOptions, array<string|int, mixed> $user, bool $isDryRun) : mixed
Parameters
$jobID : int

job ID

$options : array<string|int, mixed>

job settings

$pdo : PDO

PDO

$now : DateTime

current time

$policyOptions : array<string|int, mixed>

list of max age values (policy DN => maxAge)

$user : array<string|int, mixed>

user attributes

$isDryRun : bool

just do a dry run, nothing is modified

Return values
mixed

findUsers()

Searches for users in LDAP.

protected findUsers(string $jobID, array<string|int, mixed> $options) : array<string|int, mixed>
Parameters
$jobID : string

unique job identifier

$options : array<string|int, mixed>

config options (name => value)

Return values
array<string|int, mixed>

list of user attributes

Search results