Controllerless Networks

Reply
Occasional Contributor I
Posts: 9
Registered: ‎06-26-2016

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
Posts: 9
Registered: ‎06-26-2016

Re: Clearpass Guest - Print Template QR Code

Has anyone an idea?

Aruba Employee
Posts: 41
Registered: ‎09-23-2013

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
Posts: 41
Registered: ‎09-23-2013

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
Posts: 9
Registered: ‎06-26-2016

Re: Clearpass Guest - Print Template QR Code

[ Edited ]

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

 

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