Question about rlm modules
Hi all Is it possible to send Vendor Specific Attributes through an rlm module? I use the following method to send standard attributes through an rlm module: (As suggested by the template itself) * *reply = pairmake ("User-Name", "root", T_OP_EQ); pairadd (&request->reply->vps, reply); request->reply->code = PW_USER_NAME; DEBUG ("rlm_cmod: Sending User-Name"); What specific code should I use when for example I want to send h323-credit-amount attribute to a NAS? Best Regards Ali
"Ali Majdzadeh" <ali.majdzadeh@gmail.com> wrote:
(As suggested by the template itself)
* *reply = pairmake ("User-Name", "root", T_OP_EQ); pairadd (&request->reply->vps, reply); request->reply->code = PW_USER_NAME;
No, that last line is wrong. Completely and totally wrong. No template or examples suggests that you do that. Delete it.
What specific code should I use when for example I want to send h323-credit-amount attribute to a NAS?
You don't use a code. You just refer to the attribute by name. Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog
participants (2)
-
Alan DeKok -
Ali Majdzadeh