Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Error: Web Basic Authentication configured, but no username…

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific
Author Message
tinhay



Joined: 02 Jun 2008
Posts: 1

PostPosted: Mon Jun 02, 2008 2:04 pm    Post subject: Error: Web Basic Authentication configured, but no username… Reply with quote

Hi folks,

I recently set up cacti on my linux machine (ubuntu 8.04 lts) and everything worked quite well... until i set the auth-type to "Web Basic".

Whenever I try to authenticate now, I'm being sent straight to a page with this error message:


Quote:
Error: Web Basic Authentication configured, but no username was passed from the web server. Please make sure you have authentication enabled on the web server.


rather than getting the login-popup.
mod_auth_basic is enabled for my apache installation.
Back to top
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5469
Location: Wisconsin, USA

PostPosted: Mon Jun 02, 2008 5:20 pm    Post subject: Reply with quote

You sub directory is not setup for Web Basic Authentication.

Or Cacti is not seeing what it is expecting.... Are you prompted for a username and password by your browser?

To return you Cacti installation to internal authentication, run the following query on your Cacti database.

Code:
update settings set value = '1' where name = 'auth_method';


Close and reopen your browser and attempt to login.
Back to top
ghoule



Joined: 07 Apr 2006
Posts: 6

PostPosted: Wed Jun 04, 2008 12:46 pm    Post subject: Reply with quote

I too am getting this error in 0.8.7a. I didn't have this problem in previous versions. If I add phpinfo(); to the top of index.php in cacti's root, I see that the web server is indeed sending the value of the REMOTE_USER variable to php.

Has anyone found a fix for this? I really prefer to use web basic authentication.

Thanks,
Gary
Back to top
browniebraun
Cacti User


Joined: 13 Jun 2006
Posts: 341
Location: Cologne, Germany

PostPosted: Wed Jun 04, 2008 1:03 pm    Post subject: Reply with quote

ghoule wrote:
I too am getting this error in 0.8.7a. I didn't have this problem in previous versions. If I add phpinfo(); to the top of index.php in cacti's root, I see that the web server is indeed sending the value of the REMOTE_USER variable to php.

Has anyone found a fix for this? I really prefer to use web basic authentication.

Thanks,
Gary


Gary,
edit the auth_login.php file and replace "$_SERVER["PHP_AUTH_USER"]" by "$_SERVER["REMOTE_USER"] on line 36 and 37.
Then it works.

Best regards
-Andreas-
Back to top
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5469
Location: Wisconsin, USA

PostPosted: Wed Jun 04, 2008 1:05 pm    Post subject: Reply with quote

I think that will be the fix that will be put in 0.8.7c
Back to top
ghoule



Joined: 07 Apr 2006
Posts: 6

PostPosted: Wed Jun 04, 2008 1:54 pm    Post subject: Reply with quote

Thanks all...that's exactly what I did after finding bug 1211. SSO is working great for me now.

A note to anyone trying this. If you were using internal authentication or LDAP and had accounts automatically created before you switched to web basic, you may want to delete the accounts or change their authentication method to web basic.

Thanks again!
Back to top
Evgen787



Joined: 31 Oct 2008
Posts: 18

PostPosted: Mon Nov 17, 2008 5:29 am    Post subject: Reply with quote

I have this problem

get this message : Web Basic Authentication configured...

Ok, i`m run
Code:
update settings set value = '1' where name = 'auth_method';


But unable to login as admin...I change password and nothing(
Login guest is ok.
Back to top
Evgen787



Joined: 31 Oct 2008
Posts: 18

PostPosted: Tue Nov 18, 2008 5:41 am    Post subject: Reply with quote

How to solve this
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9736
Location: MI, USA

PostPosted: Tue Nov 18, 2008 7:16 am    Post subject: Reply with quote

Yea, the recommendation was not a good one.

Code:
update settings set value = '0' where name = 'auth_method';


Should fix it.

TheWitness
Back to top
Evgen787



Joined: 31 Oct 2008
Posts: 18

PostPosted: Tue Nov 18, 2008 9:38 pm    Post subject: Reply with quote

Thanks!)

Best Regards
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group