if (!is_array($attributes)) {
$attributes = array($attributes);
}
+ $this->mapKeys($attributes);
} else {
$attributes = array();
}
}
$result = $subtree;
}
+
+ $this->unmapAttributes($result);
+
return $this->getEntries($result);
}
$dn));
}
if (empty($attrs)) {
- return $this->data[$dn]['data'];
+ $data = $this->data[$dn]['data'];
+ $this->unmapAttributes($data);
+ return $data;
} else {
+ $this->mapKeys($attrs);
+
$result = array();
$data = $this->data[$dn]['data'];
$result[$attr] = $data[$attr];
}
}
+
+ $this->unmapAttributes($result);
+
return $result;
}
}
$result = $this->bind();
}
+ $this->mapAttributes($data);
+
$ldap_data = array();
foreach ($data as $key => $val) {
if (!is_array($val)) {