do not set RDN from profile if active modules do not support it
This commit is contained in:
parent
6aaae2094a
commit
4a4907a63a
|
@ -793,7 +793,9 @@ class accountContainer {
|
||||||
$modules = array_keys($this->module);
|
$modules = array_keys($this->module);
|
||||||
foreach ($modules as $module) $this->module[$module]->load_profile($profile);
|
foreach ($modules as $module) $this->module[$module]->load_profile($profile);
|
||||||
if (isset($profile['ldap_rdn'][0])) {
|
if (isset($profile['ldap_rdn'][0])) {
|
||||||
$this->rdn = $profile['ldap_rdn'][0];
|
if (in_array($profile['ldap_rdn'][0], getRDNAttributes($this->type))) {
|
||||||
|
$this->rdn = $profile['ldap_rdn'][0];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (isset($profile['ldap_suffix'][0])) {
|
if (isset($profile['ldap_suffix'][0])) {
|
||||||
$this->dn = $profile['ldap_suffix'][0];
|
$this->dn = $profile['ldap_suffix'][0];
|
||||||
|
@ -1439,7 +1441,9 @@ class accountContainer {
|
||||||
$modules = array_keys($this->module);
|
$modules = array_keys($this->module);
|
||||||
foreach ($modules as $module) $this->module[$module]->load_profile($profile);
|
foreach ($modules as $module) $this->module[$module]->load_profile($profile);
|
||||||
if (isset($profile['ldap_rdn'][0])) {
|
if (isset($profile['ldap_rdn'][0])) {
|
||||||
$this->rdn = $profile['ldap_rdn'][0];
|
if (in_array($profile['ldap_rdn'][0], getRDNAttributes($this->type))) {
|
||||||
|
$this->rdn = $profile['ldap_rdn'][0];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (isset($profile['ldap_suffix'][0])) {
|
if (isset($profile['ldap_suffix'][0])) {
|
||||||
$this->dn = $profile['ldap_suffix'][0];
|
$this->dn = $profile['ldap_suffix'][0];
|
||||||
|
|
Loading…
Reference in New Issue