@@ -313,18 +313,18 @@ public function login($username, $password, $domainKey = false, $fetchUserDN = f
313
313
$ this ->_singleValuedAttrs [$ domainData ['hostname ' ]] = [];
314
314
Yii::info ("Getting attribute type definitions for this domain! " , __METHOD__ );
315
315
316
- $ result = @ldap_read ($ this -> _l , '' , "(objectClass=*) " , ["subschemaSubentry " ]);
316
+ $ result = @ldap_read ($ l , '' , "(objectClass=*) " , ["subschemaSubentry " ]);
317
317
if ($ result ) {
318
- $ subSchema = ldap_get_entries ($ this -> _l , $ result );
318
+ $ subSchema = ldap_get_entries ($ l , $ result );
319
319
Yii::debug ("Subschema entry: " , __METHOD__ );
320
320
Yii::debug ($ subSchema , __METHOD__ );
321
321
322
322
if (isset ($ subSchema [0 ]['subschemasubentry ' ][0 ])) {
323
323
324
- $ result = @ldap_read ($ this -> _l , $ subSchema [0 ]['subschemasubentry ' ][0 ], "(objectClass=*) " , ["attributeTypes " ]);
324
+ $ result = @ldap_read ($ l , $ subSchema [0 ]['subschemasubentry ' ][0 ], "(objectClass=*) " , ["attributeTypes " ]);
325
325
326
326
if ($ result ) {
327
- $ entries = ldap_get_entries ($ this -> _l , $ result );
327
+ $ entries = ldap_get_entries ($ l , $ result );
328
328
foreach ($ entries [0 ]['attributetypes ' ] as $ key => $ definition ) {
329
329
if (stripos ($ definition , 'SINGLE-VALUE ' ) !== false ) {
330
330
$ match = preg_match ("/NAME [' \"](.*?)[' \"]/ " , $ definition , $ matches );
@@ -334,13 +334,13 @@ public function login($username, $password, $domainKey = false, $fetchUserDN = f
334
334
}
335
335
}
336
336
} else {
337
- Yii::warning ("Could not read attribute Types " . ldap_error ($ this -> _l ), __METHOD__ );
337
+ Yii::warning ("Could not read attribute Types " . ldap_error ($ l ), __METHOD__ );
338
338
}
339
339
} else {
340
340
Yii::warning ("No subschema entry found! " , __METHOD__ );
341
341
}
342
342
} else {
343
- Yii::warning ("Could not read subschema entry: " . ldap_error ($ this -> _l ), __METHOD__ );
343
+ Yii::warning ("Could not read subschema entry: " . ldap_error ($ l ), __METHOD__ );
344
344
}
345
345
Yii::debug ("Single-Value Attributes now: " , __METHOD__ );
346
346
Yii::debug ($ this ->_singleValuedAttrs , __METHOD__ );
0 commit comments