|
@@ 1516-1522 (lines=7) @@
|
| 1513 |
|
* @return bool true on success, false otherwise |
| 1514 |
|
*/ |
| 1515 |
|
private function detectUuidAttribute($dn, $isUser = true, $force = false) { |
| 1516 |
|
if($isUser) { |
| 1517 |
|
$uuidAttr = 'ldapUuidUserAttribute'; |
| 1518 |
|
$uuidOverride = $this->connection->ldapExpertUUIDUserAttr; |
| 1519 |
|
} else { |
| 1520 |
|
$uuidAttr = 'ldapUuidGroupAttribute'; |
| 1521 |
|
$uuidOverride = $this->connection->ldapExpertUUIDGroupAttr; |
| 1522 |
|
} |
| 1523 |
|
|
| 1524 |
|
if(($this->connection->$uuidAttr !== 'auto') && !$force) { |
| 1525 |
|
return true; |
|
@@ 1559-1565 (lines=7) @@
|
| 1556 |
|
* @return string|bool |
| 1557 |
|
*/ |
| 1558 |
|
public function getUUID($dn, $isUser = true) { |
| 1559 |
|
if($isUser) { |
| 1560 |
|
$uuidAttr = 'ldapUuidUserAttribute'; |
| 1561 |
|
$uuidOverride = $this->connection->ldapExpertUUIDUserAttr; |
| 1562 |
|
} else { |
| 1563 |
|
$uuidAttr = 'ldapUuidGroupAttribute'; |
| 1564 |
|
$uuidOverride = $this->connection->ldapExpertUUIDGroupAttr; |
| 1565 |
|
} |
| 1566 |
|
|
| 1567 |
|
$uuid = false; |
| 1568 |
|
if($this->detectUuidAttribute($dn, $isUser)) { |