Re: Authorization/SER problems




On 2007-03-30, at 23:28, Dariusz Dwornikowski wrote:

HI,
	I managed to do password checking for user, it works. Now i would
like to return soem things in Access-Accept when SER sends packet :

rad_recv: Access-Request packet from host 10.240.0.144:35694, id=160,
length=64
         User-Name = "foo@sip2.foo.pl"
         Service-Type = SIP-Caller-AVPs
         NAS-Port = 0
         NAS-IP-Address = 10.240.0.144

but i get Access-Reject :


modcall: leaving group authorize (returns ok) for request 3
auth: type Local
auth: No User-Password or CHAP-Password attribute in the request
auth: Failed to validate the user.
Login incorrect: [foo@sip2.foo.pl/<no User-Password attribute>] (from
client openser2 port 0)


I juest ant to return some parameters.




for the future: a resolved the problem.
I am checking whether client can access the requested resource ( in my case, dialed destination, etc), and If he is, i return:
SIP-AVP+=#number:value
and
Auth-Type+=Accept.

In that case radius auth can find the Auth-Type, which is autimatically granted if i want to grant it.






--
Dariusz Dwornikowski
tdi@vercom.pl







This archive was generated by a fusion of Pipermail (Mailman edition) and MHonArc.