LDAP Account Manager

ShadowAccountPasswordNotifyJob extends PasswordExpirationJob
in package

Job to notify users about password expiration.

Table of Contents

getAlias()  : string
Returns the alias name of the job.
getConfigOptions()  : 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

getConfigOptions()

{@inheritDoc}

public getConfigOptions(mixed $jobID) : mixed
Parameters
$jobID : mixed
Tags
see
PasswordExpirationJob::getConfigOptions()
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