Changeset View
Changeset View
Standalone View
Standalone View
lib/Auth/LDAP.php
Show First 20 Lines • Show All 390 Lines • ▼ Show 20 Lines | if (!empty($attributes['domainrelatedobject_only'])) { | ||||
public function domain_edit($domain, $attributes, $typeid = null) | public function domain_edit($domain, $attributes, $typeid = null) | ||||
{ | { | ||||
$domain = $this->domain_info($domain, array_keys($attributes)); | $domain = $this->domain_info($domain, array_keys($attributes)); | ||||
if (empty($domain)) { | if (empty($domain)) { | ||||
return false; | return false; | ||||
} | } | ||||
// remove invalid/hidden attributes | |||||
if (isset($attributes['domainrelatedobject_only'])) { | |||||
unset($attributes['domainrelatedobject_only']); | |||||
} | |||||
$domain_dn = key($domain); | $domain_dn = key($domain); | ||||
// We should start throwing stuff over the fence here. | // We should start throwing stuff over the fence here. | ||||
return $this->modify_entry($domain_dn, $domain[$domain_dn], $attributes); | return $this->modify_entry($domain_dn, $domain[$domain_dn], $attributes); | ||||
} | } | ||||
public function domain_delete($domain) | public function domain_delete($domain) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 1,089 Lines • Show Last 20 Lines |