<?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 LDAP via SSL (LDAPS) not working reliable in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/LDAP-via-SSL-LDAPS-not-working-reliable/m-p/1835491#M9522</link>
    <description>&lt;P&gt;We implemented a SSL connection to the Windows AD.&amp;nbsp; Qlik Sense Feb 21 Patch2&lt;/P&gt;&lt;P&gt;After doing some work with ceritficates it is now working essentially.&lt;/P&gt;&lt;P&gt;Connection String:&amp;nbsp; &lt;STRONG&gt;LDAPS://hostname:636&lt;/STRONG&gt; is working properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the script we load several attributes of usergroups from the Windows AD. This done via a loop and concatenate load of each group and users to a table. Curently 86 groups with a total of 300 users.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LIB CONNECT TO 'AD-Connector'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;*&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;,'ACTIVE' as UserFlag&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;,cn as name&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;,sAMAccountName as "userid"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;,'group' as "type"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;,'$(vGroupName)' as "value";&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;SQL SELECT distinguishedName,cn,displayName,sAMAccountName,objectCategory,objectClass,mail,department FROM &lt;FONT color="#FF0000"&gt;'LDAP://hostname:636'&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;WHERE memberOf='cn=$(vGroupName),ou=xxx_yy,ou=vvv_ww,dc=campus,dc=xxx,dc=de' and 'userAccountControl:1.2.840.113556.1.4.803:'&amp;lt;&amp;gt;2;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script is starting to load the data from the AD. After some groups (different each time) it gets an error and stops the load. If you do a fast retry it usually works at the second or third time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Logfile extract:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;tmpAllUsers &amp;lt;&amp;lt; bf4bdd0e-0d67-41f3-869a-d42bbbe6316d&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Abgerufene Zeilen: 4&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;tmpAllUsers &amp;lt;&amp;lt; LDAP://hostname:636&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Abgerufene Zeilen: 6&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;tmpAllUsers &amp;lt;&amp;lt; LDAP://hostname:636&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Abgerufene Zeilen: 6&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;tmpAllUsers &amp;lt;&amp;lt; LDAP://hostname:636&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Abgerufene Zeilen: 259&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;---&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;Der folgende Fehler ist aufgetreten:&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;Connector reply error: ErrorSource: Active Directory, ErrorMsg: The server is not operational.&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;Der Fehler ist hier aufgetreten:&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;SQL SELECT distinguishedName,cn,displayName,sAMAccountName,objectCategory,objectClass,mail,department FROM 'LDAP://hostname:636'&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;WHERE memberOf='cn=sec_BI_xxx,ou=xxx_BI,ou=xxx,dc=campus,dc=xxx,dc=de' and 'userAccountControl:1.2.840.113556.1.4.803:'&amp;lt;&amp;gt;2&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;If I limit the number of groups to load to 10 it works on the the first try.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;We checked the logs on the Windows AD server but there are no entries. Also I did a permanent ping during the load but the connection seems stable.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Any idea?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Regards Michael&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Dec 2021 21:06:16 GMT</pubDate>
    <dc:creator>mg_gsi_da</dc:creator>
    <dc:date>2021-12-10T21:06:16Z</dc:date>
    <item>
      <title>LDAP via SSL (LDAPS) not working reliable</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/LDAP-via-SSL-LDAPS-not-working-reliable/m-p/1835491#M9522</link>
      <description>&lt;P&gt;We implemented a SSL connection to the Windows AD.&amp;nbsp; Qlik Sense Feb 21 Patch2&lt;/P&gt;&lt;P&gt;After doing some work with ceritficates it is now working essentially.&lt;/P&gt;&lt;P&gt;Connection String:&amp;nbsp; &lt;STRONG&gt;LDAPS://hostname:636&lt;/STRONG&gt; is working properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the script we load several attributes of usergroups from the Windows AD. This done via a loop and concatenate load of each group and users to a table. Curently 86 groups with a total of 300 users.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LIB CONNECT TO 'AD-Connector'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;*&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;,'ACTIVE' as UserFlag&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;,cn as name&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;,sAMAccountName as "userid"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;,'group' as "type"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;,'$(vGroupName)' as "value";&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;SQL SELECT distinguishedName,cn,displayName,sAMAccountName,objectCategory,objectClass,mail,department FROM &lt;FONT color="#FF0000"&gt;'LDAP://hostname:636'&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;WHERE memberOf='cn=$(vGroupName),ou=xxx_yy,ou=vvv_ww,dc=campus,dc=xxx,dc=de' and 'userAccountControl:1.2.840.113556.1.4.803:'&amp;lt;&amp;gt;2;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script is starting to load the data from the AD. After some groups (different each time) it gets an error and stops the load. If you do a fast retry it usually works at the second or third time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Logfile extract:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;tmpAllUsers &amp;lt;&amp;lt; bf4bdd0e-0d67-41f3-869a-d42bbbe6316d&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Abgerufene Zeilen: 4&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;tmpAllUsers &amp;lt;&amp;lt; LDAP://hostname:636&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Abgerufene Zeilen: 6&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;tmpAllUsers &amp;lt;&amp;lt; LDAP://hostname:636&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Abgerufene Zeilen: 6&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;tmpAllUsers &amp;lt;&amp;lt; LDAP://hostname:636&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Abgerufene Zeilen: 259&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;---&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;Der folgende Fehler ist aufgetreten:&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;Connector reply error: ErrorSource: Active Directory, ErrorMsg: The server is not operational.&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;Der Fehler ist hier aufgetreten:&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;SQL SELECT distinguishedName,cn,displayName,sAMAccountName,objectCategory,objectClass,mail,department FROM 'LDAP://hostname:636'&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;WHERE memberOf='cn=sec_BI_xxx,ou=xxx_BI,ou=xxx,dc=campus,dc=xxx,dc=de' and 'userAccountControl:1.2.840.113556.1.4.803:'&amp;lt;&amp;gt;2&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;If I limit the number of groups to load to 10 it works on the the first try.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;We checked the logs on the Windows AD server but there are no entries. Also I did a permanent ping during the load but the connection seems stable.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Any idea?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Regards Michael&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:06:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/LDAP-via-SSL-LDAPS-not-working-reliable/m-p/1835491#M9522</guid>
      <dc:creator>mg_gsi_da</dc:creator>
      <dc:date>2021-12-10T21:06:16Z</dc:date>
    </item>
  </channel>
</rss>

