CCP webservice : authenticate with OS User while running REST API call from Unix host.

CCP webservice : authenticate with OS User while running REST API call from Unix host.

85
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 12:57 PM


Objective


How to authenticate with OS User  while running REST API call to CCP Web service  from Unix host.

To be able to authenticate CCP Web Service using OS user , we need to configure the following in IIS:
Under Default Web Site > AIMWebService,
configure the following in Authentication:
1Anonymous Authentication = Disabled
2 Windows Authentication = Enabled
It works from Windows Machine using below  PowerShell script

Invoke-RestMethod -Uri "http://PVWAIP/AIMWebService/api/Accounts?AppID=ApplicationNmae&Safe=TestSafe&Object=AccountObjectName" -UseDefaultCredentials

From a Linux/Unix  Machine.
Although CCP Web Service  is able to authenticate OS user machine\username format. IIS WIndows Auth is not able to authenticate the Linux account which is not part for the domain. Hence IIS drops the Web Services call before it reaches CCP Web Service


Environment


9.9;9.10;10.0;10.1;10.2;10.3;10.4;10.5

Procedure


The workaround is to pass a Windows Domain account through  cURL and let IIS as well as CCP web services to authenticate this domain name.

1 From PVWA-->Application-->Target Application--> Add the Linux/Unix machine IP address to "Allowed Machines"
2 Add The domain user to OS user with Domain\UserName format.
3 From Linux/Unix  Machine , use the --ntlm and --user parameter to pass the domain account in cURL

curl 'http://PVWAIP/AIMWebService/api/Accounts?AppID=ApplicationNmae&Safe=TestSafe&Object=AccountObjectName' --header 'Content-Type:application/json' --ntlm --user 'Domain\UserName' 
 
 


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000zpyCAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail