Ad Widget

Collapse

auth control from intranet to zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ghislain
    Senior Member
    • Jun 2005
    • 160

    #1

    auth control from intranet to zabbix

    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.
    Regards,
    Ghislain.
  • araw
    Member
    • May 2005
    • 31

    #2
    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);
    ----

    Comment

    • ghislain
      Senior Member
      • Jun 2005
      • 160

      #3
      ok i will give it a try then

      thanks for the input.

      Ghislain.
      Regards,
      Ghislain.

      Comment

      Working...