<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Converting ObjectSID &amp; objectGUID from active directory to readable format in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Converting-ObjectSID-objectGUID-from-active-directory-to/m-p/2322651#M92573</link>
    <description>&lt;P&gt;Thanks Aami&lt;/P&gt;&lt;P&gt;I have used the routine. Working for me. I have used '{'+objectGUID.convertObjectGUIDToString(row1.objectGUID)+'}' to get curly brackets around them. Thanks again&lt;/P&gt;</description>
    <pubDate>Fri, 07 Oct 2022 15:20:05 GMT</pubDate>
    <dc:creator>TSivakumar</dc:creator>
    <dc:date>2022-10-07T15:20:05Z</dc:date>
    <item>
      <title>Converting ObjectSID &amp; objectGUID from active directory to readable format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Converting-ObjectSID-objectGUID-from-active-directory-to/m-p/2322648#M92570</link>
      <description>&lt;P&gt;Hi All ,&lt;/P&gt;&lt;P&gt;We are retrieving the data from LDAP active directory and ObjectSID &amp;amp; objectGUID are fetched in a non readable format. Is there any easy way to convert them to readable format?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate all the responses. TIA&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 07:12:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Converting-ObjectSID-objectGUID-from-active-directory-to/m-p/2322648#M92570</guid>
      <dc:creator>Ath</dc:creator>
      <dc:date>2019-05-22T07:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Converting ObjectSID &amp; objectGUID from active directory to readable format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Converting-ObjectSID-objectGUID-from-active-directory-to/m-p/2322649#M92571</link>
      <description>&lt;P&gt;try this&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCjbZCAS" target="_blank" rel="noopener"&gt;https://community.talend.com/t5/Design-and-Development/resolved-tLdapInput-decoding-the-objectSID-Attribute/td-p/69230&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCm1cCAC" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/Convert-AD-s-objectGUID-to-string/td-p/82084&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 13:53:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Converting-ObjectSID-objectGUID-from-active-directory-to/m-p/2322649#M92571</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-05-22T13:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Converting ObjectSID &amp; objectGUID from active directory to readable format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Converting-ObjectSID-objectGUID-from-active-directory-to/m-p/2322650#M92572</link>
      <description>&lt;P&gt;The below routine works well to convert&amp;nbsp;ObjectSID &amp;amp; objectGUID from active directory to readable format.&lt;/P&gt;&lt;P&gt;Call the routine in Tmap to convert objectSID and objectGUID.&lt;BR /&gt;Tostring.convertObjectGUIDToString(row.ColumnName)&lt;/P&gt;&lt;P&gt;Tostring.convertObjectSidToString(row.ColumnName)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;package routines;&lt;/P&gt;&lt;P&gt;public class Tostring {&lt;BR /&gt;&lt;BR /&gt;//converts objectSID to readable string format&lt;BR /&gt;&lt;BR /&gt;public static String convertObjectSidToString(byte[] objectSid) {&lt;BR /&gt;int offset, size;&lt;BR /&gt;if (objectSid[0] != 1)&lt;BR /&gt;throw new IllegalArgumentException("objectSid revision must be 1");&lt;BR /&gt;&lt;BR /&gt;StringBuilder stringSidBuilder = new StringBuilder("S-1-");&lt;BR /&gt;int subAuthorityCount = objectSid[1] &amp;amp; 0xFF;&lt;BR /&gt;long identifierAuthority = 0;&lt;BR /&gt;offset = 2;&lt;BR /&gt;size = 6;&lt;BR /&gt;for (int i = 0; i &amp;lt; size; i++) {&lt;BR /&gt;identifierAuthority |= (long) (objectSid[offset + i] &amp;amp; 0xFF) &amp;lt;&amp;lt; (8 * (size - 1 - i));&lt;BR /&gt;}&lt;BR /&gt;if (identifierAuthority &amp;lt; Math.pow(2, 32)) {&lt;BR /&gt;stringSidBuilder.append(Long.toString(identifierAuthority));&lt;BR /&gt;} else {&lt;BR /&gt;stringSidBuilder.append("0x").append(&lt;BR /&gt;Long.toHexString(identifierAuthority).toUpperCase());&lt;BR /&gt;}&lt;BR /&gt;offset = 8;&lt;BR /&gt;size = 4; // 32-bits (4 bytes) for each SubAuthority&lt;BR /&gt;for (int i = 0; i &amp;lt; subAuthorityCount; i++, offset += size) {&lt;BR /&gt;long subAuthority = 0;&lt;BR /&gt;for (int j = 0; j &amp;lt; size; j++) {&lt;BR /&gt;subAuthority |= (long) (objectSid[offset + j] &amp;amp; 0xFF) &amp;lt;&amp;lt; (8 * j);&lt;BR /&gt;}&lt;BR /&gt;stringSidBuilder.append("-").append(subAuthority);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;return stringSidBuilder.toString();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;//converts objectGUID to readable string format&lt;BR /&gt;&lt;BR /&gt;public static String convertObjectGUIDToString(byte[] objectGUID) {&lt;BR /&gt;StringBuilder displayStr = new StringBuilder();&lt;BR /&gt;displayStr.append(prefixZeros((int) objectGUID[3] &amp;amp; 0xFF));&lt;BR /&gt;displayStr.append(prefixZeros((int) objectGUID[2] &amp;amp; 0xFF));&lt;BR /&gt;displayStr.append(prefixZeros((int) objectGUID[1] &amp;amp; 0xFF));&lt;BR /&gt;displayStr.append(prefixZeros((int) objectGUID[0] &amp;amp; 0xFF));&lt;BR /&gt;displayStr.append("-");&lt;BR /&gt;displayStr.append(prefixZeros((int) objectGUID[5] &amp;amp; 0xFF));&lt;BR /&gt;displayStr.append(prefixZeros((int) objectGUID[4] &amp;amp; 0xFF));&lt;BR /&gt;displayStr.append("-");&lt;BR /&gt;displayStr.append(prefixZeros((int) objectGUID[7] &amp;amp; 0xFF));&lt;BR /&gt;displayStr.append(prefixZeros((int) objectGUID[6] &amp;amp; 0xFF));&lt;BR /&gt;displayStr.append("-");&lt;BR /&gt;displayStr.append(prefixZeros((int) objectGUID[8] &amp;amp; 0xFF));&lt;BR /&gt;displayStr.append(prefixZeros((int) objectGUID[9] &amp;amp; 0xFF));&lt;BR /&gt;displayStr.append("-");&lt;BR /&gt;displayStr.append(prefixZeros((int) objectGUID[10] &amp;amp; 0xFF));&lt;BR /&gt;displayStr.append(prefixZeros((int) objectGUID[11] &amp;amp; 0xFF));&lt;BR /&gt;displayStr.append(prefixZeros((int) objectGUID[12] &amp;amp; 0xFF));&lt;BR /&gt;displayStr.append(prefixZeros((int) objectGUID[13] &amp;amp; 0xFF));&lt;BR /&gt;displayStr.append(prefixZeros((int) objectGUID[14] &amp;amp; 0xFF));&lt;BR /&gt;displayStr.append(prefixZeros((int) objectGUID[15] &amp;amp; 0xFF));&lt;BR /&gt;return displayStr.toString();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;private static String prefixZeros(int value) {&lt;BR /&gt;if (value &amp;lt;= 0xF) {&lt;BR /&gt;StringBuilder sb = new StringBuilder("0");&lt;BR /&gt;sb.append(Integer.toHexString(value));&lt;/P&gt;&lt;P&gt;return sb.toString();&lt;/P&gt;&lt;P&gt;} else {&lt;BR /&gt;return Integer.toHexString(value);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 08:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Converting-ObjectSID-objectGUID-from-active-directory-to/m-p/2322650#M92572</guid>
      <dc:creator>Aami</dc:creator>
      <dc:date>2019-08-13T08:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Converting ObjectSID &amp; objectGUID from active directory to readable format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Converting-ObjectSID-objectGUID-from-active-directory-to/m-p/2322651#M92573</link>
      <description>&lt;P&gt;Thanks Aami&lt;/P&gt;&lt;P&gt;I have used the routine. Working for me. I have used '{'+objectGUID.convertObjectGUIDToString(row1.objectGUID)+'}' to get curly brackets around them. Thanks again&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 15:20:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Converting-ObjectSID-objectGUID-from-active-directory-to/m-p/2322651#M92573</guid>
      <dc:creator>TSivakumar</dc:creator>
      <dc:date>2022-10-07T15:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Converting ObjectSID &amp; objectGUID from active directory to readable format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Converting-ObjectSID-objectGUID-from-active-directory-to/m-p/2522046#M147672</link>
      <description>&lt;P&gt;Thanks. It's a shame the components sets output schema as String for such columns and don't convert them as String, in my case it resulted in java object identifier being transferred around instead of the GUID... The component should not work this way.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2025 08:39:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Converting-ObjectSID-objectGUID-from-active-directory-to/m-p/2522046#M147672</guid>
      <dc:creator>VictorFaure</dc:creator>
      <dc:date>2025-06-24T08:39:52Z</dc:date>
    </item>
  </channel>
</rss>

