<?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: AIM issues authenticating with HASH or PATH in PAM Self-Hosted Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/aim-issues-authenticating-with-hash-or-path/m-p/1351285#M43006</link>
    <description>&lt;P&gt;I tried both methods and it caused the same error.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Apr 2019 19:21:36 GMT</pubDate>
    <dc:creator>rvipp</dc:creator>
    <dc:date>2019-04-08T19:21:36Z</dc:date>
    <item>
      <title>AIM issues authenticating with HASH or PATH</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/aim-issues-authenticating-with-hash-or-path/m-p/1351279#M43000</link>
      <description>&lt;P&gt;I'm testing AIM authentication, but it fails with the following error if I try restricting to HASH or PATH. If I remove those and just use ALLOWED MACHINES, my script works just fine.&lt;/P&gt;&lt;P&gt;[08/04/2019 | 13:24:35] |&amp;nbsp;::&amp;nbsp;| APPAP087E Application authentication failure for Application APPID (CASCU095E Failed to find out application script file path. (Error: Process has no arguments. (command: "), Error code: -1).)&lt;/P&gt;&lt;P&gt;[08/04/2019 | 13:24:35] |&amp;nbsp;::&amp;nbsp;| APPAP002E Provider "ProviderName" has failed to fetch password with query [Safe="safename";Object="ObjectName"] for application [APPID]. Fetch reason: []. Failure reason: [APPAP087E Application authentication failure]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;This is my setup:&lt;/P&gt;&lt;P&gt;Installed AIM on Server 2012.&lt;/P&gt;&lt;P&gt;Created Application.&lt;/P&gt;&lt;P&gt;Granted safe permission for application and provider.&lt;/P&gt;&lt;P&gt;Hash = Created using the following command - C:\Program Files (x86)\CyberArk\ApplicationPasswordProvider\Utils&amp;gt; .\AIMGetAppInfo.exe gethash /Filepath c:\tmp\myfile.ps1&lt;/P&gt;&lt;P&gt;PATH = c:\tmp\myfile.ps1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Inside my script, I am using the following command to retrieve the password. If I run this code manually or run my script without HASH or PATH configured, it works just fine. Otherwise it fgails with the errors above.&lt;/P&gt;&lt;P&gt;C:\Program Files (x86)\CyberArk\ApplicationPasswordSdk&amp;gt;CLIPasswordSDK.exe getpassword /p AppDescs.AppID=$AppID /p query="Safe=$strSafeName;Object=$strObjectName" /o Password&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 17:46:36 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/aim-issues-authenticating-with-hash-or-path/m-p/1351279#M43000</guid>
      <dc:creator>rvipp</dc:creator>
      <dc:date>2019-04-08T17:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: AIM issues authenticating with HASH or PATH</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/aim-issues-authenticating-with-hash-or-path/m-p/1351280#M43001</link>
      <description>&lt;P&gt;Have you tried below solution? Looks like you didn't create hash in a correct way for powershell script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://community.cyberark.com/s/article/00004787 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 18:16:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/aim-issues-authenticating-with-hash-or-path/m-p/1351280#M43001</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2019-04-08T18:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: AIM issues authenticating with HASH or PATH</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/aim-issues-authenticating-with-hash-or-path/m-p/1351281#M43002</link>
      <description>&lt;P&gt;Have you tried below solution? Looks like you didn't create hash in a correct way for powershell script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://community.cyberark.com/s/article/00004787 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 18:16:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/aim-issues-authenticating-with-hash-or-path/m-p/1351281#M43002</guid>
      <dc:creator>AnkushA</dc:creator>
      <dc:date>2019-04-08T18:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: AIM issues authenticating with HASH or PATH</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/aim-issues-authenticating-with-hash-or-path/m-p/1351282#M43003</link>
      <description>&lt;P&gt;Hi Ankush,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the same format I found in a related post found below at the bottom. When I tried using the article you referenced, I get an error stating "CLP010s: Parameter "powershell.exe" is redundant".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you try AIMGetAppInfo.exe gethash /FilePath "C:\AIMTest\psscript.ps1"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://community.cyberark.com/s/feed/0D52J00006aGVSDSA4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 18:27:36 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/aim-issues-authenticating-with-hash-or-path/m-p/1351282#M43003</guid>
      <dc:creator>rvipp</dc:creator>
      <dc:date>2019-04-08T18:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: AIM issues authenticating with HASH or PATH</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/aim-issues-authenticating-with-hash-or-path/m-p/1351283#M43004</link>
      <description>&lt;P&gt;Can you try adding powershell.exe  also to path may be? &lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 18:34:24 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/aim-issues-authenticating-with-hash-or-path/m-p/1351283#M43004</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2019-04-08T18:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: AIM issues authenticating with HASH or PATH</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/aim-issues-authenticating-with-hash-or-path/m-p/1351284#M43005</link>
      <description>&lt;P&gt;Can you try adding powershell.exe  also to path may be? &lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 18:34:24 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/aim-issues-authenticating-with-hash-or-path/m-p/1351284#M43005</guid>
      <dc:creator>AnkushA</dc:creator>
      <dc:date>2019-04-08T18:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: AIM issues authenticating with HASH or PATH</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/aim-issues-authenticating-with-hash-or-path/m-p/1351285#M43006</link>
      <description>&lt;P&gt;I tried both methods and it caused the same error.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 19:21:36 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/aim-issues-authenticating-with-hash-or-path/m-p/1351285#M43006</guid>
      <dc:creator>rvipp</dc:creator>
      <dc:date>2019-04-08T19:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: AIM issues authenticating with HASH or PATH</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/aim-issues-authenticating-with-hash-or-path/m-p/1351286#M43007</link>
      <description>&lt;P&gt;Weirdly enough, the “only” way I can launch the powershell script and have it authorize the HASH is by “cmd /c powershell.exe C:\tmp\myfile.ps1”. If I try to launch it by dot sourcing like I have been, it fails with the error message above. Using the cmd launch process give accurate errors to as in hash not authorized or file path not correct.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 20:21:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/aim-issues-authenticating-with-hash-or-path/m-p/1351286#M43007</guid>
      <dc:creator>rvipp</dc:creator>
      <dc:date>2019-04-08T20:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: AIM issues authenticating with HASH or PATH</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/aim-issues-authenticating-with-hash-or-path/m-p/1351287#M43008</link>
      <description>&lt;P&gt;4 years later I had the same issue, so here is my solution based on the last reply by rvipp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that the AppProvider will look for a "/" to parse the script name in the command and will fail to find it if given with "-" &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works: "powershell.exe /file myscript.ps1"&lt;/P&gt;&lt;P&gt;This doesn't: "powershell.exe -file myscript.ps1"&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 10:41:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/aim-issues-authenticating-with-hash-or-path/m-p/1351287#M43008</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2023-08-21T10:41:19Z</dc:date>
    </item>
  </channel>
</rss>

