Ad Widget

Collapse

Cannot Authentication LDAP to Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bagas_w
    Junior Member
    • Aug 2019
    • 2

    #1

    Cannot Authentication LDAP to Zabbix

    Hello!

    I am trying to setup LDAP front end auth, but I am not having any luck.

    When I define the LDAP server, Bind DN, Base DN, etc and press "Test" or "Save" the page simply turns cannot bind to LDAP Server.

    Anyone having the same effect?

    Thanks in advance,

  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    In Base DN you must pass map to list of users.
    In my case it is "cn=users,cn=accounts,dc=example,dc=domain,dc= com"
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    • Ashjoker
      Junior Member
      • Sep 2019
      • 2

      #3
      Hi all, I am trying to enable LDAP authentication in Zabbix server and i successfully tested it, but when i try to login the dashboard not allow ldap or admin authentication.

      Comment

      • kloczek
        Senior Member
        • Jun 2006
        • 1771

        #4
        I would reccoment to leave Admin account, change password and put that password in some vault (elecronic or physical).
        That user just in case should be always authenticated against zabbix native users database.

        If you want to restore original auth because still something is not working with LDAP auth you need to change this straight in database by execute query "update config set authentication_type = 0;" on your zabbix database.
        http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
        https://kloczek.wordpress.com/
        zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
        My zabbix templates https://github.com/kloczek/zabbix-templates

        Comment

        • Ashjoker
          Junior Member
          • Sep 2019
          • 2

          #5
          Even after changing update db with the query "config set authentication_type = 0;" i can't able to login with LDAP account

          Comment

          • kloczek
            Senior Member
            • Jun 2006
            • 1771

            #6
            Originally posted by Ashjoker
            Even after changing update db with the query "config set authentication_type = 0;" i can't able to login with LDAP account
            No that update query is for disable LDAP authentication as default method.
            During experiments with adding LDAP auth settings is quite easy to loose access to zabbix frontend.
            That update query provides restore default auth to use zabbix local list of users.
            http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
            https://kloczek.wordpress.com/
            zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
            My zabbix templates https://github.com/kloczek/zabbix-templates

            Comment

            Working...