blob: db31011715130bc69cb5923db7f5d7a5dce7a245 [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3namespace Adldap\Schemas;
4
5class EDirectory extends Schema
6{
7 /**
8 * {@inheritdoc}
9 */
10 public function accountName()
11 {
12 return 'uid';
13 }
14
15 /**
16 * {@inheritdoc}
17 */
18 public function distinguishedName()
19 {
20 return 'dn';
21 }
22
23 /**
24 * {@inheritdoc}
25 */
26 public function distinguishedNameSubKey()
27 {
28 //
29 }
30
31 /**
32 * {@inheritdoc}
33 */
34 public function filterEnabled()
35 {
36 return sprintf('(!(%s=*))', $this->lockoutTime());
37 }
38
39 /**
40 * {@inheritdoc}
41 */
42 public function filterDisabled()
43 {
44 return sprintf('(%s=*)', $this->lockoutTime());
45 }
46
47 /**
48 * {@inheritdoc}
49 */
50 public function lockoutTime()
51 {
52 return 'pwdAccountLockedTime';
53 }
54
55 /**
56 * {@inheritdoc}
57 */
58 public function objectCategory()
59 {
60 return 'objectclass';
61 }
62
63 /**
64 * {@inheritdoc}
65 */
66 public function objectClassGroup()
67 {
68 return 'groupofnames';
69 }
70
71 /**
72 * {@inheritdoc}
73 */
74 public function objectClassOu()
75 {
76 return 'organizationalUnit';
77 }
78
79 /**
80 * {@inheritdoc}
81 */
82 public function objectClassPerson()
83 {
84 return 'inetorgperson';
85 }
86
87 /**
88 * {@inheritdoc}
89 */
90 public function objectClassUser()
91 {
92 return 'inetorgperson';
93 }
94
95 /**
96 * {@inheritdoc}
97 */
98 public function objectGuid()
99 {
100 return 'guid';
101 }
102
103 /**
104 * {@inheritdoc}
105 */
106 public function objectGuidRequiresConversion()
107 {
108 return false;
109 }
110}