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    


A simple hack to cacti, to use radius for authentication

 
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti
Author Message
polarit



Joined: 21 Jan 2005
Posts: 7

PostPosted: Mon Dec 10, 2007 3:58 am    Post subject: A simple hack to cacti, to use radius for authentication Reply with quote

Using radius for authentication.
This simple hack works for cisco acs, debian etch and cacti Version 0.8.6i (as installed by apt)

Install php-radius: apt-get install php-radius

Create and edit /etc/php-radius/server.conf
# php-radius config file, for use with cisco acs
# tacacs server
server 10.10.10.10
# the cisco acs server uses 1812 instead of well-known 1645
port 1812
suffix ""
# the shared key entered in tacacs
secret secretkey

Edit /usr/share/php-radius/radius_authentication.inc.php
Around line 46 from :

$s=chop($s);
if ($s[0]=="#") continue;
if (strlen($s)==0) continue;
to :
$s=chop($s);
if (strlen($s)==0) continue;
if ($s[0]=="#") continue;

replace original /usr/share/cacti/site/auth_login.php with attached auth_login.php
Back to top
polarit



Joined: 21 Jan 2005
Posts: 7

PostPosted: Mon Dec 10, 2007 4:00 am    Post subject: Reply with quote

Oh darn, how does one attach files ???
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2132
Location: United Kingdom

PostPosted: Mon Dec 10, 2007 4:46 am    Post subject: Reply with quote

You should also be able to do this using the external auth option in 0.8.7 and mod_auth_xradius (and no code changes) too...

not actually tried that, but m_a_xr was a drop-in replacement for mod_auth for our intranet.
Back to top
rony
Developer/Forum Admin


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

PostPosted: Mon Dec 10, 2007 9:55 am    Post subject: Reply with quote

Howie wrote:
You should also be able to do this using the external auth option in 0.8.7 and mod_auth_xradius (and no code changes) too...

not actually tried that, but m_a_xr was a drop-in replacement for mod_auth for our intranet.


That would be the suggested method.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group