|
@@ 1313-1319 (lines=7) @@
|
| 1310 |
|
* @return bool true on success, false otherwise |
| 1311 |
|
*/ |
| 1312 |
|
private function detectUuidAttribute($dn, $isUser = true, $force = false) { |
| 1313 |
|
if($isUser) { |
| 1314 |
|
$uuidAttr = 'ldapUuidUserAttribute'; |
| 1315 |
|
$uuidOverride = $this->connection->ldapExpertUUIDUserAttr; |
| 1316 |
|
} else { |
| 1317 |
|
$uuidAttr = 'ldapUuidGroupAttribute'; |
| 1318 |
|
$uuidOverride = $this->connection->ldapExpertUUIDGroupAttr; |
| 1319 |
|
} |
| 1320 |
|
|
| 1321 |
|
if(($this->connection->$uuidAttr !== 'auto') && !$force) { |
| 1322 |
|
return true; |
|
@@ 1356-1362 (lines=7) @@
|
| 1353 |
|
* @return string|bool |
| 1354 |
|
*/ |
| 1355 |
|
public function getUUID($dn, $isUser = true) { |
| 1356 |
|
if($isUser) { |
| 1357 |
|
$uuidAttr = 'ldapUuidUserAttribute'; |
| 1358 |
|
$uuidOverride = $this->connection->ldapExpertUUIDUserAttr; |
| 1359 |
|
} else { |
| 1360 |
|
$uuidAttr = 'ldapUuidGroupAttribute'; |
| 1361 |
|
$uuidOverride = $this->connection->ldapExpertUUIDGroupAttr; |
| 1362 |
|
} |
| 1363 |
|
|
| 1364 |
|
$uuid = false; |
| 1365 |
|
if($this->detectUuidAttribute($dn, $isUser)) { |