Feature #16582 » freeradius.inc.patch
| net/pfSense-pkg-freeradius3/files/usr/local/pkg/freeradius.inc | ||
|---|---|---|
| 2862 | 2862 |
function freeradius_modulesgoogleauth_resync() {
|
| 2863 | 2863 |
$conf = ''; |
| 2864 | 2864 | |
| 2865 |
// put the constant to a variable
|
|
| 2865 |
// Put the constant to a variable
|
|
| 2866 | 2866 |
$varFREERADIUS_SCRIPTS = FREERADIUS_SCRIPTS; |
| 2867 | 2867 | |
| 2868 |
// Read anti-replay setting from configuration |
|
| 2869 |
$settingsconfig = config_get_path('installedpackages/freeradiussettings/config/0', []);
|
|
| 2870 |
$varsettingsotpantireplay = ($settingsconfig['varsettingsotpantireplay'] == 'on') ? '1' : '0'; |
|
| 2871 | ||
| 2868 | 2872 |
$conf .= <<<EOD |
| 2869 | 2873 |
exec googleauth {
|
| 2870 | 2874 |
wait = yes |
| 2871 |
program = "{$varFREERADIUS_SCRIPTS}/googleauth.py %{request:User-Name} %{reply:MOTP-Init-Secret} %{reply:MOTP-PIN} %{request:User-Password}"
|
|
| 2875 |
program = "{$varFREERADIUS_SCRIPTS}/googleauth.py %{request:User-Name} %{reply:MOTP-Init-Secret} %{reply:MOTP-PIN} %{request:User-Password} {$varsettingsotpantireplay}"
|
|
| 2872 | 2876 |
} |
| 2873 | 2877 | |
| 2874 | 2878 |
EOD; |
- « Previous
- 1
- …
- 3
- 4
- 5
- Next »