MMI (jsonrpc) feature returns 401 error after enabling RADIUS

  • 0
  • 1
  • Problem
  • Updated 2 years ago
  • Solved
Hey, I've started playing around with the jsonrpc interface. Everything works well when I set a password for 'admin'.

But when I enable RADIUS for management amd try to login with a RADIUS user, I get a 401 error which as the documentation indicates means incorrect or missing user/pw.
RADIUS service-type is set to administrative and I can login with SSH without problems; on the other hand the chalet webinterface only accepts 'admin' user and pw and no RADIUS user.

Is there anything special to be considered when RADIUS is enabled for management? Thanks!
Photo of Johannes Denninger

Johannes Denninger

  • 492 Points 250 badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of Aleixo Gomes

Aleixo Gomes, Employee

  • 334 Points 250 badge 2x thumb
Hi , 

which version of exos is used ?
Photo of Johannes Denninger

Johannes Denninger

  • 492 Points 250 badge 2x thumb
hi Aleixo! Version 21.1.1.4-patch1-2 is installed on the switch
Photo of Aleixo Gomes

Aleixo Gomes, Employee

  • 334 Points 250 badge 2x thumb
Hi ,

am not 100% sure if this was some bug in exos 21.x , could you try using 21.1.2 and test if that resolves it .

let me know the result 
Photo of Johannes Denninger

Johannes Denninger

  • 492 Points 250 badge 2x thumb
Okay, will test and let you know. Just have to wait until my download of 21.1.2 is approved.
Photo of Dave Hammers

Dave Hammers, Dir SW Engineering

  • 3,802 Points 3k badge 2x thumb
Hi,
Yes this was a known issue that is corrected in 21.1.2.

Have you seen the example script in https://github.com/extremenetworks/ExtremeScripting/blob/master/EXOS/Python/jsoncli
Photo of Dave Hammers

Dave Hammers, Dir SW Engineering

  • 3,802 Points 3k badge 2x thumb
For your investigation into jsonrpc, in 21.1.1, if you
enable radius netlogin
Should work around the issue with 21.1.1.

While the fix in 21.1.2 is recommended for a proper fix, this should let you experiment with JSONRPC without upgrading.
Photo of Johannes Denninger

Johannes Denninger

  • 492 Points 250 badge 2x thumb
Hey Dave, thanks for the suggestion . I'm working on something similar in Powershell if you like to check it out:

https://github.com/joxz/PSEXOS
Photo of Dave Hammers

Dave Hammers, Dir SW Engineering

  • 3,802 Points 3k badge 2x thumb
Looking at your powershell example, have you tried the EXOS CLI commands:
show port vlan
or
show port vid
Photo of Johannes Denninger

Johannes Denninger

  • 492 Points 250 badge 2x thumb
No I didn't and they are not recognized? Am I missing something?
Photo of Dave Hammers

Dave Hammers, Dir SW Engineering

  • 3,802 Points 3k badge 2x thumb
I apologize, these CLI commands are available in 21.1.2.

The script versions of these commands are available for pre21.1.2 EXOS here:

Script version of show port vid/vlan
https://github.com/extremenetworks/ExtremeScripting/blob/master/EXOS/Python/show_port_vid

Script version of show vid
https://github.com/extremenetworks/ExtremeScripting/blob/master/EXOS/Python/show_vid
Photo of Johannes Denninger

Johannes Denninger

  • 492 Points 250 badge 2x thumb
Oh yeah now I get it :o I did take those as examples, I just like Powershell far more than Python for those things and wanted to see what I can get done.