diff --git a/PowerFGT/Public/cmdb/user/radius.ps1 b/PowerFGT/Public/cmdb/user/radius.ps1 index 6e847223e..de4c0eab9 100644 --- a/PowerFGT/Public/cmdb/user/radius.ps1 +++ b/PowerFGT/Public/cmdb/user/radius.ps1 @@ -173,8 +173,8 @@ function Add-FGTUserRADIUS { if ( $PsBoundParameters.ContainsKey('nas_id') ) { #before 7.x.x, there is no nas-id parameter - if ($connection.version -lt "7.0.0") { - Write-Warning "-nas-id parameter is not available before FortiOS 7.0.x" + if ($connection.version -lt "7.2.0") { + Write-Warning "-nas-id parameter is not available before FortiOS 7.2.x" } else { $radius | add-member -name "nas-id-type" -membertype NoteProperty -Value "custom" diff --git a/Tests/integration/UserRadius.Tests.ps1 b/Tests/integration/UserRadius.Tests.ps1 index 41387388b..b1b6d48b3 100644 --- a/Tests/integration/UserRadius.Tests.ps1 +++ b/Tests/integration/UserRadius.Tests.ps1 @@ -130,7 +130,7 @@ Describe "Add User RADIUS" { $userradius."nas-ip" | Should -Be "192.0.2.1" } - It "Add User RADIUS Server $pester_userradius with NAS ID" -skip:($fgt_version -lt "7.0.0") { + It "Add User RADIUS Server $pester_userradius with NAS ID" -skip:($fgt_version -lt "7.2.0") { Add-FGTUserRADIUS -Name $pester_userradius -server $pester_userradiusserver1 -secret $pester_userradius_secret -nas_id PowerFGT $userradius = Get-FGTUserRADIUS -name $pester_userradius $userradius.name | Should -Be $pester_userradius @@ -266,7 +266,7 @@ Describe "Configure User RADIUS" { $userradius."nas-ip" | Should -Be "192.2.0.2" } - It "Change NAS ID" -skip:($fgt_version -lt "7.0.0") { + It "Change NAS ID" -skip:($fgt_version -lt "7.2.0") { Get-FGTUserRADIUS -name $pester_userradius | Set-FGTuserRADIUS -nas_id "PowerFGT" $userradius = Get-FGTUserRADIUS -name $pester_userradius $userradius.name | Should -Be $pester_userradius