Testing AIM Authentication fails

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

Testing AIM Authentication fails

L4 Transporter

I'm testing AIM authentication,but it fails with the following error,Not sure what I have missed,

 

[18/01/2019 | 16:26:20] | :: | APPAP087E Application authentication failure for Application BreakGlass (CASCU095E Failed to find out application script file path. (Error: Process has no arguments. (command: "), Error code: -1).)

[18/01/2019 | 16:26:20] | :: | APPAP002E Provider Prov_QH11266919 has failed to fetch password with query [Safe=AIMSafe;Folder=Root;Object=AIMTesting] for application [BreakGlass]. Fetch reason: []. Failure reason: [APPAP087E Application authentication failure]

 

These are the steps I have tried,

  • Installed credential provider in my laptop(Windows10)
  • Created a Application with Name : BreakGlass,Folder Root

Under Authentication:

Hash = Created using the following command " AIMGetAppInfo.exe gethash /FilePath "C:\AIMTesting\psscript.ps1" "

OS User = Specified a local user in my laptop (Account Name = func-local)

PATH = C:\AIMTesting\psscript.ps1 Also enabled Internal scripts to get password

 

Created a Safe and gave Appprovider and Application the necessary permissions

Added Account func-local to the safe

 

Created a Test Script psscript.ps1 under C:\AIMTesting\

 

Ran the following command to retrieve password,

C:\Program Files (x86)\CyberArk\ApplicationPasswordSdk>CLIPasswordSDK.exe GetPassword /p AppDescs.AppID=BreakGlass /p Query="Safe=AIMSafe;Folder=Root;Object=AIMTesting" /o Password

APPAP087E Application authentication failure

 

 

Not sure where did i went wrong

 

 

9 REPLIES 9

L3 Networker

Hi asunn,

try to run the script with the local account "func-local".

If you specify the OSUser, only that user will be able to interact with AIM using the script.

Safe rights should look like:

<Safe_storing_accounts>:

  • AIMAgent(Appprovider) with retrieve, list, view members
  • AppID with retrieve, list

(but have a look at the guide, to be sure)

alternatively, limit first nothing for the AppID and add the limitations to it later on.

L4 Transporter

The problematic part is likely the restriction down to the os-user at this point:

 

OS User = Specified a local user in my laptop (Account Name = func-local)

 

Remove that restriction in the AIM application, and test again.

 

I've seen this problem before when running pscripts via AIM, effectively the file launching the script isn't trusted. I think there's a technote regarding this, but in the first instance, try launching powershell using the full paths.

L4 Transporter

System Requirements for workstations,

For developer endpoints:

 Windows 8.x

 Windows 7

 Windows XP (64-bit)

 

it seems windows 10 is not supported..

L4 Transporter

@Balazs Racz​ @Malcolm Murray​  I tried removing limitations for both AIMAgent and APPID.Also ran the CMD using the OS-User specified under Application.and Finally removed OS User.Still same error.

 

@Anurag .​ Will try in Windows Server

L3 Networker

@Antony Sunny​  : Can you first try to run the query with no App limitations (Application with no authentication) ?

L4 Transporter

@Himmat Bindra​ If we try removing the Hash Value it works.Looks like the issue is with generating the Hash using a absolute path.

 

As per CyberArk Solution,i tried executing the following commands to get Hash but both fails : AIMGetAppInfo.exe gethash /FilePath powershell.exe "C:\AIMTest\psscript.ps1"

 

AIMGetAppInfo.exe gethash /FilePath "powershell.exe C:\AIMTest\psscript.ps1"

 

L4 Transporter

@Antony Sunny​ can you try AIMGetAppInfo.exe gethash /FilePath "C:\AIMTest\psscript.ps1"

Curious why powershell.exe is included ?

L0 Member

Did any of this work?

If not check if the Provisioning account for the Computer has access to the safe you are referring to. Name will start with Prov_ appended with the name of the computer with the Provider service.

L2 Linker

I didn't add hash or os information ,you can work in powershell in this command. CCP worked on the server where it was installed. My query is " .\CLIPasswordSDK.exe GetPassword /p AppDescs.AppID=xxx(Qualist-Scan-App-ID)xx /p "Query=Safe=x(Safename)xx;Folder=root;Object=xxxx(Account name)xxxxxx" /o Password" this my query. thank you

  • 1739 Views
  • 9 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!