diff options
author | benjaminAco <39441362+benjaminAco@users.noreply.github.com> | 2018-05-19 23:54:38 +0200 |
---|---|---|
committer | Wild Kat <wk@users.noreply.github.com> | 2018-05-19 23:54:38 +0200 |
commit | aa6200d0fa144fe1510867e8dfdee8cd31f9d1b0 (patch) | |
tree | f92654fc99ef1e5d0b4c24008688dc09e3f6e7b8 /lib/oxidized/model | |
parent | 1f5db8a42452d8d75d4477a3a670c78a414e0ae4 (diff) |
Update fortios.rb (#1345)
Remove SNMP v3 Auth & Priv Password.
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r-- | lib/oxidized/model/fortios.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/model/fortios.rb b/lib/oxidized/model/fortios.rb index bbbab89..2ae6db3 100644 --- a/lib/oxidized/model/fortios.rb +++ b/lib/oxidized/model/fortios.rb @@ -14,7 +14,7 @@ class FortiOS < Oxidized::Model end cmd :secret do |cfg| - cfg.gsub! /(set (?:passwd|password|psksecret|secret|key|group-password|secondary-secret|tertiary-secret|auth-password-l1|auth-password-l2|rsso|history0|history1|inter-controller-key ENC|passphrase ENC|login-passwd ENC)).*/, '\\1 <configuration removed>' + cfg.gsub! /(set (?:passwd|password|psksecret|secret|key|group-password|secondary-secret|tertiary-secret|auth-password-l1|auth-password-l2|rsso|history0|history1|inter-controller-key ENC|passphrase ENC|login-passwd ENC|auth-pwd ENC|priv-pwd ENC)).*/, '\\1 <configuration removed>' cfg.gsub! /(set private-key).*-+END ENCRYPTED PRIVATE KEY-*"$/m, '\\1 <configuration removed>' cfg.gsub! /(set ca ).*-+END CERTIFICATE-*"$/m, '\\1 <configuration removed>' cfg.gsub! /(set csr ).*-+END CERTIFICATE REQUEST-*"$/m, '\\1 <configuration removed>' |