From 84d74d857760d83a31c98758ab19177a68c8b8f3 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Wed, 12 Oct 2011 17:38:27 +0000 Subject: [PATCH] show some internal attributes on 389 server --- lam/lib/modules.inc | 4 +++- lam/templates/3rdParty/pla/config/config.php | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index 113f04a1..62a73b02 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -1366,7 +1366,9 @@ class accountContainer { $this->module = array(); $modules = $_SESSION['config']->get_AccountModules($this->type); $search = substr($dn, 0, strpos($dn, ',')); - $result = @ldap_read($_SESSION['ldap']->server(), escapeDN($dn), escapeDN($search), array('*', '+'), 0, 0, 0, LDAP_DEREF_NEVER); + $searchAttrs = array('*', '+', 'creatorsName', 'createTimestamp', 'modifiersName', + 'modifyTimestamp', 'hasSubordinates', 'pwdChangedTime'); + $result = @ldap_read($_SESSION['ldap']->server(), escapeDN($dn), escapeDN($search), $searchAttrs, 0, 0, 0, LDAP_DEREF_NEVER); if (!$result) { return array(array("ERROR", _("Unable to load LDAP entry:") . " " . htmlspecialchars($dn), ldap_error($_SESSION['ldap']->server()))); } diff --git a/lam/templates/3rdParty/pla/config/config.php b/lam/templates/3rdParty/pla/config/config.php index a2187639..9d341bfb 100644 --- a/lam/templates/3rdParty/pla/config/config.php +++ b/lam/templates/3rdParty/pla/config/config.php @@ -68,4 +68,6 @@ if (!checkIfWriteAccessIsAllowed()) { $servers->setValue('server','read_only',true); } $servers->setValue('unique','attrs',array()); +$servers->setValue('server','custom_sys_attrs', array('creatorsName', 'createTimestamp', 'modifiersName', + 'modifyTimestamp', 'hasSubordinates', 'pwdChangedTime')); ?>