PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Getting objectsid from AD with Net_LDAP

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Networking
View previous topic :: View next topic  
Author Message
billybob_jcv



Joined: 04 Jan 2009
Posts: 2

PostPosted: Sun Jan 04, 2009 11:56 pm    Post subject: Getting objectsid from AD with Net_LDAP Reply with quote

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
View user's profile Send private message
billybob_jcv



Joined: 04 Jan 2009
Posts: 2

PostPosted: Mon Jan 05, 2009 3:22 am    Post subject: Re: Getting objectsid from AD with Net_LDAP Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Networking All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement