Skip to content

Commit a412e37

Browse files
committed
Added server control OID's
1 parent 2f70aeb commit a412e37

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

src/Ldap.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,31 @@ class Ldap
3434
*/
3535
const PORT = 389;
3636

37+
/**
38+
* Various useful server control OID's.
39+
*
40+
* @see https://ldap.com/ldap-oid-reference-guide/
41+
* @see http://msdn.microsoft.com/en-us/library/cc223359.aspx
42+
*/
43+
const OID_SERVER_START_TLS = '1.3.6.1.4.1.1466.20037';
44+
const OID_SERVER_PAGED_RESULTS = '1.2.840.113556.1.4.319';
45+
const OID_SERVER_SHOW_DELETED = '1.2.840.113556.1.4.417';
46+
const OID_SERVER_SORT = '1.2.840.113556.1.4.473';
47+
const OID_SERVER_CROSSDOM_MOVE_TARGET = '1.2.840.113556.1.4.521';
48+
const OID_SERVER_NOTIFICATION = '1.2.840.113556.1.4.528';
49+
const OID_SERVER_EXTENDED_DN = '1.2.840.113556.1.4.529';
50+
const OID_SERVER_LAZY_COMMIT = '1.2.840.113556.1.4.619';
51+
const OID_SERVER_SD_FLAGS = '1.2.840.113556.1.4.801';
52+
const OID_SERVER_TREE_DELETE = '1.2.840.113556.1.4.805';
53+
const OID_SERVER_DIRSYNC = '1.2.840.113556.1.4.841';
54+
const OID_SERVER_VERIFY_NAME = '1.2.840.113556.1.4.1338';
55+
const OID_SERVER_DOMAIN_SCOPE = '1.2.840.113556.1.4.1339';
56+
const OID_SERVER_SEARCH_OPTIONS = '1.2.840.113556.1.4.1340';
57+
const OID_SERVER_PERMISSIVE_MODIFY = '1.2.840.113556.1.4.1413';
58+
const OID_SERVER_ASQ = '1.2.840.113556.1.4.1504';
59+
const OID_SERVER_FAST_BIND = '1.2.840.113556.1.4.1781';
60+
const OID_SERVER_CONTROL_VLVREQUEST = '2.16.840.1.113730.3.4.9';
61+
3762
/**
3863
* The LDAP host that is currently connected.
3964
*

src/Query/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,7 @@ public function whereDeleted()
10761076
*/
10771077
public function withDeleted()
10781078
{
1079-
return $this->addControl('1.2.840.113556.1.4.417', $isCritical = true);
1079+
return $this->addControl(Ldap::OID_SERVER_SHOW_DELETED, $isCritical = true);
10801080
}
10811081

10821082
/**

0 commit comments

Comments
 (0)