note 90032 modified in function.ldap-get-values-len by danbrown
| From: | danbrown@php.net | Date: | Thu, 02 Apr 2009 13:29:48 +0000 |
| Subject: | note 90032 modified in function.ldap-get-values-len by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-152751@lists.php.net to get a copy of this message | ||
no more need to use ldap_get_values_len (). ldap_get_attributes() works well now.
<?php
$attrs = ldap_get_attributes($this->cid, $this->re);
$hex_Sid= bin2hex($attrs['objectSid'][0]); //returns
010500000000000515000000c94d7d363d787b17e77b80109d060000
$hex_GUID= bin2hex($attrs['objectGUID'][0]); //returns 710234bbc2abc148ade8c1f9b4567b24
?>
--was--
no more need to use ldap_get_values_len (). ldap_get_attributes() works well now.
$attrs = ldap_get_attributes($this->cid, $this->re);
$hex_Sid= bin2hex($attrs['objectSid'][0]); //returns
010500000000000515000000c94d7d363d787b17e77b80109d060000
$hex_GUID= bin2hex($attrs['objectGUID'][0]); //returns 710234bbc2abc148ade8c1f9b4567b24
http://php.net/manual/en/function.ldap-get-values-len.php