ID: 14312 Updated by: venaas Reported By: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]