Hello.
We have detected a behavior not specified in the docs. I ask for support to solve this issue.
We are using a Radius system to authorize our clients, so, for REGISTER we use the command
radius_www_authorize(“mydomain.com”)
According to the documentation the possible answers are :
Negative result codes may be interpreted as follows:
-7 (internal error) - some internal error occurred (see syslog);
-6 (nonce reused) - nonce is used more than once;
-5 (no credentials) - credentials were not found in request;
-4 (stale nonce) - stale nonce;
-3 (authorization failed) - RADIUS responded with Access Reject which may be, for example, due to user not found or wrong password;
-1 (error) - some error occured during authorization (see syslog);
Despite of this, for BadPassword or UserNotExist from the radius answer the radius_www_authorize command return “-2” as a retcode.
So, is the documentation missing something?
Or I’m doing something wrong?
Thanks
Ricardo Martinez.-
Ricardo Martinez writes:
Despite of this, for BadPassword or UserNotExist from the radius answer the radius_www_authorize command return “-2” as a retcode.
So, is the documentation missing something?
looks like bug in readme file. in those cases AUTH_INVALID_PASSWORD is returned, which is -2. i'll fix it.
-- juha
Thanks Juha.!
Regards,
-----Mensaje original----- De: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] En nombre de Juha Heinanen Enviado el: miércoles, 09 de mayo de 2012 0:39 Para: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List Asunto: [SR-Users] Problem with radius_www_authorize
Ricardo Martinez writes:
Despite of this, for BadPassword or UserNotExist from the radius answer the radius_www_authorize command return “-2” as a retcode.
So, is the documentation missing something?
looks like bug in readme file. in those cases AUTH_INVALID_PASSWORD is returned, which is -2. i'll fix it.
-- juha
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users