note 75216 deleted from function.ldap-get-values-len by nlopess
| From: | nlopess@php.net | Date: | Sun, 20 May 2007 13:50:44 +0000 |
| Subject: | note 75216 deleted from function.ldap-get-values-len by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-126747@lists.php.net to get a copy of this message | ||
Note Submitter: annibal94s at hotmail dot com
Reason: non-english
----
Pour utiliser objectGUID, il faut utiliser :
-bin2hex pour avoir la chaine objectGUID en hexadecimal.
hex = 3662af5d60b36f47b8b5163053b85a23
-pack("H*",objectGUIDhex) pour avoir le binaire.
bin = 6b¯]`³oG¸µ0S¸Z#
Donc on peut chercher une personne sur son objectGUID qui est unique sous windows (active
directory).
$t= pack("H*","3662af5d60b36f47b8b5163053b85a23");
$filter="(objectGUID=$t)";
retrouve la personne possedant cet objectGUID.