[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Keeping track of lastModifiedTime and lastModifiedBy



On Sun, Jul 29, 2001 at 01:54:11AM +0200, Prune wrote:
> here is my php ldapsearch :
> 
>  $sr=ldap_search($ds,"uid=xxx, ou=users, ou=lecentre.net, dc=lecentre,
> dc=net","uid=*", $return_attr);  
>  
> $return_attr=array('cn', 'creatorsName', 'createTimestamp'); 
> or
> $return_attr=array('*','+');
> or whatever...
> 
> please, help :)

Works for me:

$sr=ldap_search($ds,"dc=venaas,dc=no", "relativeDomainname=www",
		array("*","+"));
$data = ldap_get_entries($ds, $sr);
var_dump($data);

outputs among other things:

    ["createtimestamp"]=>
    array(2) {
      ["count"]=>
      int(1)
      [0]=>
      string(15) "20010412105551Z"
    }
    ["modifiersname"]=>
    array(2) {
      ["count"]=>
      int(1)
      [0]=>
      string(28) "cn=Manager, dc=venaas, dc=no"
    }

There could be a PHP bug, I might be able to help you if you show me
your script. We're getting a bit out of scope for this list though.

I've got one question too though. I didn't know about the +, is there
a draft specifying it?

Stig