rlm_perl and RLM_MODULE_REJECT

Jean-Michel Caricand jean-michel.caricand at lifc.univ-fcomte.fr
Sat Jan 26 12:16:21 CET 2008


Le vendredi 25 janvier 2008 17:01, Alan DeKok a écrit :
> Jean-Michel Caricand wrote:
> > Well. I made a lot of tests without success. I'm not yet able to REJECT a 
> > request in a post_proxy function, but that works fine in a authorize 
> > function. 
> > 
> > Does someone have ideas ?
> 
>   In 2.0, it looks like this isn't dealt with in src/main/event.c around
> line 1075.  It's probably useful to add...
> 
>   Alan DeKok.
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
> 

Hi,

I use freeradius-1.1.3 (Debian Etch package). I applied this patch to radiusd.c to solve 
my problem. That works. My question : my patch seems good or not ?

*** freeradius-1.1.3/src/main/radiusd.c Tue May 16 18:26:07 2006
--- /root/FREERADIUS/freeradius-1.1.3/src/main/radiusd.c        Sat Jan 26 11:04:06 2008
***************
*** 1585,1590 ****
--- 1585,1595 ----
                int rcode;
                rcode = proxy_receive(request);
                switch (rcode) {
+               case RLM_MODULE_REJECT:
+                       DEBUG2("Request %d rejected in proxy_receive.", request->number);
+                       request_reject(request);
+                       goto finished_request;
+                       break;
                  default:  /* Don't Do Anything */
                        break;
                  case RLM_MODULE_FAIL:

Cheers.




More information about the Freeradius-Users mailing list