This repository was archived by the owner on Jul 24, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,12 @@ public function setAttribute($key, $value)
36
36
return $ this ;
37
37
}
38
38
39
+ /**
40
+ * Constructs a schema compatible with the LDAP protocol.
41
+ *
42
+ * @param Schema $schema
43
+ * @return $this
44
+ */
39
45
private function constructLdapSchema (Schema $ schema )
40
46
{
41
47
// Set all the LDAP attributes
@@ -63,6 +69,8 @@ private function constructLdapSchema(Schema $schema)
63
69
64
70
$ this ->setAttribute ('mail ' , $ schema ->getAttribute ('email ' ));
65
71
72
+ $ this ->setAttribute ('employeeId ' , $ schema ->getAttribute ('employee_id ' ));
73
+
66
74
$ this ->setAttribute ('accountExpires ' , $ schema ->getAttribute ('expires ' ));
67
75
68
76
$ this ->setAttribute ('givenName ' , $ schema ->getAttribute ('firstname ' ));
Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ public function testAdldapSchema()
115
115
'description ' => 'Description ' ,
116
116
'display_name ' => 'Display Name ' ,
117
117
'email ' => 'Email ' ,
118
+ 'employee_id ' => 'Employee ID ' ,
118
119
'expires ' => 'Expires ' ,
119
120
'firstname ' => 'First Name ' ,
120
121
'home_directory ' => 'Home Directory ' ,
@@ -167,6 +168,7 @@ public function testAdldapSchema()
167
168
'description ' => array ('Description ' ),
168
169
'displayName ' => array ('Display Name ' ),
169
170
'mail ' => array ('Email ' ),
171
+ 'employeeId ' => array ('Employee ID ' ),
170
172
'accountExpires ' => array ('Expires ' ),
171
173
'givenName ' => array ('First Name ' ),
172
174
'homeDirectory ' => array ('Home Directory ' ),
You can’t perform that action at this time.
0 commit comments