Igor Smitran wrote:
Hello, I am trying to rewrite some custom AVPairs that cisco sends me. In order to do that i've created cusatom dictionary: ... When radius is started with this dictionary i don't get any value for disc-cause-ext attribute. It doesn't exist.
Hmm... the code in rlm_preprocess checks if the attribute is "string" type. I don't see why this is necessary. See line 155 (or so) in src/modules/rlm_preprocess/rlm_preprocess.c. Alan DeKok.
Alan DeKok wrote:
Hmm... the code in rlm_preprocess checks if the attribute is "string" type. I don't see why this is necessary. See line 155 (or so) in src/modules/rlm_preprocess/rlm_preprocess.c.
I've saw the source and now i understand, but, i don't know much of C and don't know if problem is solvable?
Igor Smitran wrote:
I've saw the source and now i understand, but, i don't know much of C and don't know if problem is solvable?
Yes. Delete the line containing PW_TYPE_STRING, and change the previous line to: if ((dattr = dict_attrbyname(newattr)) != NULL) { Then re-compile && install. Alan DeKok.
Alan DeKok wrote:
Yes. Delete the line containing PW_TYPE_STRING, and change the previous line to:
if ((dattr = dict_attrbyname(newattr)) != NULL) {
Then re-compile && install.
Just what i thought bu wasn't sure. Can we expect this to be changed permanently in future releases? Thank you for your help. Igor
participants (2)
-
Alan DeKok -
Igor Smitran