building debian package - rlm_sql is not portable

Marco Marino marino.mrc at
Wed Feb 12 21:09:21 CET 2014

Ok, this is my version of rlm_counter (and an example of the configuration
file i'm using).
Pay attention please: Code is really sketchy!!! I just need to known if
these features can be useful. If the case, i give you a more stable (and
precise) code.
In this version saving expired gdbm databases is not possible.
Furthermore, there are some conceptual errors. e.g.: i'm using a
concatenated list for saving realms or nas-identifiers. This is wrong
(search complexity is O(n) ). Hash table is better (O(1)).... but we can
discuss it later.


2014-02-12 19:56 GMT+01:00 Arran Cudbard-Bell <a.cudbardb at>:

> On 12 Feb 2014, at 18:40, Marco Marino <marino.mrc at> wrote:
> > Ok, I understand.
> > I compile (and build debian packages of) freeradius3 without any
> problems.
> > I need debian package of my own freeradius because i wrote a custom
> version of rlm_counter module.
> > Some features:
> > 1) Differentiated counters per Realm or per NAS-Identifier (Using some
> custom parameters in the modules/counter configuration file)
> > 2) Possibility of saving daily (or monthly, but not yet tested) expired
> gdbm databases
> > 3) Differentiated values of reply and check attributes per Realm ( or
> per NAS-Identifier)
> >
> > My patch works well with my use-case. I don't known if this patch can be
> useful because i don't have an enhanced knowledge of freeradius. I ask: Are
> these features useful? Should i post my modified version of rlm_counter
> module? If I should, i can upgrade my modules for freeradius 3
> compatibility and post some code in about on month (sorry, i'm really
> overloaded of work)
> Post the patch as is, we'll see if it's useful and let you know.
> > By the way, i will use freeradius3 instead of freeradius 2.2.3. Compile
> is really easy.
> Yes, a great deal of effort was put into fixing the build system and
> configure
> scripts for 3.x.x. Almost every Makefile in the server was rewritten.
> Arran Cudbard-Bell <a.cudbardb at>
> FreeRADIUS Development Team
> FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
> -
> List info/subscribe/unsubscribe? See
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rlm_counter_mod.tar.gz
Type: application/x-gzip
Size: 9955 bytes
Desc: not available
URL: <>

More information about the Freeradius-Devel mailing list