nscp icon indicating copy to clipboard operation
nscp copied to clipboard

Web Server in 0.5.2.41

Open ArnoMLT opened this issue 6 years ago • 10 comments

Issue and Steps to Reproduce

Expected Behavior

Use the web interface !

Actual Behavior

Since version 0.5.2.41 (and also all versions 0.5.3.x) I can't log in web server. When I type in the good password, the navigator stays on the login page. No event logged. I checked with 'nscp web -- password --display' it's ok. When I give a wrong password, I got "403 Invalid password" , and if I change the "allowed host" I got " 403 Your not allowed"

Details

  • NSClient++ version: 0.5.2.41 and 0.5.3.x
  • OS and Version: Windows 10, Windows 2012

Additional Details

ArnoMLT avatar Jun 15 '18 14:06 ArnoMLT

I can confirm this behaviour, neither it works on localhost on Windows with Edge and Chrome (latest) nor on macOS with Safari, Chrome, Firefox (latest).

Seems the JS handler thinks that it is logged in, but the server does not.

dnsmichi avatar Jun 20 '18 09:06 dnsmichi

I'm experiencing the same thing with 5.3.4 and 5.2.41. 5.2.39 works just fine for me but I wanted 5.2.41 since it fixes #550. Has there not been a fix for this yet? This was originally reported in June.

I did notice if I install 5.2.41 and drop in the WEBServer.dll from 5.2.39 I can log in but I don't know what other issues that could cause.

bmccorkle avatar Dec 04 '18 18:12 bmccorkle

#550 is also fixed in 5.2.41 @bmccorkle if that's an option for you.

I'm running that on a few nodes and don't have this problem.

mintsoft avatar Dec 05 '18 22:12 mintsoft

For the record, our nsclient only has these in with regards to IP's or password:

[/settings/default]

; ALLOWED HOSTS - A comaseparated list of allowed hosts. You can use netmasks (/ syntax) or * to create ranges.
allowed hosts = 192.168.0.16

[/settings/WEB/server]
password = ourpassword

mintsoft avatar Dec 05 '18 23:12 mintsoft

Any update on this? I still can't login to the web interface

bmccorkle avatar Jan 25 '19 15:01 bmccorkle

Just re-confirmed this with a fresh install of 5.2.41; it'll get fixed when @mickem picks up development again.

mintsoft avatar Jan 27 '19 18:01 mintsoft

I noticed there hadn't been any new releases in a while but I didn't see any news about @mickem stopping development. Is this just a temporary pause? I'm trying to roll out a new Icinga installation and planned on nsclient doing most of the work for windows hosts.

bmccorkle avatar Jan 28 '19 16:01 bmccorkle

I have no idea specifically; however it's not too unusual for the project to have extended periods where no development occurs

mintsoft avatar Jan 29 '19 22:01 mintsoft

I just wanted to assure everyone I am not dead :)

There are two reasons for no updates in a bit (well I moved this fall which meant I had less time to tinker as well) anyways:

  1. angular 2 is terrible (might have to switch that away) which made the new web ui not work very well...
  2. currently upgrading dependencies like protobuf and such which have changed since the ancient version I was using before...

mickem avatar Jan 30 '19 06:01 mickem

Thanks for the update Michael. I actually switched over to NRPEv3 with certificates and it's been working very well, so looks like I won't be trying to use the WebUI anytime soon.

bmccorkle avatar Mar 15 '19 17:03 bmccorkle