To sign in, use your existing MySonicWall account. To create a free MySonicWall account click "Register".
i making captive portal authentication with radius server but i need the basically html form post to captive portal authentication
Can you share a simple example?(Html or php or python)
Thank you for reaching out to SonicWall Community.
Yes, we have some pre-defined HTML scripts available within the SonicWall for custom user authentication pages. Below provided KB article can help you choose the HTML script.
Note: When login page is customized without appropriate design, it will result in Users not able to access the Management GUI of the SonicWall security appliance. The below KB article explains how to reset the Management GUI back to default HTML script and how to access default management GUI at the time of the issue.
Have a good one!!!
Technical Support Advisor - Premier Services
As per your description, it seemed like you were looking for some sample HTML scripts that you wanted to enforce to users using Captive Portal. Hence I proposed a KB article that has few examples about the HTML scripts for various user login's and thought it may help you. Is this right? Please correct me if I'm wrong.
Are you looking to incorporate your external template in the Captive Portal Authentication settings in your NSa 3650 appliance? I really apologize for misunderstanding.
Please let us know. We can guide your accordingly.
yes @Saravanan i explain you
i use external guest authentication this is sample code but i posting manuel sessionLifetime and idleTimeout
i dont want post manuel please check picture
i wanna use sessionLifetime and IdleTimeout from radius server but i dont know how is posting this code working with captive portal authentication
$path = 'https://' . $device_ip . ':' . $port . '/externalGuestLogin.cgi';
$posting_data = http_build_query(
'sessId' => $sessionid,
'userName' => $username,
'sessionLifetime' => $sessionlifetime,
'idleTimeout' => $idletimeout
$options = array('http' =>
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $posting_data
"verify_peer" => false,
"verify_peer_name" => false,
$post = stream_context_create($options);
$result = file_get_contents($path, false, $post);
$res = simplexml_load_string($result);
$json = json_encode($res);
$array = json_decode($json,TRUE);
Thanks for explaining the requirement in detail.
It seems like you are indeed using RADIUS server for Captive Portal Authentication so the login page or authentication page will be fetched from the RADIUS server. To be precise, we have only few sample HTML codes that are given in the prescribed KB article on our previous comments. But to give you some directions or guidance, I spent some time and did a bit of research on this topic.
Though this web-link is not SonicWall propitiatory but at-least it can provide you some insight with creating login page using PHP.
Hope this helps.
Hi @Saravanan i'm software developer i know exacly more programming language but i need the parameter i dont know device parameter
i hope you understand me
@ERCAN - It would be better to get this addressed over phone. Please contact our Support Team using below URL link for a real-time discussion on this.
@ercan, I have the SW LHM PHP samples if that's any use, I can email them to you