|
|
| Author |
Message |
tinhay
Joined: 02 Jun 2008 Posts: 1
|
Posted: Mon Jun 02, 2008 2:04 pm Post subject: Error: Web Basic Authentication configured, but no username… |
|
|
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
|
Posted: Mon Jun 02, 2008 5:20 pm Post subject: |
|
|
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
|
Posted: Wed Jun 04, 2008 12:46 pm Post subject: |
|
|
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
|
Posted: Wed Jun 04, 2008 1:03 pm Post subject: |
|
|
| 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
|
Posted: Wed Jun 04, 2008 1:05 pm Post subject: |
|
|
| 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
|
Posted: Wed Jun 04, 2008 1:54 pm Post subject: |
|
|
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
|
Posted: Mon Nov 17, 2008 5:29 am Post subject: |
|
|
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
|
Posted: Tue Nov 18, 2008 5:41 am Post subject: |
|
|
How to solve this  |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9736 Location: MI, USA
|
Posted: Tue Nov 18, 2008 7:16 am Post subject: |
|
|
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
|
Posted: Tue Nov 18, 2008 9:38 pm Post subject: |
|
|
Thanks!)
Best Regards  |
|
| Back to top |
|
 |
|