Show operator that is actually used instead of the default in rlm_python
authorHerwin Weststrate <herwin@snt.utwente.nl>
Thu, 17 Dec 2015 19:00:25 +0000 (20:00 +0100)
committerHerwin Weststrate <herwin@snt.utwente.nl>
Wed, 6 Jan 2016 20:48:13 +0000 (21:48 +0100)
So if we remove a certain attribute, display "!* ANY" instead of "= ANY"

src/modules/rlm_python/rlm_python.c

index 1e1a456..7ac7b75 100644 (file)
@@ -363,9 +363,9 @@ static void mod_vptuple(TALLOC_CTX *ctx, REQUEST *request, VALUE_PAIR **vps, PyO
 
                vp->op = op;
                if (fr_pair_value_from_str(vp, s2, -1) < 0) {
-                       DEBUG("rlm_python:%s: Failed: '%s:%s' = '%s'", funcname, list_name, s1, s2);
+                       DEBUG("rlm_python:%s: Failed: '%s:%s' %s '%s'", funcname, list_name, s1, fr_int2str(fr_tokens, op, "="), s2);
                } else {
-                       DEBUG("rlm_python:%s: '%s:%s' = '%s'", funcname, list_name, s1, s2);
+                       DEBUG("rlm_python:%s: '%s:%s' %s '%s'", funcname, list_name, s1, fr_int2str(fr_tokens, op, "="), s2);
                }
 
                radius_pairmove(current, vps, vp, false);