Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-688

Hook auth function for logging in

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Minor Minor
    • None
    • 1.6
    • Frontend (F)
    • None

      Please it would be great to have auth_hook function during login. This function, if defined in conf/zabbix.conf.php, would mangle username and assign groups. We could use it in conjunction with ldap auth. But can be used for any kind of (even external HTTP ) auth to do some username and groups mapping. (like shiboleth)

      Example:

      /**

      • $user - username given by user
      • $pass - pass given by user
      • return Array ("username" => "student", "groups" => Array ("Admins","Local Admins") );
        */
        function auth_hook($user,$pass) {
        ... connect to ldap using user and pass
        ... optionaly change username (all students will have one zabbix account "student")
        ... optionaly assign groups (from ldap groups)
        }

            alexei Alexei Vladishev
            lukas.macura Lukas Macura
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: