MultiOTPおよびfreeradiusエラー

MultiOTPおよびfreeradiusエラー

私はMultiOTPバージョン4.3.1.1がインストールされているサーバーでfreeradius 3.*を実行しており、FreeRADIUSを設定するために次のガイドを使用しました。 http://wiki.freeradius.org/guide/multiOTP-HOWTO radiusdを使用するときの-Xエラーは次のとおりです。

ここに画像の説明を入力してください。

私のpolicy.conf

root@debian:~# cat /usr/local/etc/raddb/policy.d/policy.conf
policy {
    # Change to a specific prefix if you want to deal with normal PAP authentication as well as OTP
    # e.g. "multiotp_prefix = 'otp:'"
    multiotp_prefix = ''
    multiotp.authorize {
       # This test is for decimal OTP code only, otherwise you will have to change it
       # Try for example this simple test: if (!control:Auth-Type) {
        if (control:Auth-Type == 'MS-CHAP') {
              update control {
                      Auth-Type := multiotpmschap
              }
        }
        elsif (!control:Auth-Type && User-Password =~ /^${policy.multiotp_prefix}([0-9]{10})$/) {
            update control {
                Auth-Type := multiotp
            }
        }
    }
}

ドキュメントとWikiをもっと見つけましたが、うまくいきません。だから何が問題なのだろうか。

ベストアンサー1

変化

 if (control:Auth-Type == 'MS-CHAP') {

到着

 if (control:Auth-Type == MS-CHAP) {

おすすめ記事