Unable to authenticate application to the CCP using Windows Domain Authentication from Unix host.

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

Unable to authenticate application to the CCP using Windows Domain Authentication from Unix host.

L7 Applicator

Hi. I'm trying to authenticate to CCP using the "Windows Domain Authentication" from a Unix host using a REST API Call.

 

Use Case: Run the REST API Script from Unix host to CCP in order to retrieve the credential from the Vault.

 

  • The Windows Domain Authentication in IIS (CCP server) is configured as per the CCP Implementation Guide.
  • The 'OS User' (domainname\user id) is added in the 'Application'.
  • The Unix host IP address in allowed in the 'Application'.

 

However, when running the PowerShell command or an API script, the authentication request fails with the following message.

 

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

 

If anyone has come across this issue and have the solution available, can you please share the findings ?

 

Thanks

8 REPLIES 8

L7 Applicator

Have you checked this article which talks about similar error

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

L7 Applicator

Yes, I've followed this article, however configuring the authentication as suggested in the article results in errors.

 

  •  401 - Unauthorized: Access is denied due to invalid credentials.
  •  You do not have permission to view this directory or page using the credentials that you supplied.

 

L7 Applicator

Just to clarify, I'm making a REST API call using my domain credential from a Unix host.

The error message you provided suggests that the OSUser details are not being sent with the request.

Yes, that's seems to be issue. The OS User details are not being sent with the API call from Unix host.

L7 Applicator

Thanks @vinay vasanth​ @Pete Maan​ @Nirmalkumar Dhanaraj​  .

 

The following curl script worked from the Unix host. The script required to add --ntlm and --user 'Domain\AdminID' along with above recommended IIS configuration mentioned in ' https://community.cyberark.com/s/article/CCP-AIMWebService-Windows-Authentication-not-working '

 

From Unix Host: curl 'https://<CCPHostName>/AIMWebService/api/Accounts?AppID=<AppName>&Safe=<SafeName>&Object=<PasswordObjectName>' --header 'Content-Type:application/json' --ntlm --user 'Domain\AdminID' 

 

From Windows Host: Invoke-RestMethod -Uri "https://<CCPHostName>/AIMWebService/api/Accounts?AppID=<AppName>&Safe=<SafeName>&Object=<PasswordObjectName>" -UseDefaultCredentials

 

Using this script, I'm able to authenticate using OS User and able to retrieve object details using AIMWebService.

Hi @1_psPete/ @Malhar Vora​ : Perhaps if you can help here

 

Currently we're performing Ansible & Qualys integration with CCP.

The Qualys team needs to specify the File on the Qualys side to perform vulnerability scans for Unix based. Now, the situation is that the Unix servers are not a part of Directory group due to which a common ID which performs the scan has to be created on all Unix servers (as a local ID) & those servers needs to be onboarded onto CyberArk.

 

Therefore would require your suggestions here :-

1) Now if the Qualys team needs to perform scan on 100 Linux servers, they would have to create one record at a time (100 records in total). Is there a way, that they can specify a common name in the File on the Qualys side so that they would not have create 100 records.

2) Is there a way, this can be achieved via SOAP/ RestApi method ?

@Malhar Vora​  FromUnix host, will it ask for Domain\user's password to authenticate and to get the password, mine is domain joined unix server logged in using domain account , enable OS restriction , still its asking for the password to authenticate

 

  • 1637 Views
  • 8 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!