[OpenSER-Devel] radiusclient-ng 0.5.6 REJECT_RC

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Oct 30 09:42:41 UTC 2007


Hi Juha,

I thing no non-bug-fixes changes should be applied to the 1.3 version 
(according to the testing and releasing policy). It is an interesting 
feature which is already available for the DB authentication.

Let's keep it for after the release. In the meanwhile, you can upload a 
patch on the tracker.

Thanks and regards,
Bogdan

Juha Heinanen wrote:
> radiusclient-ng version RELENG_0_5_6 has a new result code
>
> #define REJECT_RC       2
>
> which is returned if authentication failed due to wrong credentials.  it
> could be used to avoid the currently misleading error message produced by
> radius_[proxy|www]_authorize when where was no actual error, but
> credentials simply did not match.
>
> i would like to add the following ifdef to auth_radius/sterman.c:
>
> 	/* Send request */
> 	if ((i = rc_auth(rh, SIP_PORT, send, &received, msg)) == OK_RC) {
> 		LM_DBG("Success\n");
> 		rc_avpair_free(send);
> 		send = 0;
> 		generate_avps(received);
> 		rc_avpair_free(received);
> 		return 1;
> 	} else {
> #ifdef REJECT_RC
> 		if (i == REJECT_RC) {		
> 			LM_DBG("Failure\n");
> 			goto err;
> 		}
> #endif
> 		LM_ERR("authorization failed\n");	
> 	}
>
> a couple of questions:
>
> - is this something that can be done during testing phase of 1.3?
>
> - what is the best place to define REJECT_RC?  should it go to
>   Makefile.defs, auth_radius/Makefile or where?
>
> -- juha
>
> _______________________________________________
> Devel mailing list
> Devel at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/devel
>
>   




More information about the Devel mailing list