<?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 Re: UserID API integrated with OpenDirectory service on OS X Server in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/userid-api-integrated-with-opendirectory-service-on-os-x-server/m-p/3681#M91</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually managed to get authentication working using LDAP but what is still missing is IP mapping where I want to extract username and IP address from maybe the authentication log and / or the email log. This way I don't need to use captive portal for iPhone and iPad users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not very good at writing scripts but can provide a copy of one of the logs available if it would help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2013 20:47:42 GMT</pubDate>
    <dc:creator>Santa</dc:creator>
    <dc:date>2013-02-20T20:47:42Z</dc:date>
    <item>
      <title>UserID API integrated with OpenDirectory service on OS X Server</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/userid-api-integrated-with-opendirectory-service-on-os-x-server/m-p/3679#M89</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm looking for guidance on how to integrate UserID API with my OpenDirectoy service running on a OS X Server. Anyone?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 21:46:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/userid-api-integrated-with-opendirectory-service-on-os-x-server/m-p/3679#M89</guid>
      <dc:creator>Santa</dc:creator>
      <dc:date>2013-02-11T21:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: UserID API integrated with OpenDirectory service on OS X Server</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/userid-api-integrated-with-opendirectory-service-on-os-x-server/m-p/3680#M90</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've never worked with OpenDirectory before, but maybe the information in this post will help you out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="2374" __jive_macro_name="thread" class="jive_macro jive_macro_thread" href="https://live.paloaltonetworks.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 15:44:50 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/userid-api-integrated-with-opendirectory-service-on-os-x-server/m-p/3680#M90</guid>
      <dc:creator>mharding</dc:creator>
      <dc:date>2013-02-20T15:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: UserID API integrated with OpenDirectory service on OS X Server</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/userid-api-integrated-with-opendirectory-service-on-os-x-server/m-p/3681#M91</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually managed to get authentication working using LDAP but what is still missing is IP mapping where I want to extract username and IP address from maybe the authentication log and / or the email log. This way I don't need to use captive portal for iPhone and iPad users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not very good at writing scripts but can provide a copy of one of the logs available if it would help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 20:47:42 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/userid-api-integrated-with-opendirectory-service-on-os-x-server/m-p/3681#M91</guid>
      <dc:creator>Santa</dc:creator>
      <dc:date>2013-02-20T20:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: UserID API integrated with OpenDirectory service on OS X Server</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/userid-api-integrated-with-opendirectory-service-on-os-x-server/m-p/3682#M92</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have had success syslogging off the KDC log from OpenDirectory and then treating like any other syslog integration (&lt;A href="https://live.paloaltonetworks.com/docs/DOC-1936"&gt;UserID API integration using Syslog)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you need any help with the regular expression used in the script just post a sample log with both a user and IP data in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great evening&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 03:26:07 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/userid-api-integrated-with-opendirectory-service-on-os-x-server/m-p/3682#M92</guid>
      <dc:creator>npiagentini</dc:creator>
      <dc:date>2013-02-21T03:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: UserID API integrated with OpenDirectory service on OS X Server</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/userid-api-integrated-with-opendirectory-service-on-os-x-server/m-p/3683#M93</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Much appriciated !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is one example of the Mail Server log "&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;Library/Logs/Mail/mailaccess.log"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Feb 21 10:35:29 server.name log[96339]: imap-login: Login: user=&amp;lt;jimmy.nilsson&amp;gt;, method=CRAM-MD5, rip=192.168.5.3, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 11:52:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/userid-api-integrated-with-opendirectory-service-on-os-x-server/m-p/3683#M93</guid>
      <dc:creator>Santa</dc:creator>
      <dc:date>2013-02-21T11:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: UserID API integrated with OpenDirectory service on OS X Server</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/userid-api-integrated-with-opendirectory-service-on-os-x-server/m-p/3684#M94</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santa,&lt;/P&gt;&lt;P&gt;Assuming you are running Pearl on your syslog server of choice your line to extract the user and IP from this log will look like this:&lt;/P&gt;&lt;P style="background-color: #ffffff; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;SPAN class="sc2"&gt;#Extract user and IP from string&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;SPAN class="sc2"&gt;&lt;/SPAN&gt;&lt;SPAN class="sc5"&gt;if&lt;/SPAN&gt;&lt;SPAN class="sc0"&gt; &lt;/SPAN&gt;&lt;SPAN class="sc10"&gt;(&lt;/SPAN&gt;&lt;SPAN class="sc12"&gt;$string&lt;/SPAN&gt;&lt;SPAN class="sc0"&gt; &lt;/SPAN&gt;&lt;SPAN class="sc10"&gt;=~&lt;/SPAN&gt;&lt;SPAN class="sc0"&gt; /user=\&amp;lt;(\w+\.\w+).*rip=(\d+\.\d+\.\d+\.\d+)/&lt;/SPAN&gt;&lt;SPAN class="sc10"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sc0"&gt; &lt;/SPAN&gt;&lt;SPAN class="sc10"&gt;{&lt;/SPAN&gt;&lt;SPAN class="sc12"&gt;$user&lt;/SPAN&gt;&lt;SPAN class="sc0"&gt; &lt;/SPAN&gt;&lt;SPAN class="sc10"&gt;=&lt;/SPAN&gt;&lt;SPAN class="sc12"&gt;$1&lt;/SPAN&gt;&lt;SPAN class="sc10"&gt;;&lt;/SPAN&gt;&lt;SPAN class="sc0"&gt; &lt;/SPAN&gt;&lt;SPAN class="sc12"&gt;$address&lt;/SPAN&gt;&lt;SPAN class="sc0"&gt; &lt;/SPAN&gt;&lt;SPAN class="sc10"&gt;=&lt;/SPAN&gt;&lt;SPAN class="sc0"&gt; &lt;/SPAN&gt;&lt;SPAN class="sc12"&gt;$2&lt;/SPAN&gt;&lt;SPAN class="sc10"&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;SPAN class="sc10"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;SPAN class="sc10"&gt;The exact script will vary based on the syslog server you want to use and how you pass the log text to the script. If you look at the example scripts in the document you will find a Pearl one. If you replace the sample regular expression with the one above all you will need to do is determine how to pass the log data to the script in the first place.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;SPAN class="sc10"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;SPAN class="sc10"&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;SPAN class="sc10"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;SPAN class="sc10"&gt;Nick&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 14:11:26 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/userid-api-integrated-with-opendirectory-service-on-os-x-server/m-p/3684#M94</guid>
      <dc:creator>npiagentini</dc:creator>
      <dc:date>2013-02-21T14:11:26Z</dc:date>
    </item>
  </channel>
</rss>

