<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article CCP webservice : authenticate with OS User while running REST API call from Unix host. in Secrets Management Articles</title>
    <link>https://live.paloaltonetworks.com/t5/secrets-management-articles/ccp-webservice-authenticate-with-os-user-while-running-rest-api/ta-p/1430128</link>
    <description>How to authenticate with OS User&amp;nbsp; while running REST API call to CCP Web service &amp;nbsp;from Unix host.&lt;BR /&gt;&lt;BR /&gt;To be able to authenticate CCP Web Service using OS user , we need to configure the following in IIS:&lt;BR /&gt;Under Default Web Site &amp;gt; AIMWebService,&lt;BR /&gt;configure the following in Authentication:&lt;BR /&gt;1Anonymous Authentication = Disabled&lt;BR /&gt;2 Windows Authentication = Enabled&lt;BR /&gt;It works from Windows Machine using below&amp;nbsp; PowerShell script&lt;BR /&gt;&lt;BR /&gt;Invoke-RestMethod -Uri "http://PVWAIP/AIMWebService/api/Accounts?AppID=ApplicationNmae&amp;amp;Safe=TestSafe&amp;amp;Object=AccountObjectName" -UseDefaultCredentials&lt;BR /&gt;&lt;BR /&gt;From&amp;nbsp;a Linux/Unix &amp;nbsp;Machine.&lt;BR /&gt;Although&amp;nbsp;CCP&amp;nbsp;Web Service &amp;nbsp;is able to authenticate OS user&amp;nbsp;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

&lt;H3&gt;Steps&lt;/H3&gt;
The workaround is to pass a Windows Domain account through&amp;nbsp; cURL and let IIS as well as CCP web services to authenticate this domain name.&lt;BR /&gt;&lt;BR /&gt;1 From PVWA--&amp;gt;Application--&amp;gt;Target Application--&amp;gt;&amp;nbsp;Add the Linux/Unix machine IP address to "Allowed Machines"&lt;BR /&gt;2 Add The domain user to OS user with Domain\UserName format.&lt;BR /&gt;3 From Linux/Unix &amp;nbsp;Machine , use the --ntlm and --user parameter to pass the domain account in cURL&lt;BR /&gt;&lt;BR /&gt;curl 'http://PVWAIP/AIMWebService/api/Accounts?AppID=ApplicationNmae&amp;amp;Safe=TestSafe&amp;amp;Object=AccountObjectName' --header 'Content-Type:application/json' --ntlm --user 'Domain\UserName'&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;</description>
    <pubDate>Tue, 04 Aug 2020 16:52:43 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2020-08-04T16:52:43Z</dc:date>
    <item>
      <title>CCP webservice : authenticate with OS User while running REST API call from Unix host.</title>
      <link>https://live.paloaltonetworks.com/t5/secrets-management-articles/ccp-webservice-authenticate-with-os-user-while-running-rest-api/ta-p/1430128</link>
      <description>How to authenticate with OS User&amp;nbsp; while running REST API call to CCP Web service &amp;nbsp;from Unix host.&lt;BR /&gt;&lt;BR /&gt;To be able to authenticate CCP Web Service using OS user , we need to configure the following in IIS:&lt;BR /&gt;Under Default Web Site &amp;gt; AIMWebService,&lt;BR /&gt;configure the following in Authentication:&lt;BR /&gt;1Anonymous Authentication = Disabled&lt;BR /&gt;2 Windows Authentication = Enabled&lt;BR /&gt;It works from Windows Machine using below&amp;nbsp; PowerShell script&lt;BR /&gt;&lt;BR /&gt;Invoke-RestMethod -Uri "http://PVWAIP/AIMWebService/api/Accounts?AppID=ApplicationNmae&amp;amp;Safe=TestSafe&amp;amp;Object=AccountObjectName" -UseDefaultCredentials&lt;BR /&gt;&lt;BR /&gt;From&amp;nbsp;a Linux/Unix &amp;nbsp;Machine.&lt;BR /&gt;Although&amp;nbsp;CCP&amp;nbsp;Web Service &amp;nbsp;is able to authenticate OS user&amp;nbsp;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

&lt;H3&gt;Steps&lt;/H3&gt;
The workaround is to pass a Windows Domain account through&amp;nbsp; cURL and let IIS as well as CCP web services to authenticate this domain name.&lt;BR /&gt;&lt;BR /&gt;1 From PVWA--&amp;gt;Application--&amp;gt;Target Application--&amp;gt;&amp;nbsp;Add the Linux/Unix machine IP address to "Allowed Machines"&lt;BR /&gt;2 Add The domain user to OS user with Domain\UserName format.&lt;BR /&gt;3 From Linux/Unix &amp;nbsp;Machine , use the --ntlm and --user parameter to pass the domain account in cURL&lt;BR /&gt;&lt;BR /&gt;curl 'http://PVWAIP/AIMWebService/api/Accounts?AppID=ApplicationNmae&amp;amp;Safe=TestSafe&amp;amp;Object=AccountObjectName' --header 'Content-Type:application/json' --ntlm --user 'Domain\UserName'&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;</description>
      <pubDate>Tue, 04 Aug 2020 16:52:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/secrets-management-articles/ccp-webservice-authenticate-with-os-user-while-running-rest-api/ta-p/1430128</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2020-08-04T16:52:43Z</dc:date>
    </item>
  </channel>
</rss>

