<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Chillispot Forum — Account expiration]]></title>
		<link>http://www.chillispot.org/chilliforum/topic188-account-expiration.html</link>
		<atom:link href="http://www.chillispot.org/chilliforum/feed-rss-topic188.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Account expiration.]]></description>
		<lastBuildDate>Sat, 23 May 2009 02:22:13 +0000</lastBuildDate>
		<generator>PunBB 1.4.4</generator>
		<item>
			<title><![CDATA[Re: Account expiration]]></title>
			<link>http://www.chillispot.org/chilliforum/post937.html#p937</link>
			<description><![CDATA[<p>Thanks very much kmkhn,&nbsp; I have fixed the problem by removing the &#039;\&#039; of the query and make it in a whole one line.</p><p>It works now.</p><p>Thanks so much.</p>]]></description>
			<author><![CDATA[null@example.com (anousa)]]></author>
			<pubDate>Sat, 23 May 2009 02:22:13 +0000</pubDate>
			<guid>http://www.chillispot.org/chilliforum/post937.html#p937</guid>
		</item>
		<item>
			<title><![CDATA[Re: Account expiration]]></title>
			<link>http://www.chillispot.org/chilliforum/post935.html#p935</link>
			<description><![CDATA[<p>Hi dmkhn,</p><p>The line 1563 of the radius.conf is the query line &#039;query = &quot;SELECT UNIX_TIMESTAMP() - UNIX_TIMESTAMP(AcctStartTime) FROM radacct \</p><p>WHERE UserName = &#039;%{%k}&#039; LIMIT 1&quot;&nbsp; &nbsp;&lt;-----this line.</p>]]></description>
			<author><![CDATA[null@example.com (anousa)]]></author>
			<pubDate>Fri, 22 May 2009 16:49:39 +0000</pubDate>
			<guid>http://www.chillispot.org/chilliforum/post935.html#p935</guid>
		</item>
		<item>
			<title><![CDATA[Re: Account expiration]]></title>
			<link>http://www.chillispot.org/chilliforum/post933.html#p933</link>
			<description><![CDATA[<p>I&#039;m using freeradius version 1.1.7 under FC8 with phpmyprepaid.&nbsp; I also would like to have 3-day accounts expire exactly 3 days after the first login.&nbsp; I follow the instruction found at http://www.warungdigital.com/freeradius-limit-user-access-by-period-started-from-activation-time.htm, but after I restart the server (using service radiusd restart) I have the following error:</p><p>Fri May 22 23:10:48 2009 : Error: /etc/raddb/radiusd.conf[1563]: Line is not in &#039;attribute = value&#039; format<br />Fri May 22 23:10:48 2009 : Error: Errors reading radiusd.conf</p><p>What should I do?</p><p>Please see the related part of my radius.conf below:</p><p>in the module part:<br />------------<br />&nbsp; &nbsp; &nbsp; &nbsp;sqlcounter accessperiod {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;counter-name = Max-Access-Period-Time<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;check-name = Access-Period<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sqlmod-inst = sql<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;key = User-Name<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;reset = never<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;query = &quot;SELECT UNIX_TIMESTAMP() - UNIX_TIMESTAMP(AcctStartTime) FROM radacct \<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WHERE UserName = &#039;%{%k}&#039; LIMIT 1&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp;}<br />-----------</p><p>in the authorization part:<br />-----------<br />&nbsp; &nbsp; &nbsp; &nbsp; #<br />&nbsp; &nbsp; &nbsp; &nbsp; # As of 1.1.4, you should list &quot;pap&quot; last in this section.<br />&nbsp; &nbsp; &nbsp; &nbsp; # See &quot;man rlm_pap&quot; for more information.<br />&nbsp; &nbsp; &nbsp; &nbsp; pap<br />noresetcounter<br />dailycounter<br />monthlycounter<br />accessperiod<br />}<br />----------</p><p>I have also added the following in the /etc/raddb/dictionary</p><p>ATTRIBUTE Access-Period 3000 integer</p><br /><br /><p>in radcheck table of mySQL database:</p><p>id &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; |&nbsp; UserName&nbsp; &nbsp;|&nbsp; Attribute &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; |op | &nbsp; &nbsp; Value<br />28003&nbsp; &nbsp; |&nbsp; &nbsp; 3d &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|&nbsp; Access-Period&nbsp; &nbsp;|:=&nbsp; |&nbsp; &nbsp; 259200<br />28004&nbsp; &nbsp; |&nbsp; &nbsp; 3d &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|&nbsp; User-Password&nbsp; |:=&nbsp; |&nbsp; &nbsp; 3d</p>]]></description>
			<author><![CDATA[null@example.com (anousa)]]></author>
			<pubDate>Fri, 22 May 2009 16:14:46 +0000</pubDate>
			<guid>http://www.chillispot.org/chilliforum/post933.html#p933</guid>
		</item>
		<item>
			<title><![CDATA[Re: Account expiration]]></title>
			<link>http://www.chillispot.org/chilliforum/post672.html#p672</link>
			<description><![CDATA[<p>Yes.</p><p> 627 | gitbup6&nbsp; &nbsp;| Max-All-Session&nbsp; | := | 300&nbsp; &nbsp; &nbsp; &nbsp; |</p>]]></description>
			<author><![CDATA[null@example.com (gelvis)]]></author>
			<pubDate>Thu, 06 Nov 2008 08:47:42 +0000</pubDate>
			<guid>http://www.chillispot.org/chilliforum/post672.html#p672</guid>
		</item>
		<item>
			<title><![CDATA[Re: Account expiration]]></title>
			<link>http://www.chillispot.org/chilliforum/post661.html#p661</link>
			<description><![CDATA[<p>I already had it setup like this. But it is still not expiring the way I want it to.</p><p>sqlcounter noresetcounter {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;counter-name = Max-All-Session-Time<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;check-name = &quot;Max-All-Session&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sqlmod-inst = sql<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;key = User-Name<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;reset = never<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;query = &quot;SELECT SUM(AcctSessionTime) FROM radacct WHERE UserName=&#039;%{%k}&#039;&quot;<br /> }<br />&nbsp; &nbsp; &nbsp; &nbsp; sqlcounter dailycounter {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; counter-name = Daily-Session-Time<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; check-name = Max-Daily-Session<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; reply-name = Session-Timeout<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sqlmod-inst = sql<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; key = User-Name<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; reset = daily<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; query = &quot;SELECT SUM(AcctSessionTime - \&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;GREATEST((%b - UNIX_TIMESTAMP(AcctStartTime)), 0)) \&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FROM radacct WHERE UserName=&#039;%{%k}&#039; AND \&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;UNIX_TIMESTAMP(AcctStartTime) + AcctSessionTime &gt; &#039;%b&#039;&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; sqlcounter monthlycounter {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; counter-name = Monthly-Session-Time<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; check-name = Max-Monthly-Session<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; reply-name = Session-Timeout<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sqlmod-inst = sql<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; key = User-Name<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; reset = monthly<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; query = &quot;SELECT SUM(AcctSessionTime - \&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;GREATEST((%b - UNIX_TIMESTAMP(AcctStartTime)), 0)) \&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FROM radacct WHERE UserName=&#039;%{%k}&#039; AND \&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;UNIX_TIMESTAMP(AcctStartTime) + AcctSessionTime &gt; &#039;%b&#039;&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; always fail {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rcode = fail<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; always reject {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rcode = reject<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; always ok {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rcode = ok<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; simulcount = 0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mpp = no<br />&nbsp; &nbsp; &nbsp; &nbsp;}<br />&nbsp; &nbsp; &nbsp; &nbsp; expr {<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; digest {<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; exec {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wait = yes<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; input_pairs = request<br />&nbsp; &nbsp; &nbsp; &nbsp; }</p><p> exec echo {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wait = yes<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; program = &quot;/bin/echo %{User-Name}&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; input_pairs = request<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; output_pairs = reply<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; ippool main_pool {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; range-start = 192.168.182.3<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; range-stop = 192.168.182.254<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; netmask = 255.255.255.0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cache-size = 800<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; session-db = ${raddbdir}/db.ippool<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ip-index = ${raddbdir}/db.ipindex<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; override = no<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; maximum-timeout = 0<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />}<br />authorize {<br />&nbsp; &nbsp; &nbsp; &nbsp; preprocess<br />&nbsp; &nbsp; &nbsp; &nbsp; chap<br />&nbsp; &nbsp; &nbsp; &nbsp; mschap<br />&nbsp; &nbsp; &nbsp; &nbsp; suffix<br />&nbsp; &nbsp; &nbsp; &nbsp; sql<br />&nbsp; &nbsp; &nbsp; &nbsp; noresetcounter<br />}</p><p>| 625 | gitbup6&nbsp; &nbsp;| User-Password&nbsp; &nbsp; | := | bonkacis&nbsp; &nbsp;| <br />| 626 | gitbup6&nbsp; &nbsp;| Simultaneous-Use | := | 1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | <br />| 627 | gitbup6&nbsp; &nbsp;| Max-All-Session&nbsp; | := | 300&nbsp; &nbsp; &nbsp; &nbsp; |</p>]]></description>
			<author><![CDATA[null@example.com (gelvis)]]></author>
			<pubDate>Fri, 31 Oct 2008 12:54:25 +0000</pubDate>
			<guid>http://www.chillispot.org/chilliforum/post661.html#p661</guid>
		</item>
		<item>
			<title><![CDATA[Re: Account expiration]]></title>
			<link>http://www.chillispot.org/chilliforum/post510.html#p510</link>
			<description><![CDATA[<p>You can do that with the customized Access-Period attribute,<br />it is supported out of the box in daloRADIUS.</p><p>http://sourceforge.net/projects/daloradius/</p><br /><p>Regards,<br />Liran.</p>]]></description>
			<author><![CDATA[null@example.com (liri)]]></author>
			<pubDate>Tue, 08 Jul 2008 11:14:53 +0000</pubDate>
			<guid>http://www.chillispot.org/chilliforum/post510.html#p510</guid>
		</item>
		<item>
			<title><![CDATA[Re: Account expiration]]></title>
			<link>http://www.chillispot.org/chilliforum/post497.html#p497</link>
			<description><![CDATA[<p>you can add the expiration attribute to your radcheck table set up the date to expire when they first login.</p>]]></description>
			<author><![CDATA[null@example.com (easyzonecorp)]]></author>
			<pubDate>Sun, 22 Jun 2008 03:44:45 +0000</pubDate>
			<guid>http://www.chillispot.org/chilliforum/post497.html#p497</guid>
		</item>
		<item>
			<title><![CDATA[Account expiration]]></title>
			<link>http://www.chillispot.org/chilliforum/post483.html#p483</link>
			<description><![CDATA[<p>I have a hotspot with chillispot and radius. When users buy for instance 1 day of internet time they can be logged on for 12 hours one day and 12 hours another.</p><p>I want to be able to make the account expire exactly 1 day after it is started instead of 1 day in total use.<br />How do I do this?</p>]]></description>
			<author><![CDATA[null@example.com (gelvis)]]></author>
			<pubDate>Tue, 10 Jun 2008 12:04:50 +0000</pubDate>
			<guid>http://www.chillispot.org/chilliforum/post483.html#p483</guid>
		</item>
	</channel>
</rss>
