Здравствуйте как настроить авторизацию на freeRadius 3 версии через внешний скрипт, в данном случае PHP.
Может кто сталкивался? поделитесь пожалуйста! =)
Сейчас пытаюсь, пишет:
Thu Mar 15 13:40:33 2018 : ERROR: (1) php: ERROR: Failed parsing output from: /usr/bin/php -f /etc/freeradius/3.0/kAPIauth.php: Expecting operator
Thu Mar 15 13:40:34 2018 : ERROR: (1) php: ERROR: Program returned code (0) and output 'Accept'
Или подскажите что мой скрипт должен возвращать? Никак не пойму
Сделал вывод скрипта: "Auth-Type := Accept", вроде аутентификация тут прошла.
Но авторизация не проходит теперь:
Thu Mar 15 14:55:18 2018 : Info: (13) eap_peap: The users session was previously rejected: returning reject (again.)
Thu Mar 15 14:55:18 2018 : Info: (13) eap_peap: This means you need to read the PREVIOUS messages in the debug output
Thu Mar 15 14:55:18 2018 : Info: (13) eap_peap: to find out the reason why the user was rejected
Thu Mar 15 14:55:18 2018 : Info: (13) eap_peap: Look for "reject" or "fail". Those earlier messages will tell you
Thu Mar 15 14:55:18 2018 : Info: (13) eap_peap: what went wrong, and how to fix the problem
Thu Mar 15 13:34:10 2018 : Info: Loaded virtual server <default>
Thu Mar 15 13:34:10 2018 : Warning: Ignoring "sql" (see raddb/mods-available/README.rst)
Thu Mar 15 13:34:10 2018 : Warning: Ignoring "ldap" (see raddb/mods-available/README.rst)
Thu Mar 15 13:34:10 2018 : Info: Loaded virtual server inner-tunnel
Thu Mar 15 13:34:10 2018 : Info: Loaded virtual server default
Thu Mar 15 13:34:10 2018 : Info: Ready to process requests
Thu Mar 15 14:55:18 2018 : Info: (13) eap_peap: The users session was previously rejected: returning reject (again.)
Thu Mar 15 14:55:18 2018 : Info: (13) eap_peap: This means you need to read the PREVIOUS messages in the debug output
Thu Mar 15 14:55:18 2018 : Info: (13) eap_peap: to find out the reason why the user was rejected
Thu Mar 15 14:55:18 2018 : Info: (13) eap_peap: Look for "reject" or "fail". Those earlier messages will tell you
Thu Mar 15 14:55:18 2018 : Info: (13) eap_peap: what went wrong, and how to fix the problem