LATER EDIT: UserProfile_GUID has nothing to do with objectguid in LDAP. However, it can be used as DN like this dn=<GUID={the_string}
when you bind to LDAP. UserProfile_GUID and objectguid are different things
I want to send the current user's UserProfile_GUID
to a php script that searches the LDAP server by the objectguid
property, giving me the user's name.
The problem is bin2hex(objectguid)
in php returns a different value from the UserProfile_GUID
that's showing in Sharepoint.
So what format is UserProfile_GUID
in Sharepoint? How can I use it to search the LDAP server?
UserProfile_GUID
in Sharepoint is something like xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
LATER EDIT: Is there any way I can find some common ID between Sharepoint user propreties and php LDAP? So I can use it to validate the user from Sharepoint to php