Controllerless Networks

Reply
Occasional Contributor I

Clearpass Guest - Print Template QR Code

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

 

 

Occasional Contributor I

Re: Clearpass Guest - Print Template QR Code

Has anyone an idea?

Aruba Employee

Re: Clearpass Guest - Print Template QR Code

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?

Aruba Employee

Re: Clearpass Guest - Print Template QR Code

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

Occasional Contributor I

Re: Clearpass Guest - Print Template QR Code

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

 

Occasional Contributor II

Re: Clearpass Guest - Print Template QR Code

@

 

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.

Aruba Employee

Re: Clearpass Guest - Print Template QR Code

+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!

Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: