<?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: Refreshing password on ArcGIS Server registered data store in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/refreshing-password-on-arcgis-server-registered/m-p/1188923#M33429</link>
    <description>&lt;P&gt;This issue appears to have been addressed via a GitHub issue: &lt;A href="https://github.com/Esri/arcgis-python-api/issues/990" target="_blank"&gt;https://github.com/Esri/arcgis-python-api/issues/990&lt;/A&gt;.&amp;nbsp; However, the method for getting the SDE file path into the cloud environment is not entirely clear, nor is the original issue of how to create a function to update the password clarified.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jul 2022 21:18:46 GMT</pubDate>
    <dc:creator>BillMitchell</dc:creator>
    <dc:date>2022-07-01T21:18:46Z</dc:date>
    <item>
      <title>Refreshing password on ArcGIS Server registered data store</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/refreshing-password-on-arcgis-server-registered/m-p/1047928#M29971</link>
      <description>&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;A database has its user connection details refreshed every week (via AWS Secrets Manager).&lt;/LI&gt;&lt;LI&gt;This database is registered as a data store with an &lt;A href="https://arcgisstore1081.s3.amazonaws.com/14362/docs/ReadmeSiloedVPC.html" target="_self"&gt;autoscaling standalone 10.8.1 ArcGIS Server Site&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Requirement:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;&lt;EM&gt;As a&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; sysadmin, &lt;STRONG&gt;I want to&lt;/STRONG&gt; automate updating the database connection details in the ArcGIS Server data store settings, &lt;STRONG&gt;so that&lt;/STRONG&gt; my services will continue to access the data in the database.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Challenges &amp;amp; Thoughts:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Preference to avoid arcpy, so that we can deploy script to Lambda.&amp;nbsp;&lt;UL&gt;&lt;LI&gt;ArcGIS Python API or REST.JS can be used if required.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#008000"&gt;Q.1 Do you need Arcpy to create a .SDE file?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en/technical-article/000022551" target="_self"&gt;&lt;STRONG&gt;This Esri Script&amp;nbsp;&lt;/STRONG&gt;&lt;/A&gt;looks like it would meet my needs.&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Grabs the existing data items connection string&lt;/LI&gt;&lt;LI&gt;And then in step 6, update with new password&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;However, it makes no mention on how to encrypt the password.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;Q3. Where does the variable &lt;EM&gt;sample_1 &lt;/EM&gt;come from in the linked python script?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SimonGIS_0-1618533294035.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/11067i1EF4925D61285E87/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SimonGIS_0-1618533294035.png" alt="SimonGIS_0-1618533294035.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;Q3. How do we encrypt the password?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Looking at the help for &lt;A href="https://developers.arcgis.com/rest/enterprise-administration/server/dataitem.htm" target="_self"&gt;DataItem:&lt;/A&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;It is recommended that you encrypt the credentials using the encryption scheme before storing it into the server. This can be achieved by invoking Get Database Connection String tool inside the Publishing Tools toolbox published as a system service on the server.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This would indicate that there might be a step missing in the linked script.&amp;nbsp; Struggling to find much documentation/samples on how to use '&lt;SPAN&gt;Get Database Connection String' without a SDE file?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 00:24:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/refreshing-password-on-arcgis-server-registered/m-p/1047928#M29971</guid>
      <dc:creator>SimonGIS</dc:creator>
      <dc:date>2021-04-26T00:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing password on ArcGIS Server registered data store</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/refreshing-password-on-arcgis-server-registered/m-p/1188923#M33429</link>
      <description>&lt;P&gt;This issue appears to have been addressed via a GitHub issue: &lt;A href="https://github.com/Esri/arcgis-python-api/issues/990" target="_blank"&gt;https://github.com/Esri/arcgis-python-api/issues/990&lt;/A&gt;.&amp;nbsp; However, the method for getting the SDE file path into the cloud environment is not entirely clear, nor is the original issue of how to create a function to update the password clarified.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 21:18:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/refreshing-password-on-arcgis-server-registered/m-p/1188923#M33429</guid>
      <dc:creator>BillMitchell</dc:creator>
      <dc:date>2022-07-01T21:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing password on ArcGIS Server registered data store</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/refreshing-password-on-arcgis-server-registered/m-p/1193709#M33538</link>
      <description>&lt;P&gt;The step missing between 3 and 4 of the documentation is to create the SDE file, which requires the arcpy library's &lt;A title="Documentation for CreateDatabaseConnection" href="https://pro.arcgis.com/en/pro-app/2.8/tool-reference/data-management/create-database-connection.htm" target="_blank" rel="noopener"&gt;CreateDatabaseConnection&lt;/A&gt; function.&lt;/P&gt;&lt;P&gt;arcpy.management.CreateDatabaseConnection(out_folder_path, out_name, database_platform, instance, {account_authentication}, {username}, {password}, {save_user_pass}, {database}, {schema}, {version_type}, {version}, {date})&lt;/P&gt;&lt;P&gt;At this time, there is no method to directly generate the ENCRYPTED_PASSWORD, nor to do it without invoking the arcpy library.&amp;nbsp; I have created a &lt;A title="Enterprise Ideas post on password update function" href="https://community.esri.com/t5/arcgis-enterprise-ideas/registered-database-connection-update-password/idi-p/1193687" target="_blank" rel="noopener"&gt;related Enterprise Ideas post&lt;/A&gt; recommending that there should be one for exactly this use case.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 22:26:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/refreshing-password-on-arcgis-server-registered/m-p/1193709#M33538</guid>
      <dc:creator>BillMitchell</dc:creator>
      <dc:date>2022-07-19T22:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing password on ArcGIS Server registered data store</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/refreshing-password-on-arcgis-server-registered/m-p/1567678#M41224</link>
      <description>&lt;P&gt;May be useful:&amp;nbsp;&lt;A href="https://support.esri.com/en-us/knowledge-base/how-to-programmatically-update-a-password-change-in-an--000022551" target="_blank"&gt;How To: Programmatically Update a Password Change in an ArcGIS Server Registered Data Stor&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 09:50:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/refreshing-password-on-arcgis-server-registered/m-p/1567678#M41224</guid>
      <dc:creator>SimonSchütte_ct</dc:creator>
      <dc:date>2024-12-12T09:50:51Z</dc:date>
    </item>
  </channel>
</rss>

