 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
billybob_jcv
Joined: 04 Jan 2009 Posts: 2
|
Posted: Sun Jan 04, 2009 11:56 pm Post subject: Getting objectsid from AD with Net_LDAP |
|
|
| Hi all - this is my first post here. I'm using the older pear Net_LDAP package and I am trying to retrieve the attribute 'objectsid' from Active Directory. objectsid is binary and 28 bytes, however when I try to use Net_LDAP_Entry:get_value(), I am only getting the first 16 bytes of objectsid. Does anyone have any ideas on why this would be happening and/or what I can do to get all 28 bytes? Thanks! |
|
| Back to top |
|
 |
billybob_jcv
Joined: 04 Jan 2009 Posts: 2
|
Posted: Mon Jan 05, 2009 3:22 am Post subject: Re: Getting objectsid from AD with Net_LDAP |
|
|
| billybob_jcv wrote: | | Hi all - this is my first post here. I'm using the older pear Net_LDAP package and I am trying to retrieve the attribute 'objectsid' from Active Directory. objectsid is binary and 28 bytes, however when I try to use Net_LDAP_Entry:get_value(), I am only getting the first 16 bytes of objectsid. Does anyone have any ideas on why this would be happening and/or what I can do to get all 28 bytes? Thanks! |
As an addendum - I actually think the number of bytes I'm getting is varying - and I suspect it might be because it is stopping when it hits the first byte that = 00. Is that because php is treating it like a string instead of a byte array? I'm not all that experienced in php, so any help would be great! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|