Credential Provider Path Method Authentication

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

Credential Provider Path Method Authentication

L5 Sessionator

Hi,

I hope you are doing well. I have been testing CP Path Authentication method on one of the windows machines. I have been getting below errors.

 

Error: [06/02/2026 | 22:11:11] | :: | APPAU002E Provider Prov_Server has failed to fetch password with query [Safe=Iamthesafe;Folder=Root;Object=Iamtheaccountobject] for application [CP-TEST]. Fetch reason: []. Failure reason: [APPAP308E Invalid process path. Full path is required.] [06/02/2026 | 22:13:30] | :: | APPAU002E Provider Prov_Server has failed to fetch password with query [Safe=Iamthesafe;Folder=Root;Object=Iamtheaccountobject] for application [CP-TEST]. Fetch reason: []. Failure reason: [APPAP308E Invalid process path. Full path is required.] [06/02/2026 | 22:13:38] | :: | APPAU002E Provider Prov_Server has failed to fetch password with query [Safe=Iamthesafe;Folder=Root;Object=Iamtheaccountobject] for application [CP-TEST]. Fetch reason: []. Failure reason: [APPAP308E Invalid process path. Full path is required.]

Error 2:

APPEX003E: The Credential Provider has encountered an error. For more information, see the Credential Provider logs.

My Configuration in Main.Conf.x.x file for CP is as given below:

[Main] MaxConcurrentRequests=40 AutomaticParmsRefreshInterval=3600 ProviderCacheFolder="C:\Program Files\CyberArk\ApplicationPasswordProvider\Cache"   [Debug] #CacheDebugLevels=0,1,2 #AppProviderDebugLevels=0,1,2,3,4,5 #ProtocolDebugLevels=0,1,2   [Cache] CacheLevel=Persistent CacheFile="C:\Program Files\CyberArk\ApplicationPasswordProvider\Cache\appprovider_cache.db" CacheRefreshInterval=1500 VaultAccessInterval=31536000 KeyStorage=Local CachedSecretExpiry=168   [TCP] Port=18923 TrustedCLIShells="c:\windows\system32\cmd.exe","c:\windows\syswow64\cmd.exe","c:\windows\system32\wscript.exe","c:\windows\syswow64\wscript.exe","c:\windows\system32\cscript.exe","c:\windows\syswow64\cscript.exe","c:\windows\system32\windowspowershell\v1.0\powershell.exe","c:\windows\syswow64\windowspowershell\v1.0\powershell.exe"

PVWA Conosle Configured as shown below:

For Path Authenication. I have kept path as shown below.   D:\Program Files(x86)\CyberArk

Note: I am able to retreive password with CLI SDK without any authentication method set in PVWA Console however, whenever I set above path, it throws above errors. Hence, below is my CLI SDK Command copied and used from official doc.

 

CLIPasswordSDK.exe GetPassword /p AppDescs.AppID=CP-TEST /p Query="Safe=Iamthesafe;Folder=Root;Object=Iamtheaccountobject" /o Password 2>&1

I tried fixing looking at below articles but could not succeeded.

 

Errors | CyberArk Docs

 

APPEX003E: The Credential Provider has encountered an error. For more information, see the Credentia...

 

"APPAP309E Script run using untrusted shell" when PATH restrictions are turned on

 

"APPAP309E Script run using untrusted shell" is observed when integrating with "in memory" applicati...

 

Credential Provider: AIM script produces "Could not read command line structure, Error code: 0" erro...

 

 

Hence, need help to understand whether I am doing somewhere wrong or any other additional things to done to make it successful?

 

 

7 REPLIES 7

L4 Transporter

Hello,

Is the path you have custom or is a space missing between Program and Files?

 

The script file must contain full paths.

For example, if leveraging a command prompt to launch the script.

cmd.exe /c D:\ProgramFiles(x86)\CyberArk\YOUR_SCRIPT_FILE.bat.

 

 

 

The space between Program and Files are just typo. CP by design do not take script file (uncompiled) in windows. It only takes file as bat, cmd or exe in windows machines and .sh works fine for in Linux box. Also, it is not necessary to have full path exactly pointing to compiled scripts. Just relative folder path also works. I tested and it works fine for now. Everything has been sorted out.

L3 Networker

Hi @sanjay sah​ ,

 

The path that you provided is,

  • D:\Program Files(x86)\CyberArk

 

It is just the folder, not a Full Path. Maybe you can try,

  • D:\Program Files (x86)\CyberArk\ApplicationPasswordSdk\CLIPasswordSDK.exe

 

Hi @Argon Lau​ 

There are options to have path just as folder or full path pointing to exe. I tested with both and it works fine for now.

What did you do to fix the errors?

I converted the script into exe and tested it just providing the path of the folders where it resides as well as also tested pointing exactly to exe then it worked both way. I was trying to test with .ps1 script, it didn't help me. It seemed by design CP takes exe, bat, cmd etc files to retrieve the password or it seems like there should be some wrapper to be created to map exe to any other raw scripts.

Hi Sanzu, If you are running .ps1 script, I think you should use the path of PowerShell (e.g. C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe) on the allow list. I haven't tried that, maybe you can test to confirm. Regards, Argon
  • 221 Views
  • 7 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!