[exim-dev] [Bug 1850] "auths/call_radius.c": in switch state…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: admin
Datum:  
To: exim-dev
Betreff: [exim-dev] [Bug 1850] "auths/call_radius.c": in switch statement "case REJECT_RC" missing
https://bugs.exim.org/show_bug.cgi?id=1850

--- Comment #3 from Leonhard Knauff <lk@???> ---
REJECT_RC is defined in the radius client module

     freeradius-client-1.1.7/include/freeradius-client.h
  resp.
        radiusclient-ng-0.5.6/include/radiusclient-ng.h


of the "neutral" external packages 
     freeradius-client-1.1.7   resp.  radiusclient-ng-0.5.6
and there without any restrictions to operating systems.  I used it with 
Solaris only.


I used Freeradius 2 server. But freeradius-client-1.1.7 and
radiusclient-ng-0.5.6 should work with any other radius servers.

>> And so REJECT_RC is defined for all possible variants that Exim can be
>> compiled with - if they use freeradius-client-1.1.7 or the ancestor
>> radiusclient-ng-0.5.6 for SMTP authentication.



Without the code

switch (result)
{
case OK_RC:
return OK;

  case REJECT_RC:                               // added 20.06.2016
  return FAIL;                                  //  LK


.......

any correct "AUTH = notOK" (user unknown, password wrong) with the 
return code    REJECT_RC = 2  the switch falls through to the default 


default:
case BADRESP_RC:
*errptr = string_sprintf("RADIUS: unexpected response (%d)", result);
return ERROR;

with a protocol/error message like

 2016-06-16 22:44:37 auth_login authenticator failed for 
    p5b2b5233.dip0.t-ipconnect.de ([IPv6:::ffff:192.168.30.56]) 
    [91.43.82.xx] I=[141.48.3.12]:587: 435 Unable to authenticate at present
    (set_id=xxxxx): RADIUS: unexpected response (2)


--
You are receiving this mail because:
You are on the CC list for the bug.