php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #14312 LDAP modifyTimestamp et al.
Submitted: 2001-12-01 19:17 UTC Modified: 2001-12-02 03:32 UTC
From: ms at marcant dot net Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.6 OS: Linux
Private report: No CVE-ID: None
 [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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-02 03:32 UTC] venaas@php.net
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.
 
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 14:01:30 2025 UTC