Error while fetching ansible account password using CCP

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

Error while fetching ansible account password using CCP

L1 Bithead

I onboarded ansible app account to CCP server, I am able to fetch the passwords on windows machines with PowerShell script and Linux using curl string but i am using default app account "aimwebservice" however if I take ansible-app-id that i created in application it is giving error.

 

Not working one

cls

# CHANGE REQUIRED IN THE VALUE FIELD

$ccphost = 'ccp.my.com'

$appid = 'ansible-app01'

$safe = 'tst-safe'

$showPassOffAppID = 'ansible'

$object = 'my-ansible'

#execute REST API call

invoke-restmethod -uri 

 

Error :

invoke-restmethod : {"ErrorCode":"APPAP306E","ErrorMsg":"Authentication error for App ID [ansible-app01]. Reason: APPAP133E Failed to verify application authentication data: OSUser \" \" is unauthorized"}

At C:\Users\myhost\Desktop\ccp-working.ps1:11 char:1

+ invoke-restmethod -uri https://ccp.local/AIMWebServic ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  + CategoryInfo     : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException

  + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

 

 Note: even after adding the OS user mydom\admin01 error is same

 

Working with default user :aimwebservice"

cls

# CHANGE REQUIRED IN THE VALUE FIELD

$ccphost = 'ccp.my.com'

$appid = 'aimwebservice'

$safe = 'test-ssafe'

$showPassOffAppID = 'ansible'

$object = 'my-ansible'

#execute REST API call

invoke-restmethod -uri 

 

4 REPLIES 4

L4 Transporter

Hİ @Vaish mohammad​ 

 

Have you enabled Windows authentication on the IIS server?

 

https://docs.cyberark.com/AAM-CP/13.0/en/Content/CP%20and%20ASCP/Authentication-Methods-for-CCP.htm

 

Thanks,

L7 Applicator

Hi @Vaish mohammad​ 

 

Is your application protected to be run by a specific user or by hash value under ‘Authentication’ tab ?

L4 Transporter

Check this article

https://community.cyberark.com/s/article/CCP-AIMWebService-Windows-Authentication-not-working

 

L4 Transporter

Hi @Vaish mohammad​ 

 

As it seems several community members provided an answer to your question, could you kindly share if this solution resolved your issue?

If so, could you please mark one of their answers as "Select as Best" to help other community members?

 

If the issue is still relevant, I would advise raising a ticket with our Support team for further assistance.

 

Thank you,

Niv

  • 243 Views
  • 4 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!