Is it possible to use HTTP Basic Auth instead of Cacti login

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Version 0.8.7, which is currently in development, does have extensive LDAP and Web Basic (.htaccess) support. We don't have a release date yet.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
andrew2
Cacti User
Posts: 64
Joined: Mon Jul 26, 2004 2:50 pm
Location: Cincinnati, OH
Contact:

Post by andrew2 »

Will the basic auth support work with the radius module for apache? I'm in the process of moving to centralized authentication for as much as I can and am looking at RADIUS to do it.

Andrew
monachus
Posts: 42
Joined: Mon Sep 06, 2004 1:27 am
Location: New York, NY
Contact:

Post by monachus »

andrew2 wrote:Will the basic auth support work with the radius module for apache? I'm in the process of moving to centralized authentication for as much as I can and am looking at RADIUS to do it.
I can't speak for the developers, but I don't think that Cacti cares what auth module you're using inside of Apache, whether it's mysql, radius, ldap, or internal. As long as it auths and sets REMOTE_USER, Cacti should pick it up just fine.
Adrian Goins - President / CEO
Arces Network, LLC
http://www.arces.net
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

You are correct, all the auth modules for apache will have the REMOTE_USER set. So, when it comes to Cacti and web basic, it doesn't care how the web server authenicated the users, it just cares that a user is authenicated.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
bamapookie
Posts: 2
Joined: Thu May 31, 2007 11:11 am

Post by bamapookie »

Is there any chance that this will ever be implemented? The bug report indicating that web basic authentication would be added to version 0.8.7 is over 2 years old.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Lately, a user contribution was published to achieve this. I did not try on my own. Please search using http://www.google.com/coop/cse?cx=00157 ... 5dbrufpnu
Reinhard
bamapookie
Posts: 2
Joined: Thu May 31, 2007 11:11 am

Post by bamapookie »

Thanks. I found the patch for 0.8.6j at http://forums.cacti.net/post-101231.html.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

I will make an effort to port Web Basic into 0.8.6 branch. It is long over due.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Fine! I really appreciate this. It will enable us to integrate cacti into our "Simple Signon" infrastructure. Managers will LOVE it.
Reinhard

Oh, just forgot: Myself, I'm a manager :lol:
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Ok, ok, I will commit to having this in 0.8.6k, and I will entertain the idea of a patch for 0.8.6j and 0.8.6i.

:D
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
liamr
Posts: 8
Joined: Thu Oct 25, 2007 9:29 am

$_SERVER['REMOTE_USER'] in 0.8.7

Post by liamr »

I just installed 0.8.7, and while "Web Basic Authentication" does check for the basic auth headers set by PHP ( $_SERVER[ 'PHP_AUTH_USER'] ), it doesn't check for $_SERVER['REMOTE_USER'].

Could it check for both?
Attachments
remote_user.patch
add check for $_SERVER['REMOTE_USER'] to auth_login.php
(438 Bytes) Downloaded 285 times
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Explain to me why you would want to check both?

I'm open to it, I just need to understand.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Andareed
Posts: 2
Joined: Wed Nov 07, 2007 8:30 pm

Post by Andareed »

I run php via mod_fcgid and PHP_AUTH_USER does not get set but REMOTE_USER does get set, so this would be the reason to check both.
kormoc
Posts: 3
Joined: Fri Nov 30, 2007 1:36 am

Post by kormoc »

Apache with auth type of digest also uses REMOTE_USER and PHP_AUTH_DIGEST rather then PHP_AUTH_USER
thenoob
Posts: 5
Joined: Sat Feb 16, 2008 8:37 am

Post by thenoob »

Hello,
In cacti 0.8.7 changelog, we have this feature:
feature: Add Web Basic authentication
But I don't find how to use it in Settings menu ?
Can you help me ?
Best Regards
TheNoob
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests