[Nodogsplash] BinVoucher script

Marcos Bontempo marcosbontempo at hotmail.com
Wed Jul 22 19:46:11 UTC 2015




Thanks for the help ! It's working now .I'm trying to authenticate the user over a HTTP server. Is there an way to do it? Can I use python?
Date: Wed, 22 Jul 2015 20:52:05 +0200
From: moritzwarning at web.de
To: nodogsplash at ml.ninux.org
Subject: Re: [Nodogsplash] BinVoucher script

On 07/22/2015 05:00 PM, Marcos Bontempo wrote:
> Hello,
> I want to use the BinVoucher functionality but I'm a little confused about how to write the authentication script. Can someone show me a simple example?
> Any tip will be very helpful,Thanks. 		 	   		  
> 
> 
> 
> _______________________________________________
> Nodogsplash mailing list
> Nodogsplash at ml.ninux.org
> http://ml.ninux.org/mailman/listinfo/nodogsplash
> 
 
Set binvoucher to a script/program in the NDS configuration file.
It will be called when a voucher is set.
 
A voucher script may look like this:
```
#!/bin/bash
 
client_mac="$1"
voucher="$2"
 
if [ "$voucher" = "some_password" ]; then
  #grant 600 seconds of Internet access
  echo 600
else
  #no acccess
  echo 0
fi
```
 
If setting enablepreauth is enabled, then the voucher can
be used without showing a plash site first.
forcevoucher will always cause the script to be called.
If no voucher is provided, access is denied and the script
won't even be called.
 
More help:
https://github.com/nodogsplash/nodogsplash/blob/master/resources/nodogsplash.conf#L355
https://github.com/nodogsplash/nodogsplash/blob/master/resources/splash.html#L42
 
 
 

_______________________________________________
Nodogsplash mailing list
Nodogsplash at ml.ninux.org
http://ml.ninux.org/mailman/listinfo/nodogsplash
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ml.ninux.org/pipermail/nodogsplash/attachments/20150722/c306a385/attachment.htm>


More information about the Nodogsplash mailing list