2012/11/20 Emilio García <[email protected]>
>
> Good day everyone,
>
> I am trying to set up the groupType attribute in an AD group to 0x80000002 
> (which I think it belongs to a security global group).
> I tried:
>
>                  <dataset>
>                     <name>groupType</name>
>                     <policy>KEEP</policy>
>                     <createValues>
>                         <string>0x80000002</string>
>                     </createValues>
>                 </dataset>
>
>                  <dataset>
>                     <name>groupType</name>
>                     <policy>KEEP</policy>
>                     <createValues>
>                         <string>-2147483646</string>
>                     </createValues>
>                 </dataset>
>
> But it doesn't seem to like it :(. The number one is being transformed in a 
> float number, and the other one I think it is being sent as string. So I have 
> errors in the Active Directory side when it tries to create the group.
>
> Any clue? I ran out of ideas...


I think this must be a binary value. See http://tools.lsc-project.org/issues/453

You can try this code to set the binary value:


        GUID = "0x80000002";
        for (int c=0;c<GUID.length;c++) {
            byteGUID = byteGUID + "\\" + AddLeadingZero((int)GUID[c] & 0xFF);
        }
_______________________________________________________________
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