I am running my install behind a password protected https page. I like the fact that you can give users rights and they can save settings but I don't want them to have to login 2 times or keep track of yet another password. It seemed easy enough to hack in a checkbox and tweak the authentication so I did it.
I'm using SERVER["REMOTE_USER"] to nab the username and if that user doesn't exist then they default to guest. I'm using almost the same hack at my other job (using mod_bluestem and nabbing the BLUESTEM_ID ENVAR) and haven't heard any complaints. It should (in theory) work with most any auth system that sets the ENV properly though I haven't tested this on a windows platform with IIS
I'm not much of a PHP person but it seems to work ok. Have a look at the patch and see if its to your liking. I'd really like to see this or something very similar make it into a production version.
Thanks
~p
Alternate authentication method
Moderators: Developers, Moderators
Alternate authentication method
- Attachments
-
- auth.patch
- (3.58 KiB) Downloaded 462 times
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Web Basis, that's what "SERVER["REMOTE_USER"]" is known as, is part of the authenication system in the next release of cacti, version 0.9.0.
[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]
[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]
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Or there is no authenication from the web server occuring. That is usually the cause of that field not be available.
[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]
[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]
Who is online
Users browsing this forum: No registered users and 1 guest