Hook auth function for logging in

XMLWordPrintable

    • Type: Incident report
    • Resolution: Won't fix
    • Priority: Minor
    • None
    • Affects Version/s: 1.6
    • Component/s: 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)
        }

            Assignee:
            Alexei Vladishev
            Reporter:
            Lukas Macura
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: