2015-05-13 1:32 GMT+02:00 Milad Fatenejad <[email protected]>:
> Hello:
>

Hi,

> I am trying to use a binary value (objectGUID from AD) as the main
> identifier and am having some trouble. I am using the executable plugin for
> my destination service. When I use the following mainIdentifier:
>
> <mainIdentifier>srcBean.getDatasetFirstValueById("objectGUID")</mainIdentifier>
>
> I get the following:
>
> dn:: 77+9NyVD77+977+9YE3vv73vv70qbO+/vS13Kg==
>
> From the getDatasetValueById code, it looks like it is taking the byte array
> and converting it directly to a java string. This is then cast to a java
> string...
>
> Instead, I was hoping for a base64 encoded version of the original
> objectGUID...
>
> Can anyone provide an example of how to use a binary value in the main
> identifier? I've been debugging this for a while and am getting desperate.
>


First, you need to declare objectGUID in <binaryAttrs> in the <connection>.

Then, LSC will just pass the binary value, and if you use it in the
DN, your DN will be a binary value. The base64 value you see is the
result of the LDIF output of the value, not the value itself.

Your mail seems very similar to this issue (still open):
http://tools.lsc-project.org/issues/766

Note that we fixed another similar issue in LSC 2.1.3:
http://tools.lsc-project.org/issues/750


Clément.
_______________________________________________________________
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