Bug #14312 Updated: LDAP modifyTimestamp et al.

From: Date: Sun, 02 Dec 2001 08:32:59 +0000
Subject: Bug #14312 Updated: LDAP modifyTimestamp et al.
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-72253@lists.php.net to get a copy of this message
ID: 14312 Updated by: venaas Reported By: ms@marcant.net Old Status: Open Status: Closed Bug Type: Feature/Change Request Operating System: Linux PHP Version: 4.0.6 New Comment: Works quite well for me, tested with OpenLDAP 2 libs, Linux, Apache and 4.0.6. In ldap_search you must specify the attributes, I've tested the following: Get all the normal attributes and operation attributes: $sr=ldap_search($ds, $base, $filter, array("*","+")); Get operation attributes only: $sr=ldap_search($ds, $base, $filter, array("+")); Note that + is an OpenLDAP server extension $sr=ldap_search($ds, $base, $fiter, array("modifiersName", "modifyTimestamp", "creatorsName", "createTimestamp")); All of these worked fine. What I did to look at the data was: $info = ldap_get_entries($ds, $sr); var_dump($info); Note that the attribute names are all in lower case in the result. Maybe this was your error? I'm closing this now, reopen and submit a shortest possible script demonstrating the problem if you still think there is one. Previous Comments: ------------------------------------------------------------------------ [2001-12-01 19:17:21] ms@marcant.net Openldap can automatically maintain special attributes for Ldap entries such as: modifiersName, modifyTimestamp, creatorsName, and createTimestamp The command-line utility "ldapsearch" can show this attributes but it seems not possible via PHP to retrieve their values. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14312&edit=1

« previous php.dev (#72253) next »