rlm_passwd

Peter Balsianok balsianok.peter at gmail.com
Wed Jun 17 16:26:14 CEST 2015


Hi,

I want to use rlm_passwd this way:

passwd msisdn2ip {
  filename = ${modconfdir}/${.:instance}/msisdn2ip.dat
  format = "*Calling-Station-Id:=Framed-IP-Address"
  delimiter = ","
}

Exmaple of msisdn2ip:
421905000000,10.10.10.1

I want to use msisdn2ip ( instance of rlm_passwd) in the post-proxy
section, therefore I have added MOD_POST_PROXY into the source core of
rlm_passwd

....
  .methods = {
    [MOD_AUTHORIZE]   = mod_passwd_map,
    [MOD_ACCOUNTING]  = mod_passwd_map,
    [MOD_POST_AUTH]   = mod_passwd_map,
    [MOD_POST_PROXY]  = mod_passwd_map
#ifdef WITH_COA
    [MOD_RECV_COA]    = mod_passwd_map,
    [MOD_SEND_COA]    = mod_passwd_map
#endif
  },
...

After compilation everything works fine.
Maybe i haven't realised something. Is it correct approach?

Thx.


More information about the Freeradius-Users mailing list