...
Code Block |
---|
mysql -uroot radius < /etc/freeradius/3.0/mods-config/sql/main/mysql/setup.sql |
...
Code Block |
---|
cd /etc/freeradius/3.0/mods-enabled
ln -s ../mods-available/sql sql |
Python module / script_launcher.py script
Code Block |
---|
cd /etc/freeradius/3.0/mods-enabled ln -s ../mods-available/python mods-enabled/python |
Put the following in it:
Code Block | ||
---|---|---|
| ||
# # Make sure the PYTHONPATH environmental variable contains the # directory(s) for the modules listed below. # # Uncomment any func_* which are included in your module. If # rlm_python is called for a section which does not have # a function defined, it will return NOOP. # python { module = script_launcher # @#$dy python_path = ${modconfdir}/${.:name}:/usr/lib/python2.7 # @#$dy mod_post_auth = ${.module} # @#$dy func_post_auth = post_auth # @#$dy } |
...