Hi Sebastien,

Thanks for the reply.  Forgive my ignorance, but would you mind posting an
brief example of how I might go about casting and retrieving a byte array
using that method. I've tried casting it several ways but I only managed
to throw Javascript errors.  I am no Java/JS expert by any means.

Thanks again,
Alex

> Hi Alex,
>
> You should take a look at the following Javadoc page :
> http://lsc-project.org/javadoc/2.0-SNAPSHOT/org/lsc/beans/IBean.html
>
> You will see that there is a method
> (Set<http://download.oracle.com/javase/6/docs/api/java/util/Set.html?is-external=true>
> <Object<http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true>>
> *getDatasetById*(String<http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true>
> id))
> that you can use to iterate over the results to cast them to a byte array
> that you should be able to use.
>
> Kind regards,
> --
> Sebastien BAHLOUL
> IAM / Security specialist
> Ldap Synchronization Connector : http://lsc-project.org
> Blog : http://sbahloul.wordpress.com/
>
>
>
> 2012/8/7 <[email protected]>
>
>>
>> Hello,
>>
>> I need to extract the RID from the AD objectSid, and use it to populate
>> uidNumber in the destination LDAP. All methods I could find in the LSC
>> documentation seem to corrupt the byte value, preventing parsing of the
>> objectSid. Most methods return a string, which seems to corrupt the data
>> during string conversion.  The only method which returns a byte array
>> (getDatasetsBytes) seems to return a small amount of unusable random
>> data
>> every time (couldn't find any useful documentation on this one).  It
>> seems
>> like LSC needs a method like getDatasetBytesById() that returns an
>> unadulterated byte array for the attribute in question.  Is there
>> presently a method for accomplishing this which I may have missed?
>>
>> Additional Info:
>> - LSC 2.0
>> - I've set <binaryAttribute><string>objectSid</string></binaryAttribute>
>> in the LDAP source to no avail
>>
>> Thanks!
>> Alex
>>
>>
>> _______________________________________________________________
>> Ldap Synchronization Connector (LSC) - http://lsc-project.org
>>
>> lsc-users mailing list
>> [email protected]
>> http://lists.lsc-project.org/listinfo/lsc-users
>>
>


_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users

Reply via email to