That seems java rather than javascript. Can I embed java code? Or shall I adapt it to js?
Thanks! On 20 November 2012 16:16, Clément OUDOT <[email protected]> wrote: > 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); > } > Cloudreach Limited is a limited company registered in England with registered number 06975407 The above terms reflect a potential business arrangement, are provided solely as a basis for further discussion, and are not intended to be and do not constitute a legally binding obligation. No legally binding obligations will be created, implied, or inferred until an agreement in final form is executed in writing by all parties involved. This email may be confidential or privileged. If you received this communication by mistake, please don't forward it to anyone else, please erase all copies and attachments, and please let us know that it has gone to the wrong person.
_______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-users mailing list [email protected] http://lists.lsc-project.org/listinfo/lsc-users

