Re: [PacketFence-users] Huawei AC6005 Wireless Controller doesn’t support Web Auth. #4790

2022-02-06 Thread Jorge Nolla via PacketFence-users
Worked as root after I stopped pf. Testing now. [root@wifi pf]# curl https://github.com/inverse-inc/packetfence/compare/feature/Huawei_web_auth.diff | patch -p1 % Total% Received % Xferd Average Speed TimeTime Time Current Dload Upload Total

Re: [PacketFence-users] Huawei AC6005 Wireless Controller doesn’t support Web Auth. #4790

2022-02-06 Thread Jorge Nolla via PacketFence-users
Hi Fabrice, Getting this error sudo curl https://github.com/inverse-inc/packetfence/compare/feature/Huawei_web_auth.diff | patch -p1 File lib/pf/Switch/Huawei.pm is read-only; trying to patch anyway patch: Can't create temporary file lib/pf/Switch/Huawei.pm.o00FB2T : Permission denied

Re: [PacketFence-users] Huawei AC6005 Wireless Controller doesn’t support Web Auth. #4790

2022-02-06 Thread Fabrice Durand via PacketFence-users
I am just not sure what to set for username and password, if you do sms auth then there is no password. Also in the url it looks that it miss the mac address of the device , can you try to add device-mac and see if the device mac is in the url ? Here the first draft:

Re: [PacketFence-users] Huawei AC6005 Wireless Controller doesn’t support Web Auth. #4790

2022-02-06 Thread Jorge Nolla via PacketFence-users
Hi Fabrice This is the GET the AC is expecting: https://portal.fispy.mx:8443/login?username=($username)=($password) If successful it will return as per image below. If it fails the AC will redirect back to the Portal

Re: [PacketFence-users] Huawei AC6005 Wireless Controller doesn’t support Web Auth. #4790

2022-02-06 Thread Fabrice Durand via PacketFence-users
Great! it will be easier. Le dim. 6 févr. 2022 à 18:38, Jorge Nolla a écrit : > Fabrice, > > I figured out why the AC is formatting in that way, > > > 6.3.7.3.6 The URL of the Redirected Portal Page Contains %XX, Which Cannot > Be Identified by Some Portal Servers > > When a third-party Portal

Re: [PacketFence-users] Huawei AC6005 Wireless Controller doesn’t support Web Auth. #4790

2022-02-06 Thread Jorge Nolla via PacketFence-users
Fabrice, I figured out why the AC is formatting in that way, 6.3.7.3.6 The URL of the Redirected Portal Page Contains %XX, Which Cannot Be Identified by Some Portal Servers When a third-party Portal server is connected, the browser can be redirected to the URL of the Portal page, but the

Re: [PacketFence-users] Huawei AC6005 Wireless Controller doesn’t support Web Auth. #4790

2022-02-06 Thread Fabrice Durand via PacketFence-users
Hello Jorge, i have what i need at least to be able to support the web-auth. The only thing i am not sure is at the end of the registration process what we are supposed to do. I will create a branch on github in order for you to test. (it will be an update of the Huawei switch module). For

Re: [PacketFence-users] Huawei AC6005 Wireless Controller doesn’t support Web Auth. #4790

2022-02-06 Thread Jorge Nolla via PacketFence-users
If I try to manually send the redirect in the browser here is what HA proxy records. This is a simple copy and paste in the browser and the output: https://wifi.fispy.mx/captive-portal ?destination_url=https://portal.fispy.mx:8443/login?username=539z=0uf3

Re: [PacketFence-users] Huawei AC6005 Wireless Controller doesn’t support Web Auth. #4790

2022-02-06 Thread Jorge Nolla via PacketFence-users
Seems weird how the format of the URL is recorded/sent Here is a normal redirect, the url is formatted correctly, Feb 6 16:03:41 wifi haproxy[2427]: 10.99.1.20:63577 [06/Feb/2022:16:03:41.232] portal-https-10.0.255.99~ 10.0.255.99-backend/127.0.0.1 0/0/1/233/234 200 4910 - - 2/1/0/0/0

Re: [PacketFence-users] Huawei AC6005 Wireless Controller doesn’t support Web Auth. #4790

2022-02-06 Thread Jorge Nolla via PacketFence-users
Hi Fabrice, Here are the options that can be added: [AirEngine9700-M1-url-template-PacketFence]url-parameter ? ap-group-name AP group name ap-ip AP IP address ap-location AP location ap-mac AP MAC address ap-name AP name device-ip Device IP