<?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 Trouble getting User-ID from MS Radius (NPS) using script in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/trouble-getting-user-id-from-ms-radius-nps-using-script/m-p/15688#M11482</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am part-way in matching up IP addresses and user names, but struggling with the second......I'll explain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our lab we have a PA5020, and I am running the User-ID agent on a VM close to the firewall. It successfull reads the AD credentials etc, and those users who authenticate with AD are showing correct names against their IP addresses &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://live.paloaltonetworks.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tricky part is our wireless solution...we have an HP wireless box, and doing authentication against a Radius service running on an MS server (this is part of NPS (Network Policy and Access Services)). The logs are stored locally (the only choices I have are log locally to text file, or to SQL database).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The log format is one of three types:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;DTS Compliant&lt;/LI&gt;&lt;LI&gt;ODBC (Legacy)&lt;/LI&gt;&lt;LI&gt;IAS (Legacy)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The most useful log file type is the ODBC one, but doesn't show the IP address for every authentication attempt (only the MAC address).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written a Perl script which successfully does the following items:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Find the latest log file to read from (as they are weekly logs, and new file per week)&lt;/LI&gt;&lt;LI&gt;Open a file which states the last record sent to the XML API (as shown in step 4.1.4)&lt;/LI&gt;&lt;LI&gt;Read output from "ARP -A" command line (to show MAC and IP addresses known on Radius server)&lt;/LI&gt;&lt;LI&gt;Open the latest file and search through until the date/time is after the last update (in step 2):&lt;OL&gt;&lt;LI&gt;If this is an Authentication Accept message&lt;OL&gt;&lt;LI&gt;then lookup recorded MAC address against ARP (to know IP address)&lt;/LI&gt;&lt;LI&gt;Read user name from line (and add domain name if not shown)&lt;/LI&gt;&lt;LI&gt;Call the XML API with these details&lt;/LI&gt;&lt;LI&gt;Write the date &amp;amp; time to a file to "bookmark" start of next search&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Read the next record&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All seems to be fine, except when there isn't a MAC address entry, or after 1 hour the record in the PA firewall times out!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to solve the first we could simply ping all possible IP addresses to ensure that we have a correct MAC / IP entry (as long as the devices respond!!), but doesn't seem very elegant.&lt;/P&gt;&lt;P&gt;There must be a way to modify the age timers of the firewall records?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the User-ID functionality is part of the whole promise from PA that their firewalls are unique and do everything based on User / Group and Application, is a little untrue (unless if you only use AD to authentciate, or any one of their prescribed workarounds (Captive Portal etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone successfully gotten a solution similar to mine working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main issue for me is the correct discovery of the IP address for every Radius Auth Accept message! And the timeout problem is likely to be easily fixed!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jul 2012 01:35:25 GMT</pubDate>
    <dc:creator>ady_wilson</dc:creator>
    <dc:date>2012-07-27T01:35:25Z</dc:date>
    <item>
      <title>Trouble getting User-ID from MS Radius (NPS) using script</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/trouble-getting-user-id-from-ms-radius-nps-using-script/m-p/15688#M11482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am part-way in matching up IP addresses and user names, but struggling with the second......I'll explain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our lab we have a PA5020, and I am running the User-ID agent on a VM close to the firewall. It successfull reads the AD credentials etc, and those users who authenticate with AD are showing correct names against their IP addresses &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://live.paloaltonetworks.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tricky part is our wireless solution...we have an HP wireless box, and doing authentication against a Radius service running on an MS server (this is part of NPS (Network Policy and Access Services)). The logs are stored locally (the only choices I have are log locally to text file, or to SQL database).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The log format is one of three types:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;DTS Compliant&lt;/LI&gt;&lt;LI&gt;ODBC (Legacy)&lt;/LI&gt;&lt;LI&gt;IAS (Legacy)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The most useful log file type is the ODBC one, but doesn't show the IP address for every authentication attempt (only the MAC address).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written a Perl script which successfully does the following items:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Find the latest log file to read from (as they are weekly logs, and new file per week)&lt;/LI&gt;&lt;LI&gt;Open a file which states the last record sent to the XML API (as shown in step 4.1.4)&lt;/LI&gt;&lt;LI&gt;Read output from "ARP -A" command line (to show MAC and IP addresses known on Radius server)&lt;/LI&gt;&lt;LI&gt;Open the latest file and search through until the date/time is after the last update (in step 2):&lt;OL&gt;&lt;LI&gt;If this is an Authentication Accept message&lt;OL&gt;&lt;LI&gt;then lookup recorded MAC address against ARP (to know IP address)&lt;/LI&gt;&lt;LI&gt;Read user name from line (and add domain name if not shown)&lt;/LI&gt;&lt;LI&gt;Call the XML API with these details&lt;/LI&gt;&lt;LI&gt;Write the date &amp;amp; time to a file to "bookmark" start of next search&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Read the next record&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All seems to be fine, except when there isn't a MAC address entry, or after 1 hour the record in the PA firewall times out!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to solve the first we could simply ping all possible IP addresses to ensure that we have a correct MAC / IP entry (as long as the devices respond!!), but doesn't seem very elegant.&lt;/P&gt;&lt;P&gt;There must be a way to modify the age timers of the firewall records?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the User-ID functionality is part of the whole promise from PA that their firewalls are unique and do everything based on User / Group and Application, is a little untrue (unless if you only use AD to authentciate, or any one of their prescribed workarounds (Captive Portal etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone successfully gotten a solution similar to mine working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main issue for me is the correct discovery of the IP address for every Radius Auth Accept message! And the timeout problem is likely to be easily fixed!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 01:35:25 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/trouble-getting-user-id-from-ms-radius-nps-using-script/m-p/15688#M11482</guid>
      <dc:creator>ady_wilson</dc:creator>
      <dc:date>2012-07-27T01:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble getting User-ID from MS Radius (NPS) using script</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/trouble-getting-user-id-from-ms-radius-nps-using-script/m-p/15689#M11483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any luck with this?&amp;nbsp; We're looking to do the very same thing with an NPS server.&amp;nbsp; If you had any luck, any chance you'd be willing to share the script?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 20:47:59 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/trouble-getting-user-id-from-ms-radius-nps-using-script/m-p/15689#M11483</guid>
      <dc:creator>SabreAce33</dc:creator>
      <dc:date>2012-09-10T20:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble getting User-ID from MS Radius (NPS) using script</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/trouble-getting-user-id-from-ms-radius-nps-using-script/m-p/15690#M11484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having the exact same situation; no luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 19:52:05 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/trouble-getting-user-id-from-ms-radius-nps-using-script/m-p/15690#M11484</guid>
      <dc:creator>MMCiobanu</dc:creator>
      <dc:date>2014-09-08T19:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble getting User-ID from MS Radius (NPS) using script</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/trouble-getting-user-id-from-ms-radius-nps-using-script/m-p/15691#M11485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your workaround seems nice just ping the IPs you can't see in the ARP table, even if they don't respond the ping you should be able to know they MAC address [try it if you don't believe me]. Or if you wanna add complexity log into their default gateway via SHH in perl [maybe it's the firewall] and look for the MAC in they ARP table, as they pretend to get internet access their DG must know their MAC address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can configure Captive portal as fallback option using the radius servers as authentication method.&lt;/P&gt;&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/docs/DOC-1159"&gt;How to Configure Captive Portal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/docs/DOC-2908"&gt;How to Configure RADIUS Authentication&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the timer could be a security flag just leave a session more than 1 hour, under those cases the captive portal is a good option in order to re-log every hour...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 00:02:31 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/trouble-getting-user-id-from-ms-radius-nps-using-script/m-p/15691#M11485</guid>
      <dc:creator>GLastra</dc:creator>
      <dc:date>2014-09-23T00:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble getting User-ID from MS Radius (NPS) using script</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/trouble-getting-user-id-from-ms-radius-nps-using-script/m-p/15692#M11486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at &lt;A href="https://live.paloaltonetworks.com/docs/DOC-6851"&gt;Microsoft NPS to PANOS UserID connector&lt;/A&gt;. I build this connector some months ago. All that you need is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Enable RADIUS Accounting in the HP Wireless Infrastructure&lt;/LI&gt;&lt;LI&gt;Configure the NPS to log using DTS format&lt;/LI&gt;&lt;LI&gt;To run the connector against the given NPS log directory&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 05:48:42 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/trouble-getting-user-id-from-ms-radius-nps-using-script/m-p/15692#M11486</guid>
      <dc:creator>xhoms</dc:creator>
      <dc:date>2014-09-23T05:48:42Z</dc:date>
    </item>
  </channel>
</rss>

