1<?php
2
3/**
4 * This file is part of the FreeDSx LDAP package.
5 *
6 * (c) Chad Sikorra <Chad.Sikorra@gmail.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12namespace FreeDSx\Ldap\Control;
13
14/**
15 * Possible Password Policy Error values. draft-behera-ldap-password-policy-10, Section 6.2.
16 *
17 * @see https://tools.ietf.org/html/draft-behera-ldap-password-policy-10
18 * @author Chad Sikorra <Chad.Sikorra@gmail.com>
19 */
20class PwdPolicyError
21{
22    public const PASSWORD_EXPIRED = 0;
23
24    public const ACCOUNT_LOCKED = 1;
25
26    public const CHANGE_AFTER_RESET = 2;
27
28    public const PASSWORD_MOD_NOT_ALLOWED = 3;
29
30    public const MUST_SUPPLY_OLD_PASSWORD = 4;
31
32    public const INSUFFICIENT_PASSWORD_QUALITY = 5;
33
34    public const PASSWORD_TOO_SHORT = 6;
35
36    public const PASSWORD_TOO_YOUNG = 7;
37
38    public const PASSWORD_IN_HISTORY = 8;
39}
40