summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-07-28 22:46:58 +0300
committerGitHub <noreply@github.com>2016-07-28 22:46:58 +0300
commit3768da1c639e4ca64084e2a3e828622b7af8a9c8 (patch)
tree30d2b60884eea4ab421f210c3ff1c6c69adcf932 /lib
parent463db1f76d4530b2875635937452afa6dd1aa56a (diff)
parenta4f16867d3c80b93bdf9538d5ecc3b6b713765cb (diff)
Merge pull request #515 from fspijkerman/ASA_secret_filter_TACACS
Cisco ASA Secret filter for TACACS+ key
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/model/asa.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/oxidized/model/asa.rb b/lib/oxidized/model/asa.rb
index 67dfe16..a41348e 100644
--- a/lib/oxidized/model/asa.rb
+++ b/lib/oxidized/model/asa.rb
@@ -15,6 +15,7 @@ class ASA < Oxidized::Model
cfg.gsub! /username (\S+) password (\S+) (.*)/, 'username \1 password <secret hidden> \3'
cfg.gsub! /ikev2 pre-shared-key (\S+)/, 'ikev2 pre-shared-key <secret hidden>'
cfg.gsub! /ikev2 (remote|local)-authentication pre-shared-key (\S+)/, 'ikev2 \1-authentication pre-shared-key <secret hidden>'
+ cfg.gsub! /^(aaa-server TACACS\+ \(\S+\) host.*\n\skey) \S+$/m, '\1 <secret hidden>'
cfg
end