[Chilli] RADIUS based way to set the per session

David Bird david at coova.com
Fri Jan 18 19:03:23 UTC 2013


You'd want to return the attribute in an Access-Reject. An Accept will
give them access without injecting the URL (which should point to a j/s
script). 


On Fri, 2013-01-18 at 22:49 +0400, Danny Magat wrote:
> Thanks David,
> 
> I appreciate your response.
> 
> I would be more grateful if you can give more specific details on how to achieve this.
> I trie putting value on radreply username := mac and Attributes := ChilliSpot-Inject-URL Value:= url 
> 
> 
> On Jan 17, 2013, at 10:34 PM, David Bird <david at coova.com> wrote:
> 
> > You have tried the ChilliSpot-Inject-URL attribute? 
> > 
> > Also, it is also helpful to --enable-inspect so that chilli_query
> > inspect mac <mac> gives you more information on per session
> > configurations. 
> > 
> > David
> > 
> > 
> > On Wed, 2013-01-16 at 12:17 +0400, Danny Magat wrote:
> >> Yes inject url per user wherein the URL is coming from the radius reply.
> >> 
> >> 
> >> -----Original Message-----
> >> From: Jed Gainer [mailto:jedgainer at gmail.com] 
> >> Sent: Wednesday, January 16, 2013 8:11 AM
> >> To: Danny Magat
> >> Subject: Re: [Chilli] RADIUS based way to set the per session
> >> 
> >> I am not sure what you mean. Inject per user you mean?
> >> 
> >>    $.getJSON("http://10.1.0.1:3990/json/status?callback=?",
> >> function(chilli) {
> >>        console.log(chilli);
> >>        if ($.inArray(chilli.session.userName, ['Cyndy', 'Chris']) != -1)
> >>        {
> >>            var addHeight =
> >> (/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent))
> >> ? 60 : 40;
> >>            $('body').height($('body').height() + addHeight);
> >>            $('body').append('<div style="position: fixed; bottom: 0;
> >> left: 0; right: 0; height: ' + addHeight + 'px; border-top: 2px solid
> >> #000; background-color: #fff"><iframe style="border: 0; width: 99%"
> >> src="http://10.1.0.1/toolbar.php"></iframe></div>');
> >>        }
> >>    });
> >> 
> >> On Tue, Jan 15, 2013 at 6:07 AM, Danny Magat <danny at sb-ps.ae> wrote:
> >>> Dear All,
> >>> 
> >>> 
> >>> 
> >>> http://coova.org/node/4788#comment-9802
> >>> 
> >>> 
> >>> 
> >>> Based on the above links by David there is a way on how to inject-URL per
> >>> session.
> >>> 
> >>> Can somebody guide me on how to achieve this.
> >>> 
> >>> 
> >>> 
> >>> Thanks in Advance.
> >>> 
> >>> Danny
> >>> 
> >>> 
> >>> _______________________________________________
> >>> Chilli mailing list
> >>> Chilli at coova.org
> >>> http://lists.coova.org/cgi-bin/mailman/listinfo/chilli
> >> 
> >> _______________________________________________
> >> Chilli mailing list
> >> Chilli at coova.org
> >> http://lists.coova.org/cgi-bin/mailman/listinfo/chilli
> > 
> > 




More information about the Chilli mailing list