mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 08:19:05 +01:00
LSldapObject : Fix method to get rdn value
This commit is contained in:
parent
e494784859
commit
91dbcf4a6e
1 changed files with 8 additions and 2 deletions
|
@ -865,7 +865,7 @@ class LSldapObject {
|
|||
return $this -> dn;
|
||||
}
|
||||
else if(($val=='rdn')||($val=='%{rdn}')) {
|
||||
return $this -> attrs[ $this -> config['rdn'] ] -> getValue();
|
||||
return $this -> rdn;
|
||||
}
|
||||
else if(($val=='subDn')||($val=='%{subDn}')) {
|
||||
return $this -> subDnValue;
|
||||
|
@ -1805,13 +1805,19 @@ class LSldapObject {
|
|||
$this -> cache['subDnValue'] = self :: getSubDnValue($this -> dn);
|
||||
return $this -> cache['subDnValue'];
|
||||
}
|
||||
if ($key=='subDnName') {
|
||||
elseif ($key=='subDnName') {
|
||||
if ($this -> cache['subDnName']) {
|
||||
return $this -> cache['subDnName'];
|
||||
}
|
||||
$this -> cache['subDnName'] = self :: getSubDnName($this -> dn);
|
||||
return $this -> cache['subDnName'];
|
||||
}
|
||||
elseif ($key=='rdn') {
|
||||
if ($this -> config['rdn'] && isset($this -> attrs[ $this -> config['rdn'] ])) {
|
||||
return $this -> attrs[ $this -> config['rdn'] ] -> getValue();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue