The pfSense Store

Author Topic: Include XML code in HTTP request for WISPr compliance  (Read 2497 times)

0 Members and 1 Guest are viewing this topic.

Offline guus77

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Include XML code in HTTP request for WISPr compliance
« on: July 20, 2012, 02:58:08 am »
Hi all,
I'm realizing an hot spot with captive portal + radius and, in order to allow access to roaming partners, I need to include the following XML code

<?xml version="1.0" encoding="utf-8"?>
<WISPAccessGatewayParam
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://login.linkem.com/smaccd/gis/WISPAccessGatewayParam.xsd">

  <Redirect>
    <AccessProcedure>1.0</AccessProcedure>
    <AccessLocation>SomeLocationId</AccessLocation>
    <LocationName>SomeLocationName</LocationName>
    <LoginURL>https://login................</LoginURL>
    <AbortLoginURL>https://login.l.....................</AbortLoginURL>
    <MessageType>100</MessageType>
    <ResponseCode>0</ResponseCode>
  </Redirect>
</WISPAccessGatewayParam>


in HTTP request.
Roaming partner client (having stored the right credentials) has to bypass the login page and access Internet but without including XML code this operation is not possible.
How can I do?

Thanx in advance for your support

Offline ermal

  • Administrator
  • Hero Member
  • *****
  • Posts: 3361
  • Karma: +0/-0
    • View Profile
Re: Include XML code in HTTP request for WISPr compliance
« Reply #1 on: July 20, 2012, 10:00:11 am »
This means adding a new feature to CP.
For this you have to look at the code of CP depending on the version you are doing this.

Offline Lee Sharp

  • Jr. Member
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Re: Include XML code in HTTP request for WISPr compliance
« Reply #2 on: July 23, 2012, 11:18:52 am »
It was a few years back, but Jonathan and I spent a BUNCH of time making the m0n0wall implementation of CP wispr compliant.  And to my knowledge, no one broke anything in the series of ports since. :)  (Of course, they could have changed wispr a bit since then.)  Now some of the features are passed by the html of your login page...  How are you doing yours and what is failing?

Offline guus77

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Include XML code in HTTP request for WISPr compliance
« Reply #3 on: July 25, 2012, 10:09:05 am »
Thanx for your reply.
Sincerely I don't have idea about to solve my problem.
The scenario is:
- user (roaming partner of the company that offers wireless services) launch a client on his pc. This client has stored the right credentials and bypass the login page of pfsense captive portal offering direct access to Internet
- In order to work is necessary that the config xml file that I've posted is sent during the POST

Some ideas?

Offline ermal

  • Administrator
  • Hero Member
  • *****
  • Posts: 3361
  • Karma: +0/-0
    • View Profile
Re: Include XML code in HTTP request for WISPr compliance
« Reply #4 on: July 25, 2012, 12:31:10 pm »
guus77 the only way is to extend CP to handle this.
Only development will make that work.


Offline guus77

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Include XML code in HTTP request for WISPr compliance
« Reply #5 on: July 26, 2012, 09:10:06 am »
Thanx for your help.
Do you have any idea about how I can modify the source code?

Offline dhatz

  • Hero Member
  • *****
  • Posts: 1002
  • Karma: +0/-0
    • View Profile
Re: Include XML code in HTTP request for WISPr compliance
« Reply #6 on: July 26, 2012, 12:18:01 pm »
Do you have any idea about how I can modify the source code?

guus, with all due respect, if you have to ask this, then you should consider subcontracting this feature to the pfSense core developers, who are intimately familiar with the CP code. Especially if you want to use this feature in a production setup, not just for testing.

Offline Lee Sharp

  • Jr. Member
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Re: Include XML code in HTTP request for WISPr compliance
« Reply #7 on: July 30, 2012, 12:57:13 am »
I would need to see some other working code, but you might be able to put that in your login page html and still have it work.  Ping me directly if I loose track of this again. :)

Offline guus77

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Include XML code in HTTP request for WISPr compliance
« Reply #8 on: August 06, 2012, 02:53:43 am »
You are saying that there is a chance to obtain this wispr compliance without asking help to pfsense developers? If yes do you have a suggest for me?