PDA

View Full Version : auth control from intranet to zabbix


ghislain
02-06-2005, 10:16
Hi,

I would like to know if some of you as been able to link the authentification part of zabbix to external system like an intranet (not ldap ).

I wanted to add the zabbix tools to the intranet so customer log only once but i wonder if this is possible in zabbix without too much troubles ?

best regards,
Ghislain.

araw
04-06-2005, 17:57
You will, at the very least, need to modify index.php to pull user details from somewhere else. An alternate SQL query to a seperate database for instance.

I'm not sure what, if any, modifications may be necessary to the rest of the session tracking code.

----
if(isset($register)&&($register=="Enter"))
{
$password=md5($password);
$sql="select u.userid,u.alias,u.name,u.surname,u.url from users u where u.alias='$name' and u.passwd='$password'";
$result=DBselect($sql);
if(DBnum_rows($result)==1)
{
$USER_DETAILS["userid"]=DBget_field($result,0,0);
$USER_DETAILS["alias"]=DBget_field($result,0,1);
$USER_DETAILS["name"]=DBget_field($result,0,2);
$USER_DETAILS["surname"]=DBget_field($result,0,3);
$USER_DETAILS["url"]=DBget_field($result,0,4);
$sessionid=md5(time().$password.$name.rand(0,10000 000));
setcookie("sessionid",$sessionid,time()+3600);
----

ghislain
19-06-2005, 17:50
ok i will give it a try then :)

thanks for the input.

Ghislain.