Navodit Bhardwaj wrote:
> For each Access-Request recieved and authenticated successfully I want
> to do following:
> 
>  1. Verify if Access-Request contains a parameter i.e IMEI of mobile
>  2. If Not, send Access-Reject. Else, 
>  3. compare IMEI to value in database and assign a 32bit hex number in
> Access-Accept

  You should be able to just write this in unlang.  Write down which
attributes you have, and what values you're looking for.  Then, write
the logic.

> Basically, I am doing a second authentication after initial
> authentication (PAP, CHAP) is successful.

  Don't do that.  Do it *before* PAP or CHAP.  In the "authorize" section.

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to