1<?php
2/**
3 * This file is part of the FreeDSx LDAP package.
4 *
5 * (c) Chad Sikorra <Chad.Sikorra@gmail.com>
6 *
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
9 */
10
11namespace FreeDSx\Ldap\Operation;
12
13/**
14 * Message response result codes. Defined in RFC 4511, 4.1.9
15 *
16 * @author Chad Sikorra <Chad.Sikorra@gmail.com>
17 */
18class ResultCode
19{
20    public const SUCCESS = 0;
21
22    public const OPERATIONS_ERROR = 1;
23
24    public const PROTOCOL_ERROR = 2;
25
26    public const TIME_LIMIT_EXCEEDED = 3;
27
28    public const SIZE_LIMIT_EXCEEDED = 4;
29
30    public const COMPARE_FALSE = 5;
31
32    public const COMPARE_TRUE = 6;
33
34    public const AUTH_METHOD_UNSUPPORTED = 7;
35
36    public const STRONGER_AUTH_REQUIRED = 8;
37
38    public const REFERRAL = 10;
39
40    public const ADMIN_LIMIT_EXCEEDED = 11;
41
42    public const UNAVAILABLE_CRITICAL_EXTENSION = 12;
43
44    public const CONFIDENTIALITY_REQUIRED = 13;
45
46    public const SASL_BIND_IN_PROGRESS = 14;
47
48    public const NO_SUCH_ATTRIBUTE = 16;
49
50    public const UNDEFINED_ATTRIBUTE_TYPE = 17;
51
52    public const INAPPROPRIATE_MATCHING = 18;
53
54    public const CONSTRAINT_VIOLATION = 19;
55
56    public const ATTRIBUTE_OR_VALUE_EXISTS = 20;
57
58    public const INVALID_ATTRIBUTE_SYNTAX = 21;
59
60    public const NO_SUCH_OBJECT = 32;
61
62    public const ALIAS_PROBLEM = 33;
63
64    public const INVALID_DN_SYNTAX = 34;
65
66    public const ALIAS_DEREFERENCING_PROBLEM = 36;
67
68    public const INAPPROPRIATE_AUTHENTICATION = 48;
69
70    public const INVALID_CREDENTIALS = 49;
71
72    public const INSUFFICIENT_ACCESS_RIGHTS = 50;
73
74    public const BUSY = 51;
75
76    public const UNAVAILABLE = 52;
77
78    public const UNWILLING_TO_PERFORM = 53;
79
80    public const LOOP_DETECT = 54;
81
82    public const SORT_CONTROL_MISSING = 60;
83
84    public const OFFSET_RANGE_ERROR = 61;
85
86    public const NAMING_VIOLATION = 64;
87
88    public const OBJECT_CLASS_VIOLATION = 65;
89
90    public const NOT_ALLOWED_ON_NON_LEAF = 66;
91
92    public const NOT_ALLOWED_ON_RDN = 67;
93
94    public const ENTRY_ALREADY_EXISTS = 68;
95
96    public const OBJECT_CLASS_MODS_PROHIBITED = 69;
97
98    public const AFFECTS_MULTIPLE_DSAS = 71;
99
100    public const VIRTUAL_LIST_VIEW_ERROR = 76;
101
102    public const OTHER = 80;
103
104    public const CANCELED = 118;
105
106    public const NO_SUCH_OPERATION = 119;
107
108    public const TOO_LATE = 120;
109
110    public const CANNOT_CANCEL = 121;
111
112    public const ASSERTION_FAILED = 122;
113
114    public const AUTHORIZATION_DENIED = 123;
115
116    public const SYNCHRONIZATION_REFRESH_REQUIRED = 4096;
117}
118