<?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 Adding user accounts to Local DB via a Captive Portal web form in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/adding-user-accounts-to-local-db-via-a-captive-portal-web-form/m-p/17354#M12669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was wondering if there's a way to create a web form on the Captive Portal so that a user could create their own account and have it added to the PAN Local DB via an API?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jun 2012 16:11:27 GMT</pubDate>
    <dc:creator>jwolach</dc:creator>
    <dc:date>2012-06-29T16:11:27Z</dc:date>
    <item>
      <title>Adding user accounts to Local DB via a Captive Portal web form</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/adding-user-accounts-to-local-db-via-a-captive-portal-web-form/m-p/17354#M12669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was wondering if there's a way to create a web form on the Captive Portal so that a user could create their own account and have it added to the PAN Local DB via an API?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2012 16:11:27 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/adding-user-accounts-to-local-db-via-a-captive-portal-web-form/m-p/17354#M12669</guid>
      <dc:creator>jwolach</dc:creator>
      <dc:date>2012-06-29T16:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Adding user accounts to Local DB via a Captive Portal web form</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/adding-user-accounts-to-local-db-via-a-captive-portal-web-form/m-p/17355#M12670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The captive portal response page can only be a single page, however it might be technically possible to create that page with a javascript powered form that could add a user to the local DB.&amp;nbsp; It looks like the API call you'd use would be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/api/?type=config&amp;amp;action=set&amp;amp;xpath=/config/shared/local-user-database/user/entry[@name='joeuser']&amp;amp;element=&amp;lt;phash&amp;gt;$1$shsipcfw$qQcH/MlxYG1ucCdhTkkMs/&amp;lt;/phash&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course you'll notice that the above command contains a phash, which we can also generate via the API &lt;/P&gt;&lt;P&gt;/api/?type=op&amp;amp;cmd=&amp;lt;request&amp;gt;&amp;lt;password-hash&amp;gt;&amp;lt;password&amp;gt;test&amp;lt;/password&amp;gt;&amp;lt;/password-hash&amp;gt;&amp;lt;/request&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that both of the above api calls work as-is if you are currently logged in to the firewall as a superuser.&amp;nbsp; For a js form you wouldn't be, so you would need to generate an API key and use it in your calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As always, even with obfuscation the API key is potentially extractable and could be used for other purposes, so it's best to ensure that this is only used in a trusted environment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 18:09:33 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/adding-user-accounts-to-local-db-via-a-captive-portal-web-form/m-p/17355#M12670</guid>
      <dc:creator>drogers</dc:creator>
      <dc:date>2012-07-02T18:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding user accounts to Local DB via a Captive Portal web form</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/adding-user-accounts-to-local-db-via-a-captive-portal-web-form/m-p/17356#M12671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much!&amp;nbsp; Tried it from my browser and it worked great!&amp;nbsp; Now just need to test it out with a CP Response Page.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 20:40:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/adding-user-accounts-to-local-db-via-a-captive-portal-web-form/m-p/17356#M12671</guid>
      <dc:creator>jwolach</dc:creator>
      <dc:date>2012-07-02T20:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Adding user accounts to Local DB via a Captive Portal web form</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/adding-user-accounts-to-local-db-via-a-captive-portal-web-form/m-p/17357#M12672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you get it working, please share a sanitized version on DevCenter!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 16:15:33 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/adding-user-accounts-to-local-db-via-a-captive-portal-web-form/m-p/17357#M12672</guid>
      <dc:creator>drogers</dc:creator>
      <dc:date>2012-07-03T16:15:33Z</dc:date>
    </item>
  </channel>
</rss>

