Controllerless Networks

last person joined: yesterday 

Instant Mode - the controllerless Wi-Fi solution that's easy to set up, is loaded with security and smarts, and won't break your budget
Expand all | Collapse all

Clearpass Guest - Print Template QR Code

This thread has been viewed 28 times
  • 1.  Clearpass Guest - Print Template QR Code

    Posted Sep 19, 2016 04:47 AM

    Hello

     

    i want to add an QR Code with the SSID and User Password to an print Template.

     

    I have found this link and try to add it - without any success.

    https://arubapedia.arubanetworks.com/afp/index.php/QR_Codes_in_ClearPass_Guest

     

    Document Header: 
    <script type="text/javascript" src="/guest/public/jquery.qrcode.min.js"></script>
    <script>	
       jQuery('#qrcode_ios').qrcode("https://clearpass.arubademo.net/guest/public/qr_demo/ios.mobileconfig");	
        jQuery('#qrcode_android').qrcode("WIFI:T:WPA;S:0_harry_ssid;P:QRClearPass;;");	
    </script>
    
    User Account HTML 
    
    <h2>iOS</h2>
    <div id="qrcode_ios"></div>
    
    <h2>Android</h2>
    <div id="qrcode_android"></div>

    Has anyone an idea how to get this running?

     

    Thanks

     

    Best Regards

     

     



  • 2.  RE: Clearpass Guest - Print Template QR Code

    Posted Sep 20, 2016 03:04 AM

    Has anyone an idea?



  • 3.  RE: Clearpass Guest - Print Template QR Code

    Posted Oct 04, 2016 04:41 PM

    Hey there -- I wrote that article. I guess this is what fame feels like :P

     

    What exact issue are you having? From looking at your code snippet above, your path is wrong for your jQuery plugin include.

     

    Assuming you uploaded it in the PUBLIC folder in Content Manager:

    CPGuest > Config > Content Manager > Public folder > Upload > jquery.qrcode.min.js file

     

    Then your include should be:

    <script type="text/javascript" src="public/jquery.qrcode.min.js"></script>

    What is your exact issue?



  • 4.  RE: Clearpass Guest - Print Template QR Code
    Best Answer

    Posted Oct 04, 2016 05:00 PM

    P.S. Try this:

     

    I created a new print template

    CPGuest > Config > Receipts > Templates > Create New (make sure it's 1 account per page or anything but plaintext)

     

    Iadded some of the QR code from that Arubapedia article, and made sure to use the proper variables that are on the legend on that page, for example:

     

    {$u.password}

    And made sure the DIV I wanted to manipulate with the jQuery was present:

     

     

    <div class="nwaPassword">

     

    And bingo:

    qr_print_template.png



  • 5.  RE: Clearpass Guest - Print Template QR Code

    Posted Oct 05, 2016 02:57 AM

    Hello

     

    thanks for your help. My Problem was that the QR Code wasn´t generated. I have change the div id to div class and now it is working.

     

    Do you have a hint for me how to put in the username and password in the QR Code to autologin the user

    WIFI:T:WPA;S:0_harry_ssid;P:QRClearPass;;

    The User should scan this code, auto connect to the WIFI 0_harry_ssid and then auto login with there username and password provided by Clearpass guest.

     

    Thanks for your help

    Regards

     



  • 6.  RE: Clearpass Guest - Print Template QR Code

    Posted Mar 08, 2018 05:24 AM

    @

     

    Are you able to share the document  linked in the first post? It is not accessible for me.

    My IT manager came back from a trip to the Far east and has dropped a bit of paper on my desk. He was given a pass with a QR code which he scanned into his phone which automatically opened a web page and logged him into wireless network as the QR code contained his login details.

    He now wants me to implement this for our guest network as a priority.

     

    Gotta love these left field requests.



  • 7.  RE: Clearpass Guest - Print Template QR Code

    Posted Mar 08, 2018 03:01 PM
      |   view attached

    +Attached

     

    Let me know if you run into any issues -- note that I originally wrote the article back in 2014 -- a lot has changed since then!

    Attachment(s)