Hey,
Im creating an intranet and when a user logs on I use the Active Directory to validate their logon, then store the objectGUID in a session variable, which I first convert to hex using bin2hex()
My question is, how do I then use it to query the active directory for group membership etc, I dont seem to be able to get it in the correct format to use something like:
so after i've converted to hex i have a guid that looks something like this:
4e7c7075e7ace44 4af00b116283925 7b
Apparently the data type is a 128bit octal string. (16 bytes)... whatever that is!
I've tried using unpack(), but im not sure that even if i manage to convert it into binary I can even use this kind of data with ldap_search()
Any help appreciated!
Thanks
Andy
Im creating an intranet and when a user logs on I use the Active Directory to validate their logon, then store the objectGUID in a session variable, which I first convert to hex using bin2hex()
My question is, how do I then use it to query the active directory for group membership etc, I dont seem to be able to get it in the correct format to use something like:
Code:
$filter = "objectguid=$objectguid";
4e7c7075e7ace44 4af00b116283925 7b
Apparently the data type is a 128bit octal string. (16 bytes)... whatever that is!
I've tried using unpack(), but im not sure that even if i manage to convert it into binary I can even use this kind of data with ldap_search()
Any help appreciated!
Thanks
Andy
Comment