8

We've got a FreeRADIUS 2 deamon installed on a CentOS 5.7 server.

We'd like to use a pre-written Python module to do authorization but there's a problem: The Python module we've got requires Python 2.6 or more but the Python that comes installed with CentOS is Python 2.4.

Now, the server admin have installed Python 2.6 in a separate folder /usr/lib/Python2.6 so we can run Python 2.6 from there. However, /usr/bin/python is still Python 2.4. Apparently, replacing the default Python 2.4 will cause all kinds of problems.

Is there any way I can force FreeRADIUS to use /usr/lib/Python2.6 instead of the default 2.4 to locate and run modules?

chicks
  • 3,915
  • 10
  • 29
  • 37
henriksen
  • 273

2 Answers2

1

Open up the init script (something like /etc/init.d/freeradius). You then need to locate the line where it's launching the application, and change any instance of python to /usr/lib/Python2.6.

chicks
  • 3,915
  • 10
  • 29
  • 37
devicenull
  • 5,630
0

You should be able to call the 2.6 Python directly by listing the full path. So, if your script was called FreeRADIUS.py, your script would read /usr/lib/Python2.6/FreeRADIUS.py.

Simon Hova
  • 248
  • 1
  • 4