<?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 Accessing GIS servers with IWA in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/accessing-gis-servers-with-iwa/m-p/829889#M3125</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I have 10.3.1 deployment and a 10.6.1 deployment where I am attempting to access the GIS servers via the following but I am unable to access the GIS servers. The documentation&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/#Web-tier-authentication-secured-with-IWA" title="https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/#Web-tier-authentication-secured-with-IWA"&gt;Working with different authentication schemes | ArcGIS for Developers&lt;/A&gt;&amp;nbsp; doesn't say that you need to do anything special - yet it doesn't look like the internal token between Portal and ArcGIS Server is being created. Anyone else hit this? I'm on 1.6.0 of the API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcgis;print(arcgis.__version__)&lt;BR /&gt;from arcgis.gis import GIS&lt;BR /&gt;from getpass import getpass&lt;BR /&gt;from arcgis.gis import admin&lt;BR /&gt;from arcgis.gis import server&lt;BR /&gt;import win32api #pywin32 # you need this for IWA&lt;BR /&gt;import kerberos_ssp&lt;/P&gt;&lt;P&gt;source = GIS(portal_url,verify_cert=False)&lt;/P&gt;&lt;P&gt;print("Logged in as: " + source.properties.user.username)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;servers = source.admin.servers&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;gis_servers = source.admin.servers.list()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;print(gis_servers)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This returns:&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; border: 0px; font-size: 14px; padding: 1px 0px;"&gt;Logged in as: handf3@AKLC&lt;/PRE&gt;&lt;DIV class="" style="color: #000000; background-color: #ffffff;"&gt;&lt;DIV class="" style="color: #000000; background: #ffdddd; padding: 0.4em;"&gt;&lt;PRE style="color: black; background-color: transparent; border: 0px; font-size: inherit; padding: 1px 0px;"&gt;Could not access the server at &lt;A href="https://mapstest.aklc.govt.nz/arcgis" style="color: #337ab7; background-color: transparent; text-decoration: none;" target="_blank"&gt;https://.../arcgis&lt;/A&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; background-color: #ffffff;"&gt;&lt;DIV class="" style="color: #333333; padding: 5px 1ex;"&gt;&amp;lt;ServerManager at &lt;A href="https://mapstest.aklc.govt.nz/portal/portaladmin%3E" style="color: #337ab7; background-color: transparent; text-decoration: none;" target="_blank"&gt;https://..../portal/portaladmin&amp;gt;&lt;/A&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; background-color: #ffffff;"&gt;&lt;DIV class="" style="color: #333333; padding: 5px 1ex;"&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; background: #ffdddd; padding: 0.4em;"&gt;&lt;PRE style="color: black; background-color: transparent; border: 0px; font-size: inherit; padding: 1px 0px;"&gt;Could not access the server at &lt;A href="https://mapstest.aklc.govt.nz/arcgis3" style="color: #337ab7; background-color: transparent; text-decoration: none;" target="_blank"&gt;https://.../arcgis3&lt;/A&gt;Could not access the server at &lt;A href="https://mapstest.aklc.govt.nz/arcgis2" style="color: #337ab7; background-color: transparent; text-decoration: none;" target="_blank"&gt;https://.../arcgis2&lt;/A&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10.6.1 gives a slightly different result:&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; border: 0px; font-size: 14px; padding: 1px 0px;"&gt;Logged in as: handf3@AKLC&lt;/PRE&gt;&lt;DIV class="" style="color: #000000; background-color: #ffffff;"&gt;&lt;DIV class="" style="color: #000000; padding: 0.4em;"&gt;&lt;PRE style="color: black; background-color: transparent; border: 0px; font-size: inherit; padding: 1px 0px;"&gt;&amp;lt;ServerManager at &lt;A href="https://mapsdev.aklc.govt.nz/portal/portaladmin%3E" style="color: #337ab7; background-color: transparent; text-decoration: none;" target="_blank"&gt;https://.../portal/portaladmin&amp;gt;&lt;/A&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; background-color: #ffffff;"&gt;&lt;DIV class="" style="color: #333333; padding: 5px 1ex;"&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; background: #ffdddd; padding: 0.4em;"&gt;&lt;PRE style="color: black; background-color: transparent; border: 0px; font-size: inherit; padding: 1px 0px;"&gt;Unable to generate token. Unable to generate token for this server Could not access the server at &lt;A href="https://ibgisappd02.aklc.govt.nz:6443/arcgis" style="color: #337ab7; background-color: transparent; text-decoration: none;" target="_blank"&gt;https://.../arcgis&lt;/A&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Mar 2019 21:16:42 GMT</pubDate>
    <dc:creator>FraserHand1</dc:creator>
    <dc:date>2019-03-10T21:16:42Z</dc:date>
    <item>
      <title>Accessing GIS servers with IWA</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/accessing-gis-servers-with-iwa/m-p/829889#M3125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I have 10.3.1 deployment and a 10.6.1 deployment where I am attempting to access the GIS servers via the following but I am unable to access the GIS servers. The documentation&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/#Web-tier-authentication-secured-with-IWA" title="https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/#Web-tier-authentication-secured-with-IWA"&gt;Working with different authentication schemes | ArcGIS for Developers&lt;/A&gt;&amp;nbsp; doesn't say that you need to do anything special - yet it doesn't look like the internal token between Portal and ArcGIS Server is being created. Anyone else hit this? I'm on 1.6.0 of the API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcgis;print(arcgis.__version__)&lt;BR /&gt;from arcgis.gis import GIS&lt;BR /&gt;from getpass import getpass&lt;BR /&gt;from arcgis.gis import admin&lt;BR /&gt;from arcgis.gis import server&lt;BR /&gt;import win32api #pywin32 # you need this for IWA&lt;BR /&gt;import kerberos_ssp&lt;/P&gt;&lt;P&gt;source = GIS(portal_url,verify_cert=False)&lt;/P&gt;&lt;P&gt;print("Logged in as: " + source.properties.user.username)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;servers = source.admin.servers&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;gis_servers = source.admin.servers.list()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;print(gis_servers)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This returns:&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; border: 0px; font-size: 14px; padding: 1px 0px;"&gt;Logged in as: handf3@AKLC&lt;/PRE&gt;&lt;DIV class="" style="color: #000000; background-color: #ffffff;"&gt;&lt;DIV class="" style="color: #000000; background: #ffdddd; padding: 0.4em;"&gt;&lt;PRE style="color: black; background-color: transparent; border: 0px; font-size: inherit; padding: 1px 0px;"&gt;Could not access the server at &lt;A href="https://mapstest.aklc.govt.nz/arcgis" style="color: #337ab7; background-color: transparent; text-decoration: none;" target="_blank"&gt;https://.../arcgis&lt;/A&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; background-color: #ffffff;"&gt;&lt;DIV class="" style="color: #333333; padding: 5px 1ex;"&gt;&amp;lt;ServerManager at &lt;A href="https://mapstest.aklc.govt.nz/portal/portaladmin%3E" style="color: #337ab7; background-color: transparent; text-decoration: none;" target="_blank"&gt;https://..../portal/portaladmin&amp;gt;&lt;/A&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; background-color: #ffffff;"&gt;&lt;DIV class="" style="color: #333333; padding: 5px 1ex;"&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; background: #ffdddd; padding: 0.4em;"&gt;&lt;PRE style="color: black; background-color: transparent; border: 0px; font-size: inherit; padding: 1px 0px;"&gt;Could not access the server at &lt;A href="https://mapstest.aklc.govt.nz/arcgis3" style="color: #337ab7; background-color: transparent; text-decoration: none;" target="_blank"&gt;https://.../arcgis3&lt;/A&gt;Could not access the server at &lt;A href="https://mapstest.aklc.govt.nz/arcgis2" style="color: #337ab7; background-color: transparent; text-decoration: none;" target="_blank"&gt;https://.../arcgis2&lt;/A&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10.6.1 gives a slightly different result:&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; border: 0px; font-size: 14px; padding: 1px 0px;"&gt;Logged in as: handf3@AKLC&lt;/PRE&gt;&lt;DIV class="" style="color: #000000; background-color: #ffffff;"&gt;&lt;DIV class="" style="color: #000000; padding: 0.4em;"&gt;&lt;PRE style="color: black; background-color: transparent; border: 0px; font-size: inherit; padding: 1px 0px;"&gt;&amp;lt;ServerManager at &lt;A href="https://mapsdev.aklc.govt.nz/portal/portaladmin%3E" style="color: #337ab7; background-color: transparent; text-decoration: none;" target="_blank"&gt;https://.../portal/portaladmin&amp;gt;&lt;/A&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; background-color: #ffffff;"&gt;&lt;DIV class="" style="color: #333333; padding: 5px 1ex;"&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; background: #ffdddd; padding: 0.4em;"&gt;&lt;PRE style="color: black; background-color: transparent; border: 0px; font-size: inherit; padding: 1px 0px;"&gt;Unable to generate token. Unable to generate token for this server Could not access the server at &lt;A href="https://ibgisappd02.aklc.govt.nz:6443/arcgis" style="color: #337ab7; background-color: transparent; text-decoration: none;" target="_blank"&gt;https://.../arcgis&lt;/A&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Mar 2019 21:16:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/accessing-gis-servers-with-iwa/m-p/829889#M3125</guid>
      <dc:creator>FraserHand1</dc:creator>
      <dc:date>2019-03-10T21:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing GIS servers with IWA</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/accessing-gis-servers-with-iwa/m-p/829890#M3126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you solve this problem?&amp;nbsp; I'm having the same 10.6.1 experience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Heath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2020 21:32:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/accessing-gis-servers-with-iwa/m-p/829890#M3126</guid>
      <dc:creator>HeathBrackett1</dc:creator>
      <dc:date>2020-06-11T21:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing GIS servers with IWA</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/accessing-gis-servers-with-iwa/m-p/829891#M3127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found Esri's documentation on IWA to be poor, or at least incomplete.&amp;nbsp; Although the documentation says you can leave username and password off for IWA, in many situations I have found that leads to IWA not working.&amp;nbsp; Putting empty strings or Python None for both username and password usually works for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2020 15:34:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/accessing-gis-servers-with-iwa/m-p/829891#M3127</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-06-12T15:34:49Z</dc:date>
    </item>
  </channel>
</rss>

