|
@@ 426-434 (lines=9) @@
|
| 423 |
|
return; |
| 424 |
|
} |
| 425 |
|
$email = $valueFromLDAP; |
| 426 |
|
if(is_null($valueFromLDAP)) { |
| 427 |
|
$emailAttribute = $this->connection->ldapEmailAttribute; |
| 428 |
|
if(!empty($emailAttribute)) { |
| 429 |
|
$aEmail = $this->access->readAttribute($this->dn, $emailAttribute); |
| 430 |
|
if(is_array($aEmail) && (count($aEmail) > 0)) { |
| 431 |
|
$email = $aEmail[0]; |
| 432 |
|
} |
| 433 |
|
} |
| 434 |
|
} |
| 435 |
|
if(!is_null($email)) { |
| 436 |
|
$user = $this->userManager->get($this->uid); |
| 437 |
|
$currentEmail = $user->getEMailAddress(); |
|
@@ 459-467 (lines=9) @@
|
| 456 |
|
$quota = $quotaDefault !== '' ? $quotaDefault : null; |
| 457 |
|
$quota = !is_null($valueFromLDAP) ? $valueFromLDAP : $quota; |
| 458 |
|
|
| 459 |
|
if(is_null($valueFromLDAP)) { |
| 460 |
|
$quotaAttribute = $this->connection->ldapQuotaAttribute; |
| 461 |
|
if(!empty($quotaAttribute)) { |
| 462 |
|
$aQuota = $this->access->readAttribute($this->dn, $quotaAttribute); |
| 463 |
|
if($aQuota && (count($aQuota) > 0)) { |
| 464 |
|
$quota = $aQuota[0]; |
| 465 |
|
} |
| 466 |
|
} |
| 467 |
|
} |
| 468 |
|
if(!is_null($quota)) { |
| 469 |
|
$user = $this->userManager->get($this->uid)->setQuota($quota); |
| 470 |
|
} |