Credential Provider - APPAP087E Application authentication failure. APPAP137W Failed to find out application script file path. (Error: Process has no arguments. (command: bash), Error code: -1)
Symptom
An application, such as the CLI, fails to retrieve the password from the Vault when using AppID (not Credential file) authentication. For example:
[root@Server sdk]# ./clipasswordsdk GetPassword -p AppDescs.AppID=App_User –p Query="Safe=AppSafe;Object=LinuxAppPWD" –o Password
returns the following error:
APPAP087E Application authentication failure
Inspection of the APPConsole.log shows the following:
APPAP087E Application authentication failure for Application App_User (APPAP137W Failed to find out application script file path. (Error: Process has no arguments. (command: bash), Error code: -1))
Environment
10.10;12.0;12.1;12.4;12.6;13.0 Privileged Access Manager (PAM, self-hosted) Credential Provider;Central Credential Provider
Cause
The authentication issue is occurring, since a script file, such as bash, is not being used. A console is being used instead of a script.
Resolution
Create a script file containing the commands to retrieve a password. Consider the example of App_LinuxCLI.bsh in directory "/opt/CARKaim/sdk":
#!/bin/bash ./clipasswordsdk GetPassword -p AppDescs.AppID=App_User –p Query="Safe=AppSafe;Object=LinuxAppPWD" -o Password
Notice that the above bash file has "AppDescs.AppID" and not "AppDescs.CredFilePath".
The below command successfully calls the bash file to produce the password.
[root@servername sdk]# /opt/CARKaim/sdk/App_LinuxCLI.bsh
ThePassword
[root@servername sdk]#
Note:
General error codes and messages are listed in "PIM Suite Messages and Responses.pdf" that can be found in the Support Vault. For example:
APPAP137W Failed to find out application script file path. (Error: <error>, Error code: <code>)
Recommended Action: The command line that the provider investigated didn’t contain path arguments. No actions are needed.
If the application authentication has failed, check the main error message, and act accordingly.
Additional Information
Details
SYMPTOM:
An application, such as the CLI, fails to retrieve the password from the Vault when using AppID (not Credential file) authentication. For example:
[root@Server sdk]# ./clipasswordsdk GetPassword -p AppDescs.AppID=App_User –p Query="Safe=AppSafe;Object=LinuxAppPWD" –o Password
APPAP087E Application authentication failure
Inspection of the APPConsole.log shows the following:
APPAP087E Application authentication failure for Application App_User (APPAP137W Failed to find out application script file path. (Error: Process has no arguments. (command: bash), Error code: -1))
PROBLEM:
The authentication issue is occurring, since a script file, such as bash, is not being used. A console is being used instead of a script.
SOLUTION:
Create a script file containing the commands to retrieve a password. Consider the example of App_LinuxCLI.bsh in directory "/opt/CARKaim/sdk":
#!/bin/bash
./clipasswordsdk GetPassword -p AppDescs.AppID=App_User –p Query="Safe=AppSafe;Object=LinuxAppPWD" -o Password
Notice that the above bash file has "AppDescs.AppID" and not "AppDescs.CredFilePath".
The below command successfully calls the bash file to produce the password.
[root@servername sdk]# /opt/CARKaim/sdk/App_LinuxCLI.bsh
ThePassword
[root@servername sdk]#
Note:
General error codes and messages are listed in "PIM Suite Messages and Responses.pdf" that can be found in the Support Vault. For example:
APPAP137W Failed to find out application script file path. (Error: <error>, Error code: <code>)
Recommended Action: The command line that the provider investigated didn’t contain path arguments. No actions are needed.
If the application authentication has failed, check the main error message, and act accordingly.