NetKnights-GmbH / privacyidea-appliance

two-factor authentication system. This is a setup tool for easy system setup.
GNU Affero General Public License v3.0
4 stars 4 forks source link

Support FreeRADIUS 3 in redundancy setup #89

Closed plettich closed 4 years ago

plettich commented 4 years ago

FreeRADIUS 3 is already supported in the appliance (#66 ), but when setting up redundancy, it still tries to access the old configuration files/directories.

cornelinux commented 4 years ago

Should we add this to milestone 3.1?

plettich commented 4 years ago

Sure, i'll check if we can use some generic detection of the freeRADIUS version.

plettich commented 4 years ago

Ok, that MS is already due... It might take a little to test all the occurrences.

cornelinux commented 4 years ago

Sure, i'll check if we can use some generic detection of the freeRADIUS version.

Or should we simply sync both possible directories for freeradius2 and freeradius3?

cornelinux commented 4 years ago

On Ubuntu 18.04 3.1~dev3 fails to copy freeradius:

Traceback (most recent call last):
  File "/usr/bin/pi-appliance", line 23, in <module>
    main()
  File "/opt/pi-appliance/lib/python3.6/site-packages/authappliance/menu.py", line 2122, in main
    pS.main_menu()
  File "/opt/pi-appliance/lib/python3.6/site-packages/authappliance/menu.py", line 1888, in main_menu
    menu()
  File "/opt/pi-appliance/lib/python3.6/site-packages/authappliance/menu.py", line 812, in menu
    menu()
  File "/opt/pi-appliance/lib/python3.6/site-packages/authappliance/menu.py", line 908, in setup_redundancy
    self.peer.setup_freeradius()
  File "/opt/pi-appliance/lib/python3.6/site-packages/authappliance/menu.py", line 547, in setup_freeradius
    for filename in os.listdir(directory):
FileNotFoundError: [Errno 2] No such file or directory: '/etc/freeradius/modules'