oxidized icon indicating copy to clipboard operation
oxidized copied to clipboard

"Enable" requires username and password

Open asummerell-debug opened this issue 2 years ago • 5 comments

Hopefully someone can help, or point me in the right direction. I have everything up and running, and it's great. However, some of our devices require a username and password for "enable", not just a password. Is this something that can be done?

I can provide much greater detail and logs if it is possible. Just didn't want to load up a bunch for something that can't be done.

Thanks!

asummerell-debug avatar Aug 14 '23 21:08 asummerell-debug

You can specify an enable password for each model in the configuration:

models:
  asa:
    vars:
      enable: YOUR-SECRET-PASSWORD

robertcheramy avatar Oct 23 '23 05:10 robertcheramy

Thanks for the reply. I have that configured for my devices that only require a password for enable, and that works. However, we have some devices that require a username and password for "enable", not just a password.

asummerell-debug avatar Oct 23 '23 12:10 asummerell-debug

Could you name which devices types need a username and a password?

robertcheramy avatar Oct 24 '23 05:10 robertcheramy

Ruckus switches running ver 9.0 firmware and above running AAA for auth.

asummerell-debug avatar Oct 24 '23 15:10 asummerell-debug

I'm having this same issue. I've never used ruby so trying to figure its syntax on the fly too.
I copied the ironware model to oxidized home directory to make local edits for now. But they are not working.

I'm not 100% sure how I tell it to send the username then password or where "enable" is defined.
When I run a tail -f on the log here is what I get

SSH@switch>enable

Login:

Here is my two attempted modifications so far. Coding the actual username into the model is not correct, but was just testing.

 else
        post_login do
          send "enable\r\n"
          username /^Login:$/
          #send "myusername\r\n"
          cmd vars(:enable)

        end

Thank you

dlehman83 avatar Dec 12 '23 12:12 dlehman83