LDAP Account Manager

WindowsPasswordNotifyJob extends PasswordExpirationJob
in package

Job to notify users about password expiration.

Table of Contents

getAlias()  : string
Returns the alias name of the job.
checkSingleUser()  : mixed
Checks if a user needs to change his password.
findUsers()  : array<string|int, mixed>
Searches for users in LDAP.
getPolicyOptions()  : array<string|int, mixed>
Returns a list of password policy options. The options are later passed to function checkSingleUser().

Methods

getAlias()

Returns the alias name of the job.

public getAlias() : string
Return values
string

name

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

getPolicyOptions()

Returns a list of password policy options. The options are later passed to function checkSingleUser().

protected getPolicyOptions() : array<string|int, mixed>

This reads the password policy to calculate expiration times later. Maxpwdage is the maximum amount of time, in 100-nanosecond intervals, a password is valid.

Return values
array<string|int, mixed>

options ('maxpwdage' => max age in ns)

Search results