How to modify rlm_example to implement a new eap-type authentication

Michael kevin kevin198607 at gmail.com
Tue Nov 26 10:31:31 CET 2013


I just mimic
the freeradius-server-2.1.12\src\modules\rlm_eap\types\rlm_eap_md5,
Now I want to do something step by step:
1.first step,I just want to understand the operations for creating a new
module-->compile it to the freeradius server-->use it
2.second step,I design a new authentication protocol for our project,so I
need to write a new module for the authentication function.

Now,after learned from the site http://wiki.freeradius.org/
contributing/Modules2
I still can not understand something below:(eg I mimic the rlm_eap_MD5,I
write a new module name rlm_eap_test)
How should I do to edit the configuration files,for using the rlm_eap_test
module to work?
1.Should I create a new configuration file in
the /usr/local/etc/raddb/modules folder(my freeradius configuration files's
location is /usr/local/etc/raddb)?

Or should I just edit the inner-eap file(some change in the <eap
inner-eap>section like below)or edit other files?
md5 {
}
test{
}            ----I add this two line to the inner-eap file

2. I need to add an entry in the appropriate instantiation section for test
module, so that it will be called at the proper time.
So where and how should I add the entry?

The problem puzzled me for several days.I am looking forward for your reply.
Thank you very much for your reply!!!

Best regards!


2013/11/26 Phil Mayers <p.mayers at imperial.ac.uk>

> On 26/11/13 05:43, Michael kevin wrote:
>
>> Hi all,
>> I followed the site
>> http://wiki.freeradius.org/contributing/Modules2
>> I tried to modify rlm_example.c to implement a new eap-type
>>
>
> eap types are not normal modules, so copying a normal module won't help.
>
> You'll need to copy one of the other eap types; I would use eap-md5 as the
> base, as it's simplest. There aren't any docs/sample code for this IIRC.
>
> Which EAP type do you want to implement? If you're inventing a new one,
> please don't; there are too many already.
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/
> list/users.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20131126/0dc473a1/attachment.html>


More information about the Freeradius-Users mailing list