0
実際に私はmysqlによってAAAを持っており、すべて正常に動作します。特に、10分(600秒)接続後にユーザを切断するには、Max-Daily-Session属性を使用します。 私は最近カスタムphpスクリプトを使用してauthenticazioneの方法を変更しました。Freeradius Max-Daily-Session in custom authentication
authorize{
update control {
Auth-Type := `/usr/bin/php -f /etc/raddb/yourscript.php '%{User-Name}' '%{User-Password}' '%{Client-IP-Address}'`
}
では/ etc/FreeRADIUSの/ユーザー:attributes.phpで
DEFAULT Auth-Type = Accept
Exec-Program-Wait = "/usr/bin/php -f /etc/raddb/attributes.php '%{User-Name}' '%{User-Password}' '%{Client-IP-Address}'"
:サイト対応/ defaultファイルで
<?php
$User = $argv[1];
$Pass = $argv[2];
$Ip = $argv[3];
if ($User == "test")
echo "Max-Daily-Session:=600";
?>
サーバーにはないようですMax-Daily-Session属性を気にし、Disconnectのパケットを送信しません。 mysqlとカスタム認証の違いは何ですか?