Re: Rlm_perl in func_authenticate

2013-09-01 Thread Alan DeKok
Mehdi Ravanbakhsh wrote:
> i have some problem in Understanding of capability of  Rlm_perl
> in authenticate ...
> 
> if i use this :
> 
> DEFAULT  Auth-Type = Perl
> Fall-Through = yes
> 
> then all user   authenticate be done with this  Auth-Type ?

  Yes.  That's what you told it to do.

> So what is happen to PAP , CHAP module ?

  They're not called.

> and what is the relation of all module in  authenticate section ?

  Read the comments before the "authenticate" section.  And doc/aaa.rst.
 This is documented.

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Rlm_perl in func_authenticate

2013-09-01 Thread Mehdi Ravanbakhsh
Hi All

i have some problem in Understanding of capability of  Rlm_perl
in authenticate ...

if i use this :

DEFAULT  Auth-Type = Perl
Fall-Through = yes

then all user   authenticate be done with this  Auth-Type ?

So what is happen to PAP , CHAP module ?


and what is the relation of all module in  authenticate section ?


thanks and best regards.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Freeradius2 and sqlite

2013-09-01 Thread Arran Cudbard-Bell

On 1 Sep 2013, at 16:19, Nong NgocDung  wrote:

> Dear Arran,
> 
> Finally, I could connect freeradius2 to sqlite on OpenWrt, but the config
> item "filename" does not affect:
> sql {
>   database = 'sqlite'
> 
>   filename = ''
> }
> 
> It always connects to a sqlite database with the name of
> "sqlite_radius_client_database" under /etc/freeradius2 folder.
> Do you know how to customize this database file? For example, If I want
> connect to myproject.db

https://github.com/FreeRADIUS/freeradius-server/blob/v2.x.x/src/modules/rlm_sql/rlm_sql.c#L52

By changing the value of filename.  If it's not working you may have a very old 
version of FreeRADIUS.  You should try upgrading to the latest released version.


Arran Cudbard-Bell 
FreeRADIUS Development Team

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


RE: Freeradius2 and sqlite

2013-09-01 Thread Nong NgocDung
Dear Arran,

Finally, I could connect freeradius2 to sqlite on OpenWrt, but the config
item "filename" does not affect:
sql {
database = 'sqlite'

filename = ''
}

It always connects to a sqlite database with the name of
"sqlite_radius_client_database" under /etc/freeradius2 folder.
Do you know how to customize this database file? For example, If I want
connect to myproject.db


Thank you,
NgocDung Nong

-Original Message-
From: freeradius-users-bounces+nongdung=gmail@lists.freeradius.org
[mailto:freeradius-users-bounces+nongdung=gmail@lists.freeradius.org] On
Behalf Of Arran Cudbard-Bell
Sent: Saturday, August 31, 2013 10:28 PM
To: FreeRadius users mailing list
Subject: Re: Freeradius2 and sqlite


On 31 Aug 2013, at 16:10, "Nong NgocDung"  wrote:

> Hi Arran,
> 
> In sql.conf as follow:
> 
> 
> sql {
>#
>#  Set the database to one of:
>#
>#   mysql, mssql, oracle, postgresql
>#
>database = "mysql"
> 
>#
>#  Which FreeRADIUS driver to use.
>#
>driver = "rlm_sql_${database}"
> 
># Connection info:
>server = "localhost"
> .
> }
> 
> 
> 
> Where should I declare the connection to sqlite file?

With the 'filename' config item, and you need to set database to 'sqlite'

sql {
database = 'sqlite'

filename = ''
}

It's done properly in 3.0. It's sort of hacked into 2.x.x.

Arran Cudbard-Bell  FreeRADIUS Development Team

-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html