Security

 View Only
Expand all | Collapse all

Guest Self Registration with Cambium AP

This thread has been viewed 94 times
  • 1.  Guest Self Registration with Cambium AP

    Posted May 14, 2024 03:47 PM

    Greetings 

    Has anyone been able to integrate cambium AP's with clearpass for Guest Self Registration?

    Basically we have everything setup according however it appears there seems to be some issues but i have some questions to ask 

    We are using the IP address of the cambium AP on the guest self registration on clearpass and not the certificate FQDN as we have not introduced the certificate

    The users can sign in with the clearpass ipaddress/guest/guestuser_3.php create a user and then login but cannot browse. We can see the user creation on manage account on clearpass and also see some audit on the audit viewer but nothing on the access tracker, so in my view this process in itself isn't communicating with the AP

    We have everything setup properly in the cambium albeit we are not sure if we have the correct Postback URL of the cambium AP

    What is the proper way for guest users to access the captive portal
    1. Should it be the FQDN of the clearpass server /guest/guestuser_3.php
    Or
    2. Should it be the FQDN of the WLC /guest/guestuser_3.php
    If we use step one we can access the captive portal
    If we use step two we get a .404 error resource not found - Do we need to deactivate the securelogin.aruba.com
    We tested the above using IP while we wait to get the ssl certificate
    Please note that guestuser_3 is the guest self registration created on clearpass



  • 2.  RE: Guest Self Registration with Cambium AP
    Best Answer

    Posted May 14, 2024 04:02 PM
    Edited by vovocals May 17, 2024 02:02 AM

    http://{$extra_fields.ga_srvr}:880/cgi-bin/hotspot_login.cgi

    You have to use a custom setup for the captive portal for the credentials to be submitted back to the correct AP.  Make sure to populate the "Extra Fields" input with the required information.  Note, the screenshot was setup against a single AP.  Use the URL from above as the "Submit URL" so that the proper IP address gets used.

    ga_ssid!=
    ga_ap_mac!=
    ga_nas_id!=
    ga_srvr!=
    ga_cmac!=
    ga_Qv!=

     



    ------------------------------
    Carson Hulcher, ACEX#110
    ------------------------------



  • 3.  RE: Guest Self Registration with Cambium AP

    Posted May 14, 2024 04:30 PM

    Thanks Carson 

    You are the boss

    We have been bundling everything under the submit url 

    so the guest system could not pass the credentials to the AP

    Will test this in the morning and revert

    Just one question, what is the best way for users to access the captive portal? is it with the clearpass IP with the .php which exposes the name/ip of the clearpass server or with the fqdn of the cambium ap




  • 4.  RE: Guest Self Registration with Cambium AP

    Posted May 14, 2024 04:43 PM

    I've not set that particular integration up in years but from what I remember you set the captive portal target in the AP configuration and you should definitely be using an FQDN for the redirect so that the interaction with ClearPass can be accomplished over HTTPS.



    ------------------------------
    Carson Hulcher, ACEX#110
    ------------------------------



  • 5.  RE: Guest Self Registration with Cambium AP

    Posted Oct 31, 2024 04:38 PM

    @chulcher 

    Using your example for a ClearPass/ Cambium guest captive portal solution - are you able to elaborate on any of the following or if I am doing anything incorrectly. The screenshot looks slightly different - my guess this is a pre 6.11 release. I am running 6.11.9. 

    -I have the ClearPass FQDN in the submit method URL currently. 

    -In the extra fields I won't be able to populate the 'ga_ap_mac' or 'ga_nas_id' as this will be deployed to a building of APs. So I cannot specify either of these fields in reality. How necessary are they? 

    -Can you explain what 'ga_cmac' and 'ga_Qv' relate to and how necessary these fields are to be populated? 

    Thanks, Adam




  • 6.  RE: Guest Self Registration with Cambium AP

    Posted Oct 31, 2024 05:01 PM

    The "Submit URL" field defines where credentials are submitted by the client, that is an instruction sent from the captive portal to the client device to POST credentials.  That is not the ClearPass URL, the URL needs to be built dynamically as outlined in my first response.  Use the dynamic URL I provided, do not set a static.

    "Extra Fields" are values that ClearPass is processing in the redirect from the AP, you shouldn't be specifying values as those will be read from the parameters in the URL.  I have zero idea what those last two fields are supposed to be, I cobbled this together to deploy for one project about six years ago from someone else's proof of concept document.



    ------------------------------
    Carson Hulcher, ACEX#110
    ------------------------------



  • 7.  RE: Guest Self Registration with Cambium AP

    Posted Nov 04, 2024 07:51 AM

    Thanks, @chulcher 

    I don't suppose you have any insight into the Cambium side as well? These are the current settings on the Cambium 'Guest Access' tab within the SSID. Can you see anything obviously wrong? 

    Or @vovocals do you have any further info to add from the Cambium side?




  • 8.  RE: Guest Self Registration with Cambium AP

    Posted Nov 04, 2024 10:14 AM

    I don't have anything.



    ------------------------------
    Carson Hulcher, ACEX#110
    ------------------------------



  • 9.  RE: Guest Self Registration with Cambium AP

    Posted Nov 04, 2024 10:33 AM

    I guess this is something you have to ask in a Cambium User Forum or documentation.

    With a small Serach on the internet i found this - https://community.cambiumnetworks.com/t/guest-access-wlan-external-hotspot-with-radius-authentication/82858

    Could be a little outdated but still valid.




  • 10.  RE: Guest Self Registration with Cambium AP

    Posted Nov 04, 2024 10:28 AM

    The URL displayed on the client device is:

    http://www.msftconnecttest.com/clearpass.gmetrust.org/guest/guestwifi2.php?ga_ssid=Guest-WiFi&ga_ap_mac=BC-A9-93-0A-F8-6E&ga_nas_id=F47-0AF86E&ga_srvr=eu-w1-guest.cloud.cambiumnetworks.com&ga_cmac=A4-02-B9-65-78-3B 

    I've also removed around 50 of the 'clearpass.gmetrust.org/guest' from the URL which was producing a 'too many redirects' error on the client - which may be a red herring. 

    I'm getting nothing on access tracker, in a pcap or traffic on the firewall. There are no restrictions in place to block anything such as this. I have the subnet of the Cambium APs in the ClearPass device list, with the correct secret. 

    ClearPass web login: 

    Cambium: 




  • 11.  RE: Guest Self Registration with Cambium AP

    Posted Nov 05, 2024 08:46 AM

    In that case, try to add https:// in front of the clearpass.gmetrust.org/guest/guestwifi2.php to make it a full URL. It looks like the AP tries to redirect to a relative URL to the original captive portal test URL now, which makes the http://www.msftconnecttest.com/clearpass.gmetrust.org/guest/guestwifi2.php instead of https://clearpass.gmetrust.org/guest/guestwifi2.php

    This process will continue forever, or at least till you see the 'too many redirects'.



    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------



  • 12.  RE: Guest Self Registration with Cambium AP

    Posted Nov 14, 2024 10:14 AM

    @Herman Robers - I have the solution working when using a pre-created guest account with the Cambium solution and the redirect works fine. 

    I also have the option on the captive portal for MS Azure logins - I have this working perfectly on a complete Aruba solution. 

    However, on the Cambium I get the 'Required Field Unavailable' when selecting the Azure icon. Previously I have  fixed this by adding further netdestinations for the specific Cloud ID provider like Facebook etc. But I have an extensive list of these URLs allowed on the Cambium pre-auth/DNS settings. So I think this is probably separate issue and how the Cambium interacts with the Entra application. I have verified my Entra application/ web login on ClearPass for correct tenancy, client ID and secret. The application refers to a separate web login too to the Aruba portal, using a different redirect URL which is correctly referenced within the application. I have also created a separate 'Cambium - Entra' authentication source linked to the other application (not that it's getting this far yet). 

    I'm not getting much traction on any Cambium forums. 

    Do you have any further information which could be causing the captive portal error message on ClearPass? 

     




  • 13.  RE: Guest Self Registration with Cambium AP

    Posted Nov 14, 2024 10:21 AM

    What error message?  The only one I'm seeing you mention is the "too many redirects" which is coming from the browser.



    ------------------------------
    Carson Hulcher, ACEX#110
    ------------------------------



  • 14.  RE: Guest Self Registration with Cambium AP

    Posted Nov 14, 2024 10:57 AM

    @chulcher the issue regarding the initial re-direct is now working - I am successfully getting the captive portal now and can authenticate using pre-created guest accounts. 

    My issue is when selecting the Azure login button I get the 'Required Field Unavailable' - I do not get this on the Aruba solution. 




  • 15.  RE: Guest Self Registration with Cambium AP

    Posted Nov 14, 2024 11:18 AM

    The SSO is probably breaking the URL and thus the extra fields that is used to generate the submit URL is broken.  Open a case with TAC to determine what, if anything, can be done.



    ------------------------------
    Carson Hulcher, ACEX#110
    ------------------------------



  • 16.  RE: Guest Self Registration with Cambium AP

    Posted Nov 18, 2024 06:54 AM

    I've seen this when the redirect doesn't include the client MAC address ( &mac=aa:bb:cc:dd:ee:ff ) in the redirect URL. Can you add that? If you can't add the client MAC address, you may try to add ?mac=00:00:00:00:00:00 to the redirect URL and see if the 'Required field unavailable' disappears. Some features may not work properly when the client's mac address is unavailable.



    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------



  • 17.  RE: Guest Self Registration with Cambium AP

    Posted Dec 03, 2024 04:52 AM

    @Herman Robers - this is exactly what is happening. The client MAC address is included in the initial URL when accessing the captive portal but when selecting the Azure login button the MAC address is not included. If you then manually add the client MAC on a Windows laptop then you can reach the correct page and login in as expected using Azure credentials. Is there no way this can be rectified within ClearPass? Its my understanding that it is the AP (Cambium) at this stage which handles that functionality, therefore it would have to be a setting applied there, not on ClearPass?  




  • 18.  RE: Guest Self Registration with Cambium AP

    Posted Dec 04, 2024 01:55 PM

    It's a bit hard to fully understand your workflow, and where it breaks, and for what reason, without seeing it happening.

    My experience is that if the MAC address is in the initial request, it's remembered throughout the ClearPass Guest authentication session. Not sure if that's in a session state or in a cookie, but apparently that doesn't work like that for you.

    If there is no MAC address in the initial redirect (or not in any redirect), you may use some javascript or redirect to get a dummy MAC address included to at least continue (if there is no mac address, there is something like 'Invalid parameter' displayed in one of the ClearPass screens). Note that this only works with controller initiated, not with server initiated (CoA, which requires the MAC address in the CoA).

    Maybe your Aruba partner, or TAC is willing to have a look together with you?



    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------



  • 19.  RE: Guest Self Registration with Cambium AP

    Posted Dec 04, 2024 05:30 PM

    Thanks, Herman. You're referring to adding some custom Javascript to the skin within Plugin Manager? 




  • 20.  RE: Guest Self Registration with Cambium AP

    Posted Dec 04, 2024 10:57 AM

    @Herman Robers Sorry to chase - do you have any further comments regarding my previous reply regarding the client MAC address in the URL, please? 




  • 21.  RE: Guest Self Registration with Cambium AP

    Posted Dec 09, 2024 05:57 AM

    It depends on where you need the Javascript. If you add it to the skin, it will be included in each page; probably adding it in the footer of one of the pages (where the issue starts, or the one before that point). As I don't know in which step of the workflow you see that error, it's hard to provide exact guidance.

    Maybe your Aruba partner, or TAC is willing to have a look together with you?



    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------



  • 22.  RE: Guest Self Registration with Cambium AP

    Posted Dec 17, 2024 11:47 AM

    Thanks @Herman Robers

    I have since added some custom JavaScript* to the skin of the page applied within the guest web login. It was successful in that it re-directed to the Entra login portal without producing the error 'required field unavailable' after selecting the Entra login button on the initial captive portal. However, after submitting the credentials the captive portal page just loops back to the initial landing page with no specific error associated and no record within ClearPass access tracker - so no RADIUS request is being sent as of yet.

    *the JS is adding a randomised MAC address to the URL when selecting the Entra login button on the landing page. I wonder if the consequence of not using the actual client MAC is causing the auth flow to fail later down the line? 

    Any thoughts as to why that loop might occur? I am going to move the JavaScript to the main web login page 'Header HTML' tomorrow and do some further testing, as I see in your previous comment regarding how adding the JavaScript to the skin means it'll be included in every page. Therefore, may be proving detrimental in this scenario?




  • 23.  RE: Guest Self Registration with Cambium AP

    Posted Jan 03, 2025 10:56 AM

    Not quite whats occurring at this point Adam. When authenticating with the current javascript in place, credentials are accepted and the access tracker logs a successful user connection. What happens at that point is a blank page as Wi-Fi connectivity isnt actually working. I agree that it's because the random MAC address thats being passed does not match that of the actual device. If I then turn off Wi-Fi for a moment, then enable it again, the device rejoins and connectivity is established, presumably when the correct MAC is processed.

    Does this doc; https://d1okf4ta8xniw3.cloudfront.net/original/2X/f/fbdc2dcd332ea6f25ff6b26e7ef11017ae1d733c.pdf offer any useful info on how to query for the actual MAC presented by the client instead of generating a random one?