<?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: Qlik Sense and LDAP content in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-and-LDAP-content/m-p/1242435#M24686</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer &lt;A href="https://community.qlik.com/thread/98001"&gt;how to extract data from active directory.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/50661"&gt;Connecting to and Querying Active Directory for Users&lt;/A&gt; - Here you will get sample code attached in Rob's Reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Nov 2016 07:55:23 GMT</pubDate>
    <dc:creator>shraddha_g</dc:creator>
    <dc:date>2016-11-29T07:55:23Z</dc:date>
    <item>
      <title>Qlik Sense and LDAP content</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-and-LDAP-content/m-p/1242433#M24684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any Scripting functions / variables available in Qlik Sense to "collect" LDAP content on the user, besides the function OSUser()?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 06:15:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-and-LDAP-content/m-p/1242433#M24684</guid>
      <dc:creator />
      <dc:date>2016-11-29T06:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense and LDAP content</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-and-LDAP-content/m-p/1242434#M24685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not as part of the authentication. You can of course use the LDAP as a data source and retrieve any information you think you need. How you do that depends on how and where the LDAP data is stored. Perhaps it's a database that can be accessed over an ODBC connection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 07:50:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-and-LDAP-content/m-p/1242434#M24685</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-11-29T07:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense and LDAP content</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-and-LDAP-content/m-p/1242435#M24686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer &lt;A href="https://community.qlik.com/thread/98001"&gt;how to extract data from active directory.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/50661"&gt;Connecting to and Querying Active Directory for Users&lt;/A&gt; - Here you will get sample code attached in Rob's Reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 07:55:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-and-LDAP-content/m-p/1242435#M24686</guid>
      <dc:creator>shraddha_g</dc:creator>
      <dc:date>2016-11-29T07:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense and LDAP content</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-and-LDAP-content/m-p/1242436#M24687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shraddha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the Information. I found there also some other examples, following Rob Wunderlich's thread you pointed me to.&lt;/P&gt;&lt;P&gt;Thus, establishing a Qlik Sense Connector to the LDAP/Active Directory was successful, at least the Connection testing returned 'OK'. However, the SQLfrom Rob's example as well as a looping script throw an error "QVX_UNEXPECTED_END_OF_DATA".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone knows how to deal with that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 15:14:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-and-LDAP-content/m-p/1242436#M24687</guid>
      <dc:creator />
      <dc:date>2016-11-29T15:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense and LDAP content</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-and-LDAP-content/m-p/1242437#M24688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At the start of load statement add First 1000 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 16:07:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-and-LDAP-content/m-p/1242437#M24688</guid>
      <dc:creator>shraddha_g</dc:creator>
      <dc:date>2016-11-29T16:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense and LDAP content</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-and-LDAP-content/m-p/1242438#M24689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeah, I found that limiting factor for extracting data out of LDAP.&lt;/P&gt;&lt;P&gt;But in the mean time I tried several approaches. Here's a quick &amp;amp; dirty one: With only 1000 rows to be extracted in one go there's a mighty chance that you miss out some users. Thus, if you miss any users, you will need to duplicate/triplicate the whole Loop as many times until all of the LDAP data has been loaded. The variable arg needs to reach the last name of the users.&lt;/P&gt;&lt;P&gt;You can add another Do LOOP for the duplication..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET RootDse = 'LDAP://host.name:port';&lt;/P&gt;&lt;P&gt;CONNECT TO [Provider=ADsDSOObject;Encrypt Password=False;Data Source=LDAP://host.name:port;Mode=Read];&lt;/P&gt;&lt;P&gt;LET arg=chr(01);&lt;/P&gt;&lt;P&gt;DO &lt;/P&gt;&lt;P&gt;ADUsers:&lt;/P&gt;&lt;P&gt;FIRST 1000&lt;/P&gt;&lt;P&gt;LOAD DISTINCT&lt;/P&gt;&lt;P&gt;cn,&lt;/P&gt;&lt;P&gt;sAMAccountName as Login,&lt;/P&gt;&lt;P&gt;name as UserName&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SQL select&lt;/P&gt;&lt;P&gt;cn,&lt;/P&gt;&lt;P&gt;sAMAccountName,&lt;/P&gt;&lt;P&gt;name&lt;/P&gt;&lt;P&gt;FROM '$(RootDse)'&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;objectCategory='person' AND&lt;/P&gt;&lt;P&gt;objectClass = 'User' AND&lt;/P&gt;&lt;P&gt;name&amp;gt;'$(arg)'&lt;/P&gt;&lt;P&gt;order by name; // Get rows where "name" is GT the arg&lt;/P&gt;&lt;P&gt;EXIT DO WHEN ScriptError &amp;gt; 1 // Stop loop if SELECT has error&lt;/P&gt;&lt;P&gt;EXIT DO WHEN NoOfRows('nameTable') = 0; // Stop loop if SELECT returns nothing&lt;/P&gt;&lt;P&gt;EXIT DO WHEN peek('UserName') = '$(arg)'; // If the last "name" read is EQ to arg -- no more entries&lt;/P&gt;&lt;P&gt;LET arg=peek('UserName'); // Set the arg to the last "name" read&lt;/P&gt;&lt;P&gt;LOOP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, duplicating/triplicating - It's not nice coding, but it works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Otherwise, as mentioned, when not setting the Limit of FIRST 1000 the script throws an error QVX_UNEXPECTED_END_OF_DATA.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 16:33:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-and-LDAP-content/m-p/1242438#M24689</guid>
      <dc:creator />
      <dc:date>2016-11-29T16:33:52Z</dc:date>
    </item>
  </channel>
</rss>

