Discussion:
"Dummy" radiusd Python module ;-)
Stefan Paetow
2018-10-18 12:23:45 UTC
Permalink
Hi,

Question... there isn't per chance a dummy radiusd Python module out there that can be used to mock up FR structures accessible through Python, is there? :-)

Reason I ask is because as much as FR can be built on a macOS environment, the person in question doesn't need/want a full FreeRADIUS environment on their system to develop some Python modules... :-)

With Regards

Stefan Paetow
Consultant, Trust and Identity

t: +44 (0)1235 822 125
gpg: 0x3FCE5142
xmpp: ***@jabber.dev.ja.net
skype: stefan.paetow.janet

jisc.ac.uk

Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800.



-
List info/subscribe/unsubscribe? See http://www.freerad
Alan DeKok
2018-10-18 12:36:35 UTC
Permalink
Post by Stefan Paetow
Question... there isn't per chance a dummy radiusd Python module out there that can be used to mock up FR structures accessible through Python, is there? :-)
Nope. Tho the inputs are just tuples, so you should be able to mock that up easily.

i.e. create a stub python module that just prints out its inputs. Then, use those inputs to mock up another module.
Post by Stefan Paetow
Reason I ask is because as much as FR can be built on a macOS environment, the person in question doesn't need/want a full FreeRADIUS environment on their system to develop some Python modules... :-)
Makes sense...

Alan DeKok.


-
List info/subscribe/unsubscribe? See http://www.freer
Stefan Paetow
2018-10-18 12:58:05 UTC
Permalink
Ahh, excellent.

I shall do that. Thanks for that. *goes off to 'play'*

;-)

Stefan Paetow
Consultant, Trust and Identity

t: +44 (0)1235 822 125
gpg: 0x3FCE5142
xmpp: ***@jabber.dev.ja.net
skype: stefan.paetow.janet

jisc.ac.uk

Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800.
Post by Stefan Paetow
Question... there isn't per chance a dummy radiusd Python module out there that can be used to mock up FR structures accessible through Python, is there? :-)
Nope. Tho the inputs are just tuples, so you should be able to mock that up easily.

i.e. create a stub python module that just prints out its inputs. Then, use those inputs to mock up another module.
Post by Stefan Paetow
Reason I ask is because as much as FR can be built on a macOS environment, the person in question doesn't need/want a full FreeRADIUS environment on their system to develop some Python modules... :-)
Makes sense...

Alan DeKok.


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users
Herwin Weststrate
2018-10-18 16:40:35 UTC
Permalink
Post by Stefan Paetow
Hi,
Question... there isn't per chance a dummy radiusd Python module out there that can be used to mock up FR structures accessible through Python, is there? :-)
There's an example on
https://github.com/FreeRADIUS/freeradius-server/blob/master/src/modules/rlm_python/prepaid.py
(the last few lines)
--
Herwin Weststrate
-
List info/subscribe/unsubscribe? See http://w
Loading...