- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
07-15-2019 07:10 PM
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.
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
07-15-2019 07:43 PM
Have you checked this article which talks about similar error
https://community.cyberark.com/s/article/CCP-AIMWebService-Windows-Authentication-not-working
07-15-2019 08:26 PM
Yes, I've followed this article, however configuring the authentication as suggested in the article results in errors.
07-15-2019 08:44 PM
Just to clarify, I'm making a REST API call using my domain credential from a Unix host.
07-16-2019 02:50 AM
The error message you provided suggests that the OSUser details are not being sent with the request.
07-16-2019 06:19 PM
Yes, that's seems to be issue. The OS User details are not being sent with the API call from Unix host.
07-17-2019 09:57 PM
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.
02-14-2022 10:01 AM
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 ?
12-07-2022 08:29 PM
@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
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!

