[Users] Radius Authentication

Edson 4lists at gmail.com
Wed Mar 1 21:23:24 CET 2006


Hi, Guys...

As the MySQL problem is aparently solved I’m facing a Radius issue… I'm using FreeRadius 1.0.4, RadiusCliente-NG 0.5.2 and OpenSER 1.0.1.

If I duplicate the configs used with SER (and that it works fine) I’m unable to authenticate my UA (the same that authenticate with SER). The message with “debug=4” is:

Mar  1 15:41:43 dell openser-TEST[20789]: check_nonce(): comparing [4405ec129258d5cf9c016ade69cf37e33b5af52b] and [4405ec129258d5cf9c016ade69cf37e33b5af52b]
Mar  1 15:41:43 dell openser-TEST[20789]: rc_check_reply: received invalid reply digest from RADIUS server
Mar  1 15:41:43 dell openser-TEST[20789]: ERROR:auth_radius:radius_authorize_sterman: rc_auth failed

So I supposed that there were some failed configuration, I looked at my “radiusd.conf” and finded:
  modules {
  ...
    digest {
    }
  ...
  }
  authorize {
          preprocess
          auth_log
          suffix
          digest
          sql
  }
  authenticate {
          digest
  }

As my FreeRadius back-end is a MySQL database, the 'sql' statement in authorize seems ok. And so do 'digest' in 'autheticate' section.
The question remains: Why are OpenSER complain on Radius response? Maybe it's because of the sterman schema (?).... 

Anyway, I try to test the server using the radtest tool. The output seems good to me:

# radtest 8201 at DOMAIN.VALID 8201 127.0.0.1 12345 MyServerPassword
Sending Access-Request of id 255 to 127.0.0.1:1812
        User-Name = "8201 at DOMAIN.VALID"
        User-Password = "8201"
        NAS-IP-Address = sip
        NAS-Port = 12345
rad_recv: Access-Accept packet from host 127.0.0.1:1812, id=255, length=35
        Reply-Message = "Authenticated"

So I discard FreeRadius config. Is this related on the value of “Reply-Message”? I already read all Radius material that I found on OpenSER web-page…

What am I doing wrong? What am I missing? As this same configs work with SER 0.9.2, why did it not with OpenSER 1.0.x?

Edson.








More information about the sr-users mailing list