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.
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!