Automatic report from sources (radiusd) between 26.06.2007 - 27.06.2007 GMT
CVS log entries from 26.06.2007 (Tue) 08:00:04 - 27.06.2007 (Wed) 08:00:00 GMT ===================================================== Summary by authors ===================================================== Author: aland File: radiusd/src/main/xlat.c; Revisions: 1.130, 1.129 File: radiusd/src/main/valuepair.c; Revisions: 1.87 File: radiusd/src/include/radius.h; Revisions: 1.88 File: radiusd/src/main/listen.c; Revisions: 1.89 File: radiusd/share/dictionary.freeradius.internal; Revisions: 1.18 File: radiusd/doc/variables.txt; Revisions: 1.21 File: radiusd/raddb/sql/postgresql-ippool-dialup.conf; Revisions: 1.2 File: radiusd/src/lib/token.c; Revisions: 1.25 File: radiusd/raddb/radiusd.conf.in; Revisions: 1.248 File: radiusd/raddb/sql/mysql-ippool-dialup.conf; Revisions: 1.4 File: radiusd/src/main/radclient.c; Revisions: 1.114 File: radiusd/man/man5/unlang.5; Revisions: 1.7, 1.6 Author: pnixon File: radiusd/doc/examples/mysql.sql; Revisions: 1.6 File: radiusd/raddb/sql/mysql-ippool-dialup.conf; Revisions: 1.3, 1.2 File: radiusd/raddb/sqlippool.conf; Revisions: 1.12, 1.11 ===================================================== Combined list of identical log entries ===================================================== Description: Added support for Client-Shortname Modified files: File: radiusd/share/dictionary.freeradius.internal; Revision: 1.18; Date: 2007/06/26 12:06:12; Author: aland; Lines: (+3 -2) File: radiusd/src/include/radius.h; Revision: 1.88; Date: 2007/06/26 12:06:12; Author: aland; Lines: (+2 -1) File: radiusd/src/main/xlat.c; Revision: 1.130; Date: 2007/06/26 12:06:13; Author: aland; Lines: (+10 -2) ------------------------------- Description: Renamed "check" to "control", to match "man unlang" Modified files: File: radiusd/raddb/radiusd.conf.in; Revision: 1.248; Date: 2007/06/27 07:55:44; Author: aland; Lines: (+2 -2) File: radiusd/raddb/sql/mysql-ippool-dialup.conf; Revision: 1.4; Date: 2007/06/27 07:55:45; Author: aland; Lines: (+4 -4) File: radiusd/raddb/sql/postgresql-ippool-dialup.conf; Revision: 1.2; Date: 2007/06/27 07:55:45; Author: aland; Lines: (+3 -3) ------------------------------- Description: Moved conditional syntax to %{%{foo}:-%{bar}}, which is more robust in the event of %{%{sql: foo bar }:-%{bar: ...}} Modified files: File: radiusd/man/man5/unlang.5; Revision: 1.6; Date: 2007/06/26 09:21:05; Author: aland; Lines: (+54 -34) File: radiusd/src/main/xlat.c; Revision: 1.129; Date: 2007/06/26 09:21:05; Author: aland; Lines: (+89 -3) ===================================================== Log entries ===================================================== Description: Add a mysql schema for rlm_sqlippool from the suggestion in the wiki at http://wiki.freeradius.org/Talk:Rlm_sqlippool Modified files: File: radiusd/doc/examples/mysql.sql; Revision: 1.6; Date: 2007/06/27 06:31:58; Author: pnixon; Lines: (+17 -1) ------------------------------- Description: Removed overlap between this document and "man unlang" Modified files: File: radiusd/doc/variables.txt; Revision: 1.21; Date: 2007/06/26 09:23:16; Author: aland; Lines: (+3 -98) ------------------------------- Description: Added note on "check:" Modified files: File: radiusd/man/man5/unlang.5; Revision: 1.7; Date: 2007/06/27 07:51:49; Author: aland; Lines: (+4 -0) ------------------------------- Description: break a line at 80 chars Modified files: File: radiusd/raddb/sql/mysql-ippool-dialup.conf; Revision: 1.3; Date: 2007/06/27 07:05:19; Author: pnixon; Lines: (+3 -2) ------------------------------- Description: update the queries significantly Modified files: File: radiusd/raddb/sql/mysql-ippool-dialup.conf; Revision: 1.2; Date: 2007/06/27 06:58:24; Author: pnixon; Lines: (+90 -84) ------------------------------- Description: change check: to control: Modified files: File: radiusd/raddb/sqlippool.conf; Revision: 1.12; Date: 2007/06/27 06:50:52; Author: pnixon; Lines: (+3 -3) ------------------------------- Description: correct the mysql conf file (which commented by default) and update the remarks slightly Modified files: File: radiusd/raddb/sqlippool.conf; Revision: 1.11; Date: 2007/06/27 06:36:18; Author: pnixon; Lines: (+7 -5) ------------------------------- Description: Wild... Filter-Id = "foo \" bar" *never* worked. Now it does. Modified files: File: radiusd/src/lib/token.c; Revision: 1.25; Date: 2007/06/26 09:00:18; Author: aland; Lines: (+8 -17) ------------------------------- Description: Allow per-server clients only if there actually are per-server clients Modified files: File: radiusd/src/main/listen.c; Revision: 1.89; Date: 2007/06/26 09:37:16; Author: aland; Lines: (+11 -2) ------------------------------- Description: Fix for udpfromto issues Modified files: File: radiusd/src/main/radclient.c; Revision: 1.114; Date: 2007/06/26 08:17:03; Author: aland; Lines: (+10 -4) ------------------------------- Description: Print out warnings if we see User-Password == ... Modified files: File: radiusd/src/main/valuepair.c; Revision: 1.87; Date: 2007/06/27 07:50:15; Author: aland; Lines: (+9 -3) ===================================================== Summary of modified files ===================================================== File: radiusd/doc/examples/mysql.sql Revisions: 1.6 Authors: pnixon (+17 -1) ------------------------------- File: radiusd/doc/variables.txt Revisions: 1.21 Authors: aland (+3 -98) ------------------------------- File: radiusd/man/man5/unlang.5 Revisions: 1.7, 1.6 Authors: aland (+4 -0), aland (+54 -34) ------------------------------- File: radiusd/raddb/radiusd.conf.in Revisions: 1.248 Authors: aland (+2 -2) ------------------------------- File: radiusd/raddb/sql/mysql-ippool-dialup.conf Revisions: 1.4, 1.3, 1.2 Authors: aland (+4 -4), pnixon (+3 -2), pnixon (+90 -84) ------------------------------- File: radiusd/raddb/sql/postgresql-ippool-dialup.conf Revisions: 1.2 Authors: aland (+3 -3) ------------------------------- File: radiusd/raddb/sqlippool.conf Revisions: 1.12, 1.11 Authors: pnixon (+3 -3), pnixon (+7 -5) ------------------------------- File: radiusd/share/dictionary.freeradius.internal Revisions: 1.18 Authors: aland (+3 -2) ------------------------------- File: radiusd/src/include/radius.h Revisions: 1.88 Authors: aland (+2 -1) ------------------------------- File: radiusd/src/lib/token.c Revisions: 1.25 Authors: aland (+8 -17) ------------------------------- File: radiusd/src/main/listen.c Revisions: 1.89 Authors: aland (+11 -2) ------------------------------- File: radiusd/src/main/radclient.c Revisions: 1.114 Authors: aland (+10 -4) ------------------------------- File: radiusd/src/main/valuepair.c Revisions: 1.87 Authors: aland (+9 -3) ------------------------------- File: radiusd/src/main/xlat.c Revisions: 1.130, 1.129 Authors: aland (+10 -2), aland (+89 -3) -- Automatic cron job from /web/pages/us.freeradius.org/bin/new_makelog.pl
Hi all, I have an new rlm_module (I used the rlm_example of freeradius) as described in http://wiki.freeradius.org/Modules. i do nothing special just add DEBUG in the different functions. The configure, make and make install operation works normaly without errors. 1- first I just add the module in modules section in radiusd.conf : nothing hapens when I execute the the radius daemon (no message indicating that the module is loaded). And when I send a request radius packet, the debug commands that I put in the authentication function is not executed/ this is the code of the authentication : ######"" static int examlpe_authenticate(void *instance, REQUEST *request) { /* quiet the compiler */ instance = instance; request = request; DEBUG("rlm_hotp: test de la fonction d'authentification"); return RLM_MODULE_OK; } ######### 2- when I add the module in the authaurisation section (just before PAP), I see the message telling that the rlm_examlpe is loaded but this error occurs when i send a request packet : ########### rad_recv: Access-Request packet from host 127.0.0.1:32782, id=41, length=56 User-Name = "test" User-Password = "test" NAS-IP-Address = 255.255.255.255 NAS-Port = 0 Processing the authorize section of radiusd.conf modcall: entering group authorize for request 0 modcall[authorize]: module "preprocess" returns ok for request 0 modcall[authorize]: module "chap" returns noop for request 0 modcall[authorize]: module "mschap" returns noop for request 0 rlm_realm: No '@' in User-Name = "test", looking up realm NULL rlm_realm: No such realm "NULL" modcall[authorize]: module "suffix" returns noop for request 0 rlm_eap: No EAP-Message, not doing EAP modcall[authorize]: module "eap" returns noop for request 0 modcall[authorize]: module "files" returns notfound for request 0 Segmentation fault (core dumped) ############# Note : I left the authorization function as it was in the rlm_examlpe.c. - please help me to diagnostic this! - can somebody tell me who to do to authentication request handled by the new module? Thanks. Lisa.
MACHANI Ouahiba wrote:
1- first I just add the module in modules section in radiusd.conf : nothing hapens when I execute the the radius daemon (no message indicating that the module is loaded). And when I send a request radius packet, the debug commands that I put in the authentication function is not executed/
Did you list the module in the authentication section? If not, why do you expect the module to be called? Alan DeKok.
Alan DeKok a e'crit :
MACHANI Ouahiba wrote:
1- first I just add the module in modules section in radiusd.conf : nothing hapens when I execute the the radius daemon (no message indicating that the module is loaded). And when I send a request radius packet, the debug commands that I put in the authentication function is not executed/
Did you list the module in the authentication section? If not, why do you expect the module to be called?
1 - I added this in the authorize section in radiusd.conf (after installing) : authorize { ...... # -------- HOTP autheorize hotp # # As of 1.1.4, you should list "pap" last in this section. # See "man rlm_pap" for more information. pap } 2 - and this, in the authentication section authenticate { # # PAP authentication, when a back-end database listed # in the 'authorize' section supplies a password. The # password can be clear-text, or encrypted. Auth-Type PAP { pap } #---------------- HOTP authentication Auth-Type HOTP { hotp } ........... } 3 - i added "rlm_hotp" at the end of /freeradius-1.1.6/src/modules/stable file 4- I added also the folowing line in the dictinary.freeradius.internal file : VALUE Auth-Type HOTP 2034 - But steel have no display of the comment i added in the authentication and authorisation section. Can you please tell me what are all the necessary modifications to make to do a new authentication module and make radius execuete it all cases and repond to the access request according to the result send by this module.
MACHANI Ouahiba wrote: ,,,
- But steel have no display of the comment i added in the authentication and authorisation section.
Then you're not editing the radiusd.conf file that the server is using.
Can you please tell me what are all the necessary modifications to make to do a new authentication module and make radius execuete it all cases and repond to the access request according to the result send by this module.
The existing modules do what's necessary. rlm_example contains *everything* needed to make a module, other than editing radiusd.conf. Alan DeKok.
Alan DeKok a e'crit :
MACHANI Ouahiba wrote: ,,,
- But steel have no display of the comment i added in the authentication and authorisation section.
Then you're not editing the radiusd.conf file that the server is using.
I edit the rihgt file /etc/raddb/radiusd.conf file (since there is the module is loaded when i lunch radiusd) : - I add the folowing lines to the authentication section : # authenticate { #-------------- I tried to add it in different places in the file Auth-Type EXAMPLE{ example } # # PAP authentication, when a back-end database listed # in the 'authorize' section supplies a password. The # password can be clear-text, or encrypted. Auth-Type PAP { pap } ......... } - The authentication function of my module do nothing, it just displays messages in the screen. - i execute configure radiusd with this options : ./configure --enable-rlm_example the result : It seems that the authentication function is not executed. However the authorization function is executed. - souldn't I declare some values to indicate a new methode for freeradius?
MACHANI Ouahiba wrote: ...
the result : It seems that the authentication function is not executed. However the authorization function is executed.
Did you tell the server to use your module for authentication? This is what the other modules do.
- souldn't I declare some values to indicate a new methode for freeradius?
No. Alan DeKok.
Alan DeKok a e'crit :
MACHANI Ouahiba wrote: ...
the result : It seems that the authentication function is not executed. However the authorization function is executed.
Did you tell the server to use your module for authentication? This is what the other modules do.
Can you tell me how to do that ? I added the folowing lines in the authentication section in the radiusd.conf : Auth-Type EXAMPLE{ example } isn't this sufficient ??
MACHANI Ouahiba wrote:
Can you tell me how to do that ?
Read the source code to the other modules, or the documentation?
I added the folowing lines in the authentication section in the radiusd.conf :
Auth-Type EXAMPLE{ example }
isn't this sufficient ??
No. Alan DeKok.
participants (3)
-
Alan DeKok -
Automatic cvs log generator -
MACHANI Ouahiba