<?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>topic USER ID PROBLEMS in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/user-id-problems/m-p/49698#M1121</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 10pt;"&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;&lt;P&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;Utilizing the PAN perl modules version: PAN-perl-20121110&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;How it works: A php web page calls a perl script to update a user's ip mapping in the firewall.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;&lt;STRONG&gt;Example command:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;code snippet:&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;my $cmd = "&amp;lt;uid-message&amp;gt;&amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&amp;lt;type&amp;gt;update&amp;lt;/type&amp;gt;&amp;lt;payload&amp;gt;&amp;lt;login&amp;gt;&amp;lt;entry name=\"$id\" ip=\"$ip\" timeout=\"86400\"&amp;gt;&amp;lt;/entry&amp;gt;&amp;lt;/login&amp;gt;&amp;lt;/payload&amp;gt;&amp;lt;/uid-message&amp;gt;";&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;$api-&amp;gt;user_id(cmd =&amp;gt; $cmd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;unless ($api-&amp;gt;status_sucess) { exit 1; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;A similar command can be executed using panxapi with the same results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;&lt;STRONG&gt;Expected behavior:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;A user clicks a button on a web page to update their user-id mapping.&amp;nbsp; The value of the timeout of that mapping is set to 86400.&amp;nbsp; The mapping shows up in the PAN firewall Cmdline interface "show user ip-user-mapping all". The user can then access resources though the firewall.&amp;nbsp; This has worked for approximately 1 year.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;&lt;STRONG&gt;Current behavior&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;A user clicks a button on a web page to update their user-id mapping.&amp;nbsp; The value of the timeout of that mapping is set to 86400, the PAN firewall does not return an error code for setting the user-id mapping.&amp;nbsp; The mapping DOES NOT show up in the PAN firewall Cmdline interface.&amp;nbsp; The user is unable to access resources through the firewall.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;Troubleshooting so far:&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;The value of the timeout was able to be set to a lower number; however that only functioned for a short period of time.&amp;nbsp; The value had to be lowered again to allow the user-id mapping functionality to occur.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;&lt;STRONG&gt;Differential:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;There is another PAN firewall that is utilizing the exact same user-id mapping scripts from the same web server.&amp;nbsp; The mapping works without issue with the timeout value set to 86400.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;The two PAN firewall are different models and running different software versions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;PA-5050&amp;nbsp; Software version 5.0.3 DOES NOT work&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;PA-5020 Software version 5.0.7 does work&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;The PA-5050 has been up for 350 days.&amp;nbsp; The PA-5020 has been up for 65 days.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;The PA-5050 has more sessions ~2000 and throughput.&amp;nbsp; The PA-5020 as about ~500 sessions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jun 2014 17:21:54 GMT</pubDate>
    <dc:creator>CarlF</dc:creator>
    <dc:date>2014-06-04T17:21:54Z</dc:date>
    <item>
      <title>USER ID PROBLEMS</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/user-id-problems/m-p/49698#M1121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 10pt;"&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;&lt;P&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;Utilizing the PAN perl modules version: PAN-perl-20121110&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;How it works: A php web page calls a perl script to update a user's ip mapping in the firewall.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;&lt;STRONG&gt;Example command:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;code snippet:&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;my $cmd = "&amp;lt;uid-message&amp;gt;&amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&amp;lt;type&amp;gt;update&amp;lt;/type&amp;gt;&amp;lt;payload&amp;gt;&amp;lt;login&amp;gt;&amp;lt;entry name=\"$id\" ip=\"$ip\" timeout=\"86400\"&amp;gt;&amp;lt;/entry&amp;gt;&amp;lt;/login&amp;gt;&amp;lt;/payload&amp;gt;&amp;lt;/uid-message&amp;gt;";&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;$api-&amp;gt;user_id(cmd =&amp;gt; $cmd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;unless ($api-&amp;gt;status_sucess) { exit 1; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;A similar command can be executed using panxapi with the same results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;&lt;STRONG&gt;Expected behavior:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;A user clicks a button on a web page to update their user-id mapping.&amp;nbsp; The value of the timeout of that mapping is set to 86400.&amp;nbsp; The mapping shows up in the PAN firewall Cmdline interface "show user ip-user-mapping all". The user can then access resources though the firewall.&amp;nbsp; This has worked for approximately 1 year.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;&lt;STRONG&gt;Current behavior&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;A user clicks a button on a web page to update their user-id mapping.&amp;nbsp; The value of the timeout of that mapping is set to 86400, the PAN firewall does not return an error code for setting the user-id mapping.&amp;nbsp; The mapping DOES NOT show up in the PAN firewall Cmdline interface.&amp;nbsp; The user is unable to access resources through the firewall.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;Troubleshooting so far:&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;The value of the timeout was able to be set to a lower number; however that only functioned for a short period of time.&amp;nbsp; The value had to be lowered again to allow the user-id mapping functionality to occur.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;&lt;STRONG&gt;Differential:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;There is another PAN firewall that is utilizing the exact same user-id mapping scripts from the same web server.&amp;nbsp; The mapping works without issue with the timeout value set to 86400.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;The two PAN firewall are different models and running different software versions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;PA-5050&amp;nbsp; Software version 5.0.3 DOES NOT work&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;PA-5020 Software version 5.0.7 does work&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;The PA-5050 has been up for 350 days.&amp;nbsp; The PA-5020 has been up for 65 days.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;The PA-5050 has more sessions ~2000 and throughput.&amp;nbsp; The PA-5020 as about ~500 sessions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 17:21:54 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/user-id-problems/m-p/49698#M1121</guid>
      <dc:creator>CarlF</dc:creator>
      <dc:date>2014-06-04T17:21:54Z</dc:date>
    </item>
  </channel>
</rss>

