Allow strings as operator in rlm_python
authorHerwin Weststrate <herwin@snt.utwente.nl>
Thu, 17 Dec 2015 19:28:55 +0000 (20:28 +0100)
committerHerwin Weststrate <herwin@snt.utwente.nl>
Wed, 6 Jan 2016 20:48:37 +0000 (21:48 +0100)
commit8d4893d3850dc7a2647f72a4b1e75e1f67a5537a
tree483c14ce4598adaedddf6da7047c062b9877b6ac
parenta5c6c753982e03b5cf9efd4042764a799c87933f
Allow strings as operator in rlm_python

Because ('Tmp-String-0', '!*', 'ANY') is just so more readable than ('Tmp-String-0', 21, 'ANY'). Plain integers still work for backwards compatibility. As a bonus, we get rid of the OP table in radiusd.py: this module was not supposed to be included in scripts running from FreeRADIUS, but was still referenced from prepaid.py. As a bonus, we get rid of a table that was no longer in sync with the definitions in tokens.h.
src/modules/rlm_python/prepaid.py
src/modules/rlm_python/radiusd.py
src/modules/rlm_python/rlm_python.c