Logged in as ?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
hermathr
Posts: 4
Joined: Tue Nov 26, 2019 9:14 am

Logged in as ?

Post by hermathr »

I am using Shibboleth and SSL when authenticating to nagios but I am always seeing a "Logged in as ?" once I authenticate.

I created a dump of my environment variables and I notice there's no http_remote_user in this failing instance but in another, working instance this variable is in the dump with the correct username.

I have a http_kduser environment variable that's set to my username.

I have the following as part of my cgiauth.c file:
temp_ptr=getenv("HTTP_REMOTE_USER");
if(temp_ptr==NULL){ temp_ptr=getenv("HTTP_KDUSER"); }

I'm attaching a copy of my nagios.conf found in /etc/httpd/conf.d.

Any help would be greatly appreciated.
Attachments
nagios.conf
nagios.conf
(1.64 KiB) Downloaded 151 times
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Logged in as ?

Post by cdienger »

I've not integrated Nagios with Shibboleth before, so correct me if my understanding is incorrect.

Shibboleth is responsible for authenticating the user and then directs the user's browser to send a HTTP header(HTTP_REMOTE_USER) with the username? The Nagios system then sets the HTTP_REMOTE_USER environment variable?

What steps were taken exactly to integrate the two?

Can you verify with the browser's dev tools that the requests to the Nagios system have the proper header(s)?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
hermathr
Posts: 4
Joined: Tue Nov 26, 2019 9:14 am

Re: Logged in as ?

Post by hermathr »

Hi,

Thanks for the response.

I've dumped out a working and non-working cgi env script to dump out the varibales.

I've attached both of those.

I've tried everything I can think of, cgiauth.c , messed with shibboleth settings.

Here is a working and non-working dump.
hermathr
Posts: 4
Joined: Tue Nov 26, 2019 9:14 am

Re: Logged in as ?

Post by hermathr »

And yes, your understanding is correct.
Last edited by hermathr on Mon Dec 02, 2019 11:11 am, edited 1 time in total.
hermathr
Posts: 4
Joined: Tue Nov 26, 2019 9:14 am

Re: Logged in as ?

Post by hermathr »

Also please note in the "working" one I see "HTTP_REMOTE_USER" which is missing from the non-working.

I do see HTTP_KDUSER in both which I was assuming would be passed.

Sorry if this need clarification.

Please let me know and thanks again sincerely for your help.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Logged in as ?

Post by ssax »

Please attach the working vs non-working dump, we do not see them attached.
Locked