Re: problem with initial setup

2013-09-09 Thread Suman Dash
Received -bash: /usr/bin/radtest: No such file or directory It means radtest command was not found. On Mon, Sep 9, 2013 at 10:22 PM, Swenson, Chris cswen...@curry.edu wrote: Thanks for the replies: Ok, uninstalled #1 and updated to freeradius2 radiusd started without a hitch with

Re: FreeRADIUS Hotspot

2012-01-02 Thread Suman Dash
On Mon, Jan 2, 2012 at 2:39 PM, hemant hem...@scopesky.com wrote: Hello Guys, I have Installed Freeradius2 with MYSQL and WEBMIN as DaloRadius. I want to setup the FreeRADIUS for the Login Access To the Mikrotik Routers. I am also Setting up the FreeRADIUS for the HOTSPOT

Re: FreeRADIUS Hotspot

2012-01-02 Thread Suman Dash
Create Firewall Policy Between which will block all traffic from Internet Subnet to Mikrotik Subnet ! On Mon, Jan 2, 2012 at 4:00 PM, hemant hem...@scopesky.com wrote: But On this single Mikrotik Router, I am Giving access to internet for the HotSpot User, And also Creating users for the My

Re: Radius with Java

2011-12-20 Thread Suman Dash
Have you looked Jradius which is Radius Plugin for Java ? On Wed, Dec 21, 2011 at 1:01 AM, Jeisson Fabian Perez Rodriguez jeissonfabian...@gmail.com wrote: Hi, again, I've been trying to connect FreeRadius with an application on Java, but I don't find the correct way. Could somebody tell

Re: Failed to run Freeradius on CentoS

2011-11-25 Thread Suman Dash
Freeradius is already running or there is someone using the same port. Check the error message as it carries the solution. Regards Suman On Fri, Nov 25, 2011 at 3:12 PM, Bhanu Vegesna bhanu.vege...@gmail.comwrote: listen { type = auth ipaddr = 127.0.0.0 port = 1812

Re: how to solve below issues

2011-11-10 Thread Suman Dash
symlink it to the actual file . On Thu, Nov 10, 2011 at 2:11 PM, Harshavardhan chillakuru harshac...@gmail.com wrote: 1. when i run the radius for debugging mode using *radusd -X*command i got error like *bash: radiusd: command not found* 2. ./radiusd: error while loading shared

Re: Fixed Duration Weekly, Monthly and Daily Accounts

2011-10-30 Thread Suman Dash
Expiration is actually the validity of the account. It does not calculates the amount of time used. If you are looking to limit the session time i.e 100 hrs Monthly or anything , you need rlm_sqlcounter with attributes like Max-Session-Time with a value. In conjunction with Expiration, you can

Re: Fixed Duration Weekly, Monthly and Daily Accounts

2011-10-30 Thread Suman Dash
Re-Correct - Max-All-Session = 43200 ( It's in Seconds , Not in Minutes ) Second, It is not under our control to decide how much time the user users. We can assign a continuous usage of XYZ minutes / Hours but what if the user disconnects early ? What happens when the user logins again ? Will

Re: Fixed Duration Weekly, Monthly and Daily Accounts

2011-10-30 Thread Suman Dash
Hi Alan, I think the poster is asking for a continuous amount of time after login. Setting Expiration will give a max valid period in which the user can login but under no circumstances it can provide a continuous period of usage. Poster is also not clear what will happen if the user disconnects

Re: Fixed Duration Weekly, Monthly and Daily Accounts

2011-10-30 Thread Suman Dash
You have the exact solution given by Fajar. See his SQL query and modify as required. Regards Suman On Sun, Oct 30, 2011 at 10:26 PM, JennyBlunt jennyshoeh...@me.com wrote: Sorry if I wasn't clear. I want to be able to generate a monthly voucher - 30 days access from the exact time of first

Re: Quota based on time with squid

2011-10-29 Thread Suman Dash
You have not instantiated the counters in Post-Auth . Read more about counter and how it works and how you can enable the same. Regards Suman On Sat, Oct 29, 2011 at 4:40 PM, senthil kumar senthilkumaar2...@gmail.comwrote: Hello Team The user can authenticate and browse at any time. May i

Re: Custom MySQL Queries

2011-10-27 Thread Suman Dash
If you would like to disable a user why not to use the Auth-Type := Reject which is natively available in freeradius. I don't think it is necessary to re-invent the wheel. Regards Suman On Thu, Oct 27, 2011 at 11:07 PM, JennyBlunt jennyshoeh...@me.com wrote: Hello What's the best approach

Re: Problem with F5 BigIP accouting : hexadecimal attribute

2011-10-17 Thread Suman Dash
NAS-IP-Address = *[IP address unknown, not corresponding to NAS interfaces] * Did you added your F5 IP address to NAS Table ? Regards Suman * On Mon, Oct 17, 2011 at 4:56 PM, Vincent, Fabien fabien.vinc...@coreye.frwrote: Dear all, ** ** I’m using Radius for authenticating admin users

Re: Dynamic Attributes Based on NAS Type !

2011-10-09 Thread Suman Dash
Last night i also dreamt of sending all VSA to NAS but i was not sure what will be the outcome so thanks for the info. I have never worked with policies but it seems to be important so i will try to learn the same. Regards Suman On Sun, Oct 9, 2011 at 2:01 PM, Alan DeKok

Re: AW: Dynamic Attributes Based on NAS Type !

2011-10-09 Thread Suman Dash
@** lists.freeradius.org atos@lists.freeradius.org[freeradius-users-bounces+ **norbert.wegener=atos.net@**lists.freeradius.orgatos@lists.freeradius.org] im Auftrag von Suman Dash [sumand...@gmail.com] *Gesendet:* Samstag, 8. Oktober 2011 16:39 *Bis:* FreeRadius users mailing list *Betreff

Dynamic Attributes Based on NAS Type !

2011-10-08 Thread Suman Dash
Hi Everyone ... Currently i am planning to integrate freeradius with different NAS like Chillispot , Cisco etc and enable roaming users so that they can log in from any of the NAS. As the reply items are different with different NAS , i am looking for ideas how to enable a single user to roam and

Re: Dynamic Attributes Based on NAS Type !

2011-10-08 Thread Suman Dash
reply attributes for the NAS, the user is currently using. ** ** Regards Stefan ** ** *From:* freeradius-users-bounces+a.freeradius= premit...@lists.freeradius.org [mailto: freeradius-users-bounces+a.freeradius=premit...@lists.freeradius.org] *On Behalf Of *Suman Dash

Re: Enforcing Login-Time on NAS

2011-09-27 Thread Suman Dash
Use Unlang or Similar Scripts : If Nas = 1 then update Login Time = If Nas = 2 then update Login Time = Use this in PreAuth (I am not sure) Section and give it a try . Regards Suman On Tue, Sep 27, 2011 at 5:42 PM, Shiv shivkumar.j...@gmail.com wrote: I know that Login-Time can be

Re: Enforcing Login-Time on NAS

2011-09-27 Thread Suman Dash
Glad to be of some help !! Cheers On Tue, Sep 27, 2011 at 8:53 PM, shiv shivkumar.j...@gmail.com wrote: Update - I've managed to get it working against a custom table in the mysql radius database. The sites-enabled/default authorize section is as below:- update request {

Re: Dialup Admin

2011-09-19 Thread Suman Dash
Configure dialupadmin to use the correct mysql username / password. freeradius is working well.. On Mon, Sep 19, 2011 at 8:44 AM, shawky skaff shawkyskaff...@hotmail.comwrote: Hi, I am having issues viewing content on the dialup screen, I can see the html links, when I select one of them

Re: anybody out there?

2011-09-15 Thread Suman Dash
ACK ! On Thu, Sep 15, 2011 at 8:28 PM, Arran Cudbard-Bell a.cudba...@freeradius.org wrote: poke poke Arran Cudbard-Bell a.cudba...@freeradius.org Betelwiki, Betelwiki, Betelwiki http://wiki.freeradius.org/ ! - List info/subscribe/unsubscribe? See

Re: Test

2011-09-15 Thread Suman Dash
Its UP !! On Fri, Sep 16, 2011 at 12:24 AM, Christ Schlacta li...@aarcane.org wrote: List is down. On 9/15/2011 07:49, Alan DeKok wrote: Is the list down, or are people quiet? - List info/subscribe/unsubscribe? See http://www.freeradius.org/** list/users.html

Re: Problem with rml_sqlcounter with GigaByte datavolume

2011-09-14 Thread Suman Dash
=4801856i=9, check_item=0, counter=68882 ** ** Any idea ? ** ** Thanks for your help ** ** Nicolas ** ** *De :* Suman Dash [via FreeRadius] [mailto:[hidden email]http://user/SendEmail.jtp?type=nodenode=4801856i=10] *Envoyé :* mardi 13 septembre 2011 19:44 *À

Re: Problem with rml_sqlcounter with GigaByte datavolume

2011-09-14 Thread Suman Dash
the good value. If I put value bigger than 2^32, check_item is always equal to 0. ** ** Any idea ? ** ** Thanks ** ** Nicolas ** ** *De :* Suman Dash [via FreeRadius] [mailto:[hidden email]http://user/SendEmail.jtp?type=nodenode=4802561i=1] *Envoyé :* mercredi 14

Re: Problem with rml_sqlcounter with GigaByte datavolume

2011-09-14 Thread Suman Dash
** ** *De :* Suman Dash [via FreeRadius] [mailto:[hidden email]http://user/SendEmail.jtp?type=nodenode=4802672i=0] *Envoyé :* mercredi 14 septembre 2011 14:53 *À :* nfourel *Objet :* Re: Problem with rml_sqlcounter with GigaByte datavolume ** ** I have a working setup which takes Check-Item

Re: WiSPr

2011-09-14 Thread Suman Dash
Bandwidth Limit greatly depends on NAS. If yous NAS supports it then it can be done ! On Wed, Sep 14, 2011 at 7:29 PM, Luke Hammond l...@dezignbrasil.com wrote: Hey al, iread that i can rate limit on a per user basis with the WISPr-Bandwidth-Max-Down and Up.. correct? Can someone please

Re: WiSPr

2011-09-14 Thread Suman Dash
...@dezignbrasil.com wrote: By NAS i assume you men my pfsense. There isnt anywhere within Freeradius to traffic shape? are you saying it has to be done on the router and not in freeradius? On 14/09/2011 12:11 PM, Suman Dash wrote: Bandwidth Limit greatly depends on NAS. If yous NAS supports

Re: WiSPr

2011-09-14 Thread Suman Dash
WISPr-Bandwidth-Max-Down / UP is indeed the Attribute which you are looking. But you need search the mailing lists and find out how to add those into radreply/radgroup reply. Hint : Read http://wiki.freeradius.org/Rlm_sql Regards Suman On Wed, Sep 14, 2011 at 9:34 PM, Suman Dash sumand

Re: How to connect FreeRADIUS uding JAVA

2011-08-26 Thread Suman Dash
Look Into Jradius On Fri, Aug 26, 2011 at 1:02 PM, Rajkumar Balaji rajkumar.balaj...@gmail.com wrote: Hi, If anyone knows how to connect FreeRADIUS using JAVA Please help me to solve this Thanks Regards Rajkumar - List info/subscribe/unsubscribe? See

Re: Unlang Condition Wrong Value !

2011-08-09 Thread Suman Dash
-Monthly-Traffic allocated in multiple sessions. I hope someone can make a hybrid of this counter. Regards Suman On Mon, Aug 8, 2011 at 8:04 PM, Arran Cudbard-Bell a.cudba...@freeradius.org wrote: On 8 Aug 2011, at 16:29, Suman Dash wrote: Just another small question before i jump into testing

Unlang Condition Wrong Value !

2011-08-08 Thread Suman Dash
I am trying to replace sqlcounter with Unland expression in Post Auth Section. The values are successfully called but while storing in Tmp-Interger those are stripped. Below are the logs . As you can see from the logs that Mysql returns a value of 20989570594 But it's stored as 3557549056 for

Re: Unlang Condition Wrong Value !

2011-08-08 Thread Suman Dash
:      integer   32 bit unsigned value, most significant octet first. FreeRADIUS is just a RADIUS server, and the temporary integer attributes are just RADIUS attributes. -Arran On 8 Aug 2011, at 09:11, Suman Dash wrote: I am trying to replace sqlcounter with Unland expression in Post Auth

Re: Unlang Condition Wrong Value !

2011-08-08 Thread Suman Dash
, Arran Cudbard-Bell a.cudba...@freeradius.org wrote: On 8 Aug 2011, at 09:32, Suman Dash wrote: So it is not possible to store values more than 32 bit in Tmp-Integer. How about direct sql statements in Unlang not involving the Tmp-Integer. It is also not working in my scenario. You mean

Re: Unlang Condition Wrong Value !

2011-08-08 Thread Suman Dash
Enforced, Bandwidth Limited Mikrotik-Rate-Limit := 128K/256K } } } Regards Suman On Mon, Aug 8, 2011 at 2:39 PM, Suman Dash

Re: Unlang Condition Wrong Value !

2011-08-08 Thread Suman Dash
, there are a lot of solutions but no examples or a working config which can be tweaked. Regards Suman On Mon, Aug 8, 2011 at 3:02 PM, Arran Cudbard-Bell a.cudba...@freeradius.org wrote: On 8 Aug 2011, at 11:09, Suman Dash wrote: What i mean to say is that i am not using an integer to store

Re: Unlang Condition Wrong Value !

2011-08-08 Thread Suman Dash
So what you say is that i do all comparision within sql sub-query and whatever output i need to define if less than 32bit store it into an Integer and do Unlang control / reply updates ? Seems quite right .. Will try and get back with results. Thanks for the tip.. Regards Suman On Mon, Aug 8,

Re: Unlang Condition Wrong Value !

2011-08-08 Thread Suman Dash
it is impossible to store it in Tmp-Integer . So ultimately the Integer passed by xlat and the stored in Tmp-Integer will differ. Regards Suman Dash On Mon, Aug 8, 2011 at 7:45 PM, Arran Cudbard-Bell a.cudba...@freeradius.org wrote: On 8 Aug 2011, at 16:11, Suman Dash wrote: So what you say

Re: Opposite of Expiraton attribute?

2011-06-16 Thread Suman Dash
Use First-Login , It may solve your purpose ! On 6/17/2011 10:53 AM, Matthew George wrote: Is there an attribute that is the opposite of expiration? I'm trying to setup accounts to have a specific login time range. For example; Start-Time = 5 June 2011 00:00:00 Expiration == 5 June 2011

Re: Opposite of Expiraton attribute?

2011-06-16 Thread Suman Dash
Or Else ! Expiration = First-Login + N (Days , Hours , Minutes ). This can be done by any script or Web Frontend. It will allow you to define an Expiration of N from the date of first login. Regards On 6/17/2011 10:53 AM, Matthew George wrote: Is there an attribute that is the opposite of

Re:

2011-04-25 Thread Suman Dash
Please read the documentation on how to setup freeradius. From your post it is unclear as what type of auth you need. There are official docs at freeradius.org which you might want to see. On 4/26/2011 10:16 AM, arpitha arpitha wrote: hi, 'm very new to freeradius, i want to setup radius

Re: Please help me with sqlcounter

2011-03-21 Thread Suman Dash
I am trying to do the same in sqlcounter but looks like the %b is hard coded and there is no way to make it dynamically read from database. I have tried using custom sqlcounter but it doe not escapes properly. Anyone effort in commenting on this thread will be highly appreciable as it will

Re: SQL Counter Escape String !

2011-03-16 Thread Suman Dash
Hi Alan, Did you managed to look into the issue ? or maybe any hints on how to use DATETIME in Expiration instead of String ? Regads Suman On 3/15/2011 4:04 PM, Suman Dash wrote: Dear Alan, I have not removed any debug messages. I will try to put everything once again . I was not aware

Re: SQL Counter Escape String !

2011-03-16 Thread Suman Dash
Much thanks Alan, That was some really good advice on how to make the thing work. So now i have to write unlang statement in preprocess so that it directly gives the Session-Timeout . Please correct me if i am wrong. Thanks Again On 3/16/2011 4:09 PM, Alan DeKok wrote: Suman Dash wrote

SQL Unlang !

2011-03-16 Thread Suman Dash
= {some sql query} result2 = {some sql query} update control Session-Timeout := Result1 - Result 2 Thanks in advance Suman On 3/16/2011 4:09 PM, Alan DeKok wrote: Suman Dash wrote: Hi Alan, Did you managed to look into the issue ? No. or maybe any hints on how to use DATETIME

Re: SQL Counter Escape String !

2011-03-15 Thread Suman Dash
...@deployingradius.com wrote: Suman Dash wrote: Please anyone advice me the way to escape run-time variables in freeradius. I am using STR_TO_DATE and freeradius run-time variable is over-riding the mysql time variables  Yes... that's what it does. I have tried escaping as per the thread http

Re: SQL Counter Escape String !

2011-03-15 Thread Suman Dash
to the proper documentation or a small example on this issue. Any help in this regard will be much appreciated. Best Regards Suman Dash On 3/15/2011 12:02 PM, Suman Dash wrote: New Modified Query ! SELECT SUM(acctsessiontime) FROM tbl_acct where \ username = '%{%k

Re: SQL Counter Escape String !

2011-03-15 Thread Suman Dash
. ** When the Counter Reset Period is monthly , %%' becomes '%1298917800 When the Counter Reset Period is Never , New Problem Arises i.e %0d %0M %0Y %0H:%0i:%0s Best Regards Suman Suman Dash wrote: I have tried almost all sql escape but looks like none

Re: SQL Counter Escape String !

2011-03-15 Thread Suman Dash
freeradius 2.1.8 and now i am in a process of checking the same in the latest release. As for the read receipt is concerned then i am sorry in case i have annoyed you in any way. Best Regards Suman Dash On 3/15/2011 3:29 PM, Alan DeKok wrote: Suman Dash wrote: sqlcounter monthlycounter

Re: SQL Counter Escape String !

2011-03-15 Thread Suman Dash
] returns ok ++[exec] returns noop Sending Access-Accept of id 35 to 122.175.85.117 port 12893 Session-Timeout = 1832802 Finished request 0. Going to the next request Waking up in 4.9 seconds. On 3/15/2011 3:29 PM, Alan DeKok wrote: Suman Dash wrote: sqlcounter monthlycounter

Re: Calling-Station-Id problem

2011-03-14 Thread Suman Dash
You need to check the Calling-Station-Id format sent by the NAS. Start radius in debug more and send a auth request, the debug will show whether your NAS sends Calling-Station-Id or not . If it sends the Calling-Station-Id you can clearly see the format of the same. Best Regads Suman Dash

Re: Concurrent Sessions per user

2011-03-14 Thread Suman Dash
Yes .. Simultaneous-Use Attribute On Mon, Mar 14, 2011 at 10:38 PM, Moayad Mohammad mmoham...@thebluezone.com wrote: Dear, Is there is a way to control the concurrent sessions per user? Regards, - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html - List

Re: Concurrent Sessions per user

2011-03-14 Thread Suman Dash
Please anyone advice me the way to escap run-time variables in freeradius. I am using STR_TO_DATE and freeradius run-time variable is over-riding the mysql time variables SELECT STR_TO_DATE('14 Mar 2012 21:37:23','%d %M %Y %H:%i:%s') gives 2012-03-14 21:37:23 in MySQL Whereas in freeradius

String Escape in SQL Counter !

2011-03-14 Thread Suman Dash
Please anyone advice me the way to escape run-time variables in freeradius. I am using STR_TO_DATE and freeradius run-time variable is over-riding the mysql time variables SELECT STR_TO_DATE('14 Mar 2012 21:37:23','%d %M %Y %H:%i:%s') gives 2012-03-14 21:37:23 in MySQL Whereas in freeradius

SQL Counter Escape String !

2011-03-14 Thread Suman Dash
Please anyone advice me the way to escape run-time variables in freeradius. I am using STR_TO_DATE and freeradius run-time variable is over-riding the mysql time variables SELECT STR_TO_DATE('14 Mar 2012 21:37:23','%d %M %Y %H:%i:%s') gives 2012-03-14 21:37:23 in MySQL Whereas in freeradius

Re: Encountering error when using radius -X

2010-08-18 Thread Suman Dash
path issue. create symlink to the particular files. ln -s /usr/local/lib/* libfreeradius-radius-2.1.0.so /usr/lib there may be some more missing files whose symlink you need to do . Let me know if it works. * On Wed, Aug 18, 2010 at 5:53 PM, Fabien COMBERNOUS fcombern...@kezia.comwrote:

Re: Access-Reject packet from host 127.0.0.1 port 1812, id=29, length=34

2010-03-14 Thread Suman Dash
No Worries .. I managed to get past the error. Actually, i was using a same username that was in my /etc/shadow . I renamed the user and it worked. Cheers On Sun, Mar 14, 2010 at 7:04 PM, Alan Buxey a.l.m.bu...@lboro.ac.uk wrote: Hi, Hi, I am unable to locally authenticate a user from

Access-Reject packet from host 127.0.0.1 port 1812, id=29, length=34

2010-03-13 Thread Suman Dash
: Access-Reject packet from host 127.0.0.1 port 1812, id=203, length=34 Reply-Message = Hello, suman Please let me know what i am doing wrong as i am a complete starter. Thanks and Regards Suman Dash - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Access-Reject packet from host 127.0.0.1 port 1812, id=29, length=34

2010-03-13 Thread Suman Dash
No, The Password is in Cleartext. How do i disable / Enable the CRYPT password ? On Sun, Mar 14, 2010 at 1:45 AM, YvesDM ydm...@gmail.com wrote: On Sat, Mar 13, 2010 at 8:14 PM, Suman Dash sumand...@gmail.com wrote: +- entering group PAP {...} [pap] login attempt with password hello [pap