I have installed freeradius 1.0.2
and radiusclient-ng.0.5.0
after the installation i am trying to run the test :
radtest test test localhost 1649 testing123
User-Name = "test"
User-Password = "test"
NAS-IP-Address = MAINSIP
NAS-Port = 1649
rad_recv: Access-Reject packet from host 127.0.0.1:1812, id=134, length=45
Reply-Message = "Hello, test with digest"
I have file digest:
---------------------------------------
User-Name = "test", Digest-Response =
"631d6d73147add2f9e437f59bbc3aeb7",
Digest-Realm = "testrealm", Digest-Nonce = "1234abcd" ,
Digest-Method = "INVITE", Digest-URI = "sip:5555551212@example.com",
Digest-Algorithm = "MD5", Digest-User-Name = "test"
in the debug of the radius server i receive that error:
----------------------------------------------------------------------
rad_recv: Access-Request packet from host 127.0.0.1:32842, id=115, length=56
User-Name = "test"
User-Password = "test"
NAS-IP-Address = 255.255.255.255
NAS-Port = 1649
modcall: entering group authorize
modcall[authorize]: module "preprocess" returns ok
modcall[authorize]: module "chap" returns noop
rlm_eap: EAP-Message not found
modcall[authorize]: module "eap" returns noop
modcall[authorize]: module "digest" returns noop
rlm_realm: No '@' in User-Name = "test", looking up realm NULL
rlm_realm: No such realm "NULL"
modcall[authorize]: module "suffix" returns noop
users: Matched DEFAULT at 152
users: Matched test at 215
modcall[authorize]: module "files" returns ok
modcall[authorize]: module "mschap" returns noop
modcall: group authorize returns ok
rad_check_password: Found Auth-Type Digest
auth: type "digest"
modcall: entering group authenticate
******ERROR: No Digest-Nonce: Cannot perform Digest authentication******
modcall[authenticate]: module "digest" returns invalid
modcall: group authenticate returns invalid
auth: Failed to validate the user.
Thanks for the help