when making a typo in config.php for example type "oRangeFix" instead of "oRangeSix" the vpn-maint-verify-config (which is essentially a php -l) doesn't give an error. Would be welcome if config typos can be detected.
I'd like to do two things:
- Make sure this particular issue is visible on the "Info" page
- Implement #76
That should take care of this.
the problem is that if you misspell
oRangeSix
it just interprets this as not having OpenVPN enabled for this profile. Perhaps it is better to check for unsupported configuration values and show them on the "Info" page.
François Kooman referenced this ticket in commit 484a202.
Implemented now the above idea for ProfileConfig, so it is not done for everything (yet).
François Kooman referenced this ticket in commit 9d8fdf7.
There's a bunch of other config classes that we probably should implement this for:
- ApiConfig.php
- DbConfig.php
- LdapAuthConfig.php
- LogConfig.php
- MellonAuthConfig.php
- MemcacheSessionConfig.php
- OidcAuthConfig.php
- PhpSamlSpAuthConfig.php
- RadiusAuthConfig.php
- ShibAuthConfig.php
- WireGuardConfig.php