Returning Vendor Specific Attribute in radius reply
Siddiqui Najam
Najam.Siddiqui at gemalto.com
Wed Aug 23 18:28:15 CEST 2017
> Can you do a test for me? Go to src/modules/rlm_python/rlm_python.c, and find this code:
if (tmpl_from_attr_str(&dst, s1, REQUEST_CURRENT, PAIR_LIST_REPLY, false, false) <= 0) {
ERROR("%s - Failed to find attribute %s:%s", funcname, list_name, s1);
continue;
}
>change the "false, false" to "true, false". Then re-build && re-install the server.
I tested with the change. Still does not work. The change to true for allow_unknown did not make a difference because it is a known attribute.
The issue seems to be that the type for 'Attr-26' is set to PW_TYPE_VSA (in tmpl_from_attr_substr) which later is rejected.
-Najam
________________________________
This message and any attachments are intended solely for the addressees and may contain confidential information. Any unauthorized use or disclosure, either whole or partial, is prohibited.
E-mails are susceptible to alteration. Our company shall not be liable for the message if altered, changed or falsified. If you are not the intended recipient of this message, please delete it and notify the sender.
Although all reasonable efforts have been made to keep this transmission free from viruses, the sender will not be liable for damages caused by a transmitted virus.
More information about the Freeradius-Users
mailing list