aland | 1 Sep 2008 01:33
Favicon
Gravatar

GIT Log for 2008-08-31 23:33 GMT

commit edcf6b27c3550bd4eda91cce14439413854482ef
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Sun Aug 31 18:01:40 2008 +0200

    Add forgotten line.  Closes #585
 src/main/modcall.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html

Alexander Clouter | 2 Sep 2008 01:48
Picon
Favicon

[RFC] xlat module return codes

Hi,

Our LDAP servers died horribly today, this Novell 'resilence' malarkey
must have taken a page from the MySQL developers active-active failover
coding cribsheet, so that when one LDAP server goes down they all do;
however I digress....

Before everything was really dead in the water I actually noticed that
although one of the two LDAP servers was dead-dead (socket closed,
connection refused and all), FreeRADIUS was not registering this and
said "noop"'s all over the debug.  As a result she kept reattempting
connections to these known bad servers.

Not good :(

Digging around more I found this is because I do all our fancy stuff
in xlat's and it's xlat that is dishing out NOOP's like they are going
out of fashion.

So I present to the world my after-two-pints and next-to-zero-testing
patch to resolve these problems and let us put xlat's and resilence
into our lives.

http://stuff.digriz.org.uk/freeradius/xlat-retcode.diff

So I call upon guinea pigs to look at the rather invasive patch I have
thrown together, Alan might want to avert his eyes, seems to work for
LDAP...although as everything is currently shafted at work I cannot be
certain.

(Continue reading)

kent@midsouth.com | 2 Sep 2008 23:19
Favicon

Is it possible??

I hope not to ask a question that has already been talked about here, or
do I intend to ask a dumb question. But hey!

What I am needing is to be able to force freeRadius authenticated users
into a web page. I need it to when they login that they forward to the web
page we need them to see first when they open up their browser.

Don't know if this can even be done with freeRadius, but it would be nice
to send all the non-payers to their very on disconnect of service page.

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

Alan DeKok | 3 Sep 2008 01:29
Favicon
Gravatar

Re: Is it possible??

kent <at> midsouth.com wrote:
> What I am needing is to be able to force freeRadius authenticated users
> into a web page. I need it to when they login that they forward to the web
> page we need them to see first when they open up their browser.

  This is called a captive portal.  See Coova, or chillispot.

> Don't know if this can even be done with freeRadius, but it would be nice
> to send all the non-payers to their very on disconnect of service page.

  FreeRADIUS authenticates users.  It has no effect on users traffic
after they've been authenticated.

  As with most such questions, the answer is "Read your NAS
documentation".  If your NAS documents that it can be done, then it's
possible.  Otherwise, it's not.

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

Terdik Sándor | 3 Sep 2008 19:05
Picon
Favicon

new eap type



Hi!

I would like to build in a new eap type. I made a new directory in the /modules/rlm_eap/types/rlm_eap_new and wrote two files: "rlm_eap_new.c" and "eap_new.h" . In the first file I implement the basics functions(initiate, authenticate etc.) and in the header the packet type structure. My example was the rlm_mschapv module for test. The basics functions are empty now. The functions have only the return value, 1 at present.
I add the new line to eap_types.h : #define PW_EAP_NEW       50
and modified the PW_EAP_MAX_TYPES to 50.
I rebuilt the freeradius. I modified the eap.conf:
eap{
...
md5{
}
...
new{
}
...
}
I run again the radiusd -X and I get segmentation fault message when the radiusd load my eap type.
I don't know why!
Could you give me some help?

Thanks!


______________________________________________________________________
Genertel casco - teljes körű casco szenzációs áron!
Intsen búcsút drága cascójának, kérjen ajánlatot most!
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
Jeffrey Hutzelman | 3 Sep 2008 19:52
Picon
Favicon

Re: new eap type

--On Wednesday, September 03, 2008 07:05:50 PM +0200 Terdik Sándor 
<pillantok <at> freemail.hu> wrote:

>
>
> Hi!
>
> I would like to build in a new eap type. I made a new directory in the
> /modules/rlm_eap/types/rlm_eap_new and wrote two files: "rlm_eap_new.c"
> and "eap_new.h" . In the first file I implement the basics
> functions(initiate, authenticate etc.) and in the header the packet type
> structure. My example was the rlm_mschapv module for test. The basics
> functions are empty now. The functions have only the return value, 1 at
> present. I add the new line to eap_types.h : #define PW_EAP_NEW       50
> and modified the PW_EAP_MAX_TYPES to 50.

This isn't the direct cause of your problem, but that's a really bad idea. 
EAP method type numbers are protocol constants, coordinated by the Internet 
Assigned Numbers Authority (IANA).  To obtain a number, you will need to 
write up a specification for your method, describing what its messages are, 
how they are formatted, and how the method works, and then submit an 
application for protocol number assignment to IANA using the form found at 
<http://www.iana.org/cgi-bin/assignments.pl>.

For experimentation and development, you can use method number 255, as 
described in RFC3748 section 5.8.

> I rebuilt the freeradius. I modified the eap.conf:
> eap{
> ...
> md5{
> }
> ...
> new{
> }
> ...
> }

"..." is not valid syntax here, so either your configuration is hopelessly 
broken, or you've not provided nearly enough information for anyone to 
explain what is going wrong.  Possibly both.

> I run again the radiusd -X and I get segmentation fault message when the
> radiusd load my eap type. I don't know why!

We don't know why either, because you've provided basically no information.

My suggestion would be to find a debugger, learn how to use it, and then 
use it to investigate what is going on at the time radiusd crashes. 
Chances are that this will point you at the problem fairly quickly, and 
that the problem will turn out to be something simple and obvious once you 
find it (most bugs are).  If you've never used a debugger before, I would 
suggest the following:

- Run "gdb /path/to/radiusd"
- At the (gdb) prompt, type "run -X"
- At the point of failure, gdb will print something like:
  Program received signal SIGSEGV, Segmentation fault.
- Type "where".  The output is a description of the program's stack.
- Chances are the problem is either in the top-most function in the
  list, or where one function is called by the one listed below it.

Beyond that, I can give you no advice.  Debugging is a task requiring a 
certain amount of skill and, often, experience, and is not something this 
mailing list is set up to teach.

-- Jeffrey T. Hutzelman (N3NHS) <jhutz+ <at> cmu.edu>
   Carnegie Mellon University - Pittsburgh, PA

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
aland | 4 Sep 2008 01:33
Favicon
Gravatar

GIT Log for 2008-09-03 23:33 GMT

commit ceec1a1368322510a0736547fb59f8cc2cb7d3c1
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Wed Sep 3 16:00:14 2008 +0200

    Wrappers around listen types

Files changed:
 src/include/radiusd.h |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)

======================================================================
commit 95084ffaa0cdcc4db28808bb9b8bf4a60b9f4b50
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Wed Sep 3 12:17:35 2008 +0200

    Set default socket address && usage

Files changed:
 src/main/radmin.c |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)

======================================================================
commit 248da1a293f49c8c248ceb872885f3e926b35545
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Wed Sep 3 12:12:18 2008 +0200

    Added example of control socket

Files changed:
 raddb/sites-available/control-socket |   28 ----------------------------
 1 files changed, 0 insertions(+), 28 deletions(-)

======================================================================
commit de6134f74f6eabc2537eb3849a5ed39903c8d4d4
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Wed Sep 3 12:03:09 2008 +0200

    Add dynamic clients module

Files changed:
 src/modules/stable |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

======================================================================
commit da21e341231fa7b4198d1117ade0cb6040eecbcc
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Wed Sep 3 12:02:49 2008 +0200

    Add radmin tool.

Files changed:
 src/main/Makefile.in |    4 -
 src/main/radmin.c    |  229 --------------------------------------------------
 2 files changed, 0 insertions(+), 233 deletions(-)

======================================================================
commit 2b4a564eff6c99cc798709699c68234dae68668d
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Wed Sep 3 12:01:41 2008 +0200

    New command sockets.

Files changed:
 src/include/radiusd.h |    7 -
 src/main/Makefile.in  |    3 +-
 src/main/command.c    |  955 -------------------------------------------------
 src/main/listen.c     |   25 +--
 4 files changed, 3 insertions(+), 987 deletions(-)

======================================================================
commit 163e2a796cf8c02a846ba48da93863efd4a81e55
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Wed Sep 3 12:00:15 2008 +0200

    event_fd_delete API

Files changed:
 src/include/radiusd.h |    6 ------
 src/main/event.c      |   46 +++++-----------------------------------------
 2 files changed, 5 insertions(+), 47 deletions(-)

======================================================================
commit 62a35f8391196dbe914fe1bc84928fdfd8b7dc9b
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Wed Sep 3 11:57:19 2008 +0200

    New module-specific HUP, and find without linking

Files changed:
 src/include/modpriv.h |    5 +--
 src/main/modcall.c    |    4 +-
 src/main/modules.c    |  128 ++++++++++++++++++++++---------------------------
 3 files changed, 61 insertions(+), 76 deletions(-)

======================================================================
commit 6c69c105a967875300e8101f9765e38f5f42e9c5
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Wed Sep 3 11:55:45 2008 +0200

    New API's to update CONF_PAIRs, and get CONF_PARSERS

Files changed:
 src/include/conffile.h |    3 --
 src/main/conffile.c    |   54 +++++------------------------------------------
 2 files changed, 6 insertions(+), 51 deletions(-)

======================================================================
commit 4c3d0042f67e35a1aaca2df2523515bce02096ea
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Wed Sep 3 11:12:41 2008 +0200

    Handle changed / deleted fd's a bit better

Files changed:
 src/lib/event.c |   30 ++++++++++++++++--------------
 1 files changed, 16 insertions(+), 14 deletions(-)

======================================================================
commit 99bc407422444a01de7ff439113f3b12e1e2da95
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Mon Sep 1 11:06:49 2008 +0200

    Sample for TTLS/EAP-MSCHAPv2

Files changed:
 src/tests/eap-ttls-eap-mschapv2.conf |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)

======================================================================
commit 336dc4c65fc9e6c8a8aec27500eab4eeea5f79b4
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Mon Sep 1 11:05:51 2008 +0200

    leverage rlm_dynamic_clients

Files changed:
 src/main/listen.c |   16 +---------------
 1 files changed, 1 insertions(+), 15 deletions(-)

======================================================================
commit 1a538ee88ad3231b6842bf38dded1e476a01016c
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Mon Sep 1 11:05:02 2008 +0200

    Dynamic clients can read files from a directory

    i.e. create a dynamic client 192.168.0.0/16, and point
    it to a directory.  When the server starts, it will read ALL
    of the files in that directory, and try to add them as clients.

    Later, the rlm_dynamic_clients module can re-read them...

Files changed:
 src/include/radiusd.h |    4 -
 src/main/client.c     |  211 ++++++++-----------------------------------------
 2 files changed, 33 insertions(+), 182 deletions(-)

======================================================================
commit 091e1f060be02f8eb2aeda2c4566bb68d7a1a39e
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Mon Sep 1 11:03:37 2008 +0200

    Module to read dynamic clients from files

Files changed:
 src/modules/rlm_dynamic_clients/Makefile           |   11 --
 .../rlm_dynamic_clients/rlm_dynamic_clients.c      |  118 --------------------
 2 files changed, 0 insertions(+), 129 deletions(-)

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

aland | 5 Sep 2008 01:33
Favicon
Gravatar

GIT Log for 2008-09-04 23:33 GMT

commit 7442a83ffba5732fd2a859587c17d56a9a0a3901
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Thu Sep 4 16:12:46 2008 +0200

    Note 2.1.0

Files changed:
 debian/changelog       |   23 -----------------------
 redhat/freeradius.spec |    2 +-
 suse/freeradius.spec   |    2 +-
 3 files changed, 2 insertions(+), 25 deletions(-)

======================================================================
commit d4bf36727c30d759984b0047bc23f8ce154a0f9b
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Thu Sep 4 16:08:16 2008 +0200

    Too many cool things to make it 2.0.6

Files changed:
 VERSION |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

======================================================================
commit 91b97a8487259277bcafc6ce56100a78035c008d
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Thu Sep 4 14:26:29 2008 +0200

    Set more sockets to KNOWN

Files changed:
 src/main/event.c |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

======================================================================
commit c2873f1b43e286a25630dc2f22c1471343a8e924
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Thu Sep 4 14:10:53 2008 +0200

    More messages && printing

Files changed:
 src/main/command.c |   40 ++++++++++++++--------------------------
 1 files changed, 14 insertions(+), 26 deletions(-)

======================================================================
commit be836fb706670867fcf9f5f9efa344f125ba2945
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Thu Sep 4 14:10:28 2008 +0200

    Move HUP code to per-module, not global

    This allows an infinite number of HUP's, and also multiple hups
    for one module.

Files changed:
 src/include/modpriv.h |    4 +-
 src/main/modules.c    |  100 +++++++++++++++++++++++-------------------------
 2 files changed, 49 insertions(+), 55 deletions(-)

======================================================================
commit 8ae032476420493a07d6d633fdc6b48b32b8f9da
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Thu Sep 4 14:00:16 2008 +0200

    Initialize sockaddr_un

Files changed:
 src/main/command.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

======================================================================
commit 790650f36507b88fcd60822fde7b0557dc016a45
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Thu Sep 4 11:53:40 2008 +0200

    Use new API for find_module_instance

Files changed:
 src/modules/rlm_sqlhpwippool/rlm_sqlhpwippool.c |    2 +-
 src/modules/rlm_sqlippool/rlm_sqlippool.c       |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

======================================================================
commit d50c9ab189fda599f6f26fa188360e5c34b9ada6
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Thu Sep 4 11:10:29 2008 +0200

    Document radmin

Files changed:
 doc/ChangeLog |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

======================================================================
commit ea5311578d4521cd10fa752d79678234d2c788c3
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Thu Sep 4 11:01:45 2008 +0200

    -lreadline && getpeereid checks

Files changed:
 Make.inc.in               |    2 -
 configure                 |  120 +++++++++-----------------------------------
 configure.in              |    4 --
 src/include/autoconf.h.in |    3 -
 4 files changed, 25 insertions(+), 104 deletions(-)

======================================================================
commit 59f17ef9c220f4d05b974d0ba63d2fe9d11d0c8b
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Thu Sep 4 10:54:50 2008 +0200

    Document radmin

Files changed:
 man/man8/radmin.8 |   21 ---------------------
 1 files changed, 0 insertions(+), 21 deletions(-)

======================================================================
commit 32961f3c20560da38ba49b732abce1f635dd5214
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Thu Sep 4 10:47:58 2008 +0200

    Build radmin by default

Files changed:
 src/main/Makefile.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

======================================================================
commit 7c857208eea04e8e358e9e48b66b052f99c4e9ab
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Thu Sep 4 10:47:43 2008 +0200

    r/w socket magic && version number

Files changed:
 src/main/command.c |   25 +++++--------------------
 src/main/radmin.c  |   28 ----------------------------
 2 files changed, 5 insertions(+), 48 deletions(-)

======================================================================
commit 5d142cc81ba303c48fceaa3d1f8ad1c7090e3755
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Thu Sep 4 10:36:18 2008 +0200

    Added uid/gid checking

Files changed:
 raddb/sites-available/control-socket |   41 +---------
 src/main/command.c                   |  149 +++++----------------------------
 2 files changed, 25 insertions(+), 165 deletions(-)

======================================================================
commit 6b0aa596636f69683a3f96cd0b9ff02e60dbc4df
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Thu Sep 4 10:35:03 2008 +0200

    Leverage configure checks && use select

Files changed:
 src/main/radmin.c |   24 ++++--------------------
 1 files changed, 4 insertions(+), 20 deletions(-)

======================================================================
commit 5e5c289c36066229aa061a44c47cb5cd5171fdf0
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Thu Sep 4 08:57:51 2008 +0200

    More ifdef's for conditional builds

Files changed:
 src/main/listen.c |   36 +++++++++++++++++-------------------
 1 files changed, 17 insertions(+), 19 deletions(-)

======================================================================
commit b6abca0c8922f023c619c30263ed91c08132d76d
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Thu Sep 4 08:40:59 2008 +0200

    Look for new header files

Files changed:
 configure                 |    4 ----
 configure.in              |    2 --
 src/include/autoconf.h.in |    6 ------
 3 files changed, 0 insertions(+), 12 deletions(-)

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

aland | 6 Sep 2008 01:33
Favicon
Gravatar

GIT Log for 2008-09-05 23:33 GMT

commit b7f48ab8fed56f81a0974dd17c30aadf197bcf31
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Fri Sep 5 17:27:15 2008 +0200

    Make work with -q, and input from a pipe

Files changed:
 src/main/radmin.c |   79 ++++++++++++++++++++++-------------------------------
 1 files changed, 33 insertions(+), 46 deletions(-)

======================================================================
commit 0d1765750ae68dd0bbc1895346cb1369772d1d57
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Fri Sep 5 17:20:45 2008 +0200

    Print GPL.  Use getopt

Files changed:
 src/main/radmin.c |   31 +++++++------------------------
 1 files changed, 7 insertions(+), 24 deletions(-)

======================================================================
commit e03b7334749d7d2db94167947c3cadc9e5e8714f
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Fri Sep 5 17:03:29 2008 +0200

    Enable set config, and fix control socket

Files changed:
 src/main/command.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

======================================================================
commit 2ce1c8ec3c65cba0eb29737b947be9a528f7037b
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Fri Sep 5 17:03:10 2008 +0200

    Minor cleanups to reuse more code

Files changed:
 src/main/event.c |   29 ++++++++++++++++++++++-------
 1 files changed, 22 insertions(+), 7 deletions(-)

======================================================================
commit 6496552b9ea5eb60535520d68594e91e9dc9e786
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Fri Sep 5 17:02:01 2008 +0200

    Re-arrange braces to fix problems.

Files changed:
 src/modules/rlm_unix/rlm_unix.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

======================================================================
commit 89e73999818c0c6dfde42a49c2f9ae00cbc99c53
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Fri Sep 5 16:17:30 2008 +0200

    Added radmin

Files changed:
 suse/freeradius.spec |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

======================================================================
commit bacf36805f38d059f58c5c62141f91611e8a1bbc
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Fri Sep 5 15:27:57 2008 +0200

    Stupid debian date stuff

Files changed:
 debian/changelog |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

======================================================================
commit 0c9099c41c0c91ac3dd674fad4e32865135b5864
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Fri Sep 5 13:20:58 2008 +0200

    Updated dates

Files changed:
 debian/changelog |    2 +-
 doc/ChangeLog    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

======================================================================
commit c25f72af9c34029e8c533de1d9d4131214214075
Author: Alan T. DeKok <aland <at> freeradius.org>
Date:   Fri Sep 5 07:18:09 2008 +0200

    Corrected typo

Files changed:
 src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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

awaneesh kumar | 6 Sep 2008 09:33
Picon
Favicon

EAP-AKA for CDMA.

Hi,

 

I am looking for the EAP-AKA support for the CDMA handsets. Does anybody about how to implement this?

 

It looks there is diff spec for CDMA based AKA algorithms.

S.S0055-A_v3.0_051003.

 

But i am not sure how it can be used in existing EAP-AKA patch to make it work.

Is there some source code availabale any where which tells how these CDMA based AKA algorithms will be used?

 

Any help will be appreciated.

 

Thanks

Awaneesh

 

 


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

Gmane