Skip to content

Commit

Permalink
Merge pull request #3048 from sharteeya/fix/ciscosmb_ignore_chpwdhint
Browse files Browse the repository at this point in the history
Fix/Ignore change password hint in CiscoSMB
  • Loading branch information
robertcheramy authored Feb 1, 2024
2 parents e8aab0a + bde4846 commit ce3725d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
- edgecos: improve system temperature removal (@freddy36)
- zynos: Rewrite the script to properly collect config via ssh/telnet. Backup with FTP is not working atm, feel free to open an issue if needed. (@sharteeya)
- pfsense: exclude autogenerated firewall rule timestamps to reduce change churn from use of stuff like PFBlockerNG #2985 (@anthonysomerset)
- ciscosmb: ignore "Please change the password" hint when doing backup. (@sharteeya)

## Fixed
- fixed empty lines for ZyXEL GS1900 switches (@jluebbe)
Expand Down
7 changes: 6 additions & 1 deletion lib/oxidized/model/ciscosmb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ class CiscoSMB < Oxidized::Model
# http://www.cisco.com/c/en/us/support/switches/small-business-300-series-managed-switches/products-release-notes-list.html

prompt /^\r?([\w.@()-]+[#>]\s?)$/
comment '! '
comment '! '

expect '^.*Your password has exceeded the maximum lifetime.*$' do
send 'N'
""
end

cmd :all do |cfg|
lines = cfg.each_line.to_a[1..-2]
Expand Down

0 comments on commit ce3725d

Please sign in to comment.