TheTaylorLee / AdminToolbox

Repository for the AdminToolbox PowerShell Modules
MIT License
186 stars 22 forks source link

Admintoolbox.Fortiwizard - Write-SSLVPNConfig - Bad parameter for address object #74

Closed TheTaylorLee closed 2 years ago

TheTaylorLee commented 2 years ago

config firewall address edit "SSLVPN_Internal_0.0.0.0/0" set visibility disable set subnet 0.0.0.0 0.0.0.0 next end

The set visiblity parameter needs to be removed from the output of this function.

TheTaylorLee commented 2 years ago

Ldap server distinguished name is space delimited instead of comma.

TheTaylorLee commented 2 years ago

edit tunnel-access set tunnel-mode enable set ip-pools "SSLVPN_TUNNEL_0.0.0.0/0" set ipv6-tunnel-mode disable config split-dns edit 1 set domains "domain.local,domain.com" set dns-server 1.1.1.1 next end next

need to indent edit 1 and set domains should be wrapped in quotes and comma delimited. Currently it space delimits

TheTaylorLee commented 2 years ago

Ensure there are no spaces in comma strings or delimited entries. It causes issues for items such as the ldap server distinguished name.

TheTaylorLee commented 2 years ago
TheTaylorLee commented 2 years ago

Seems previous issues were related to an older version. Most problems are not currently present.

TheTaylorLee commented 2 years ago

merged