|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-12-01 19:17 UTC] ms at marcant dot 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. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 16:00:01 2025 UTC |
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.