Ad Widget

Collapse

Ldap problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alfiere
    Member
    • May 2008
    • 51

    #1

    Ldap problem

    Hi all,

    I already read all the other threads related with LDAP without success.

    I'm using the last 1.6 snapshot (October, 27th)

    Zabbix is unable to connect to my up&running ldap server.

    The error I have back is:
    ERROR: LDAP Login was not successful

    from the same zabbix server I can correctly query my ldap server through ldapsearch tool.

    Nor zabbix_server.log (DEBUG 4) neither slapd.conf help me.
    I checked apache log as well (somebody suggest to have a look to the php5-ldap error)
    Not a single line of log is showed.


    Cheers,
    Alfredo
  • Aly
    ZABBIX developer
    • May 2007
    • 1126

    #2
    Originally posted by alfiere
    Hi all,
    The error I have back is:
    ERROR: LDAP Login was not successful
    Screenshot?!
    Zabbix | ex GUI developer

    Comment

    • alfiere
      Member
      • May 2008
      • 51

      #3
      Attached u can find the screenshot requested.


      Cheers,
      Alfredo
      Attached Files

      Comment

      • alfiere
        Member
        • May 2008
        • 51

        #4
        Any tips?

        Cheers,
        Alf

        Comment

        • Aly
          ZABBIX developer
          • May 2007
          • 1126

          #5
          Open error details. You have incorrect url to ldap!
          Zabbix | ex GUI developer

          Comment

          • cbidwell
            Senior Member
            • Aug 2006
            • 127

            #6
            Hi! I have a similar situation, however, for me, our ldap servers require ldaps to authenticate which means we need to use a certificate file.

            Is there a way to implement secure ldap authentication?

            Comment

            • alfiere
              Member
              • May 2008
              • 51

              #7
              "Open error details. You have incorrect url to ldap!:

              I don't understand your suggestion.
              ldap url is ok, I tried with just the IP too. Without success of course...

              "Open error detail" what do u mean? Is it a file?
              As I told zabbix_server.log (DEBUG 4) doesn't show a single line.


              Thanks a lot
              Cheers,
              Alf

              Comment

              • Aly
                ZABBIX developer
                • May 2007
                • 1126

                #8
                See the screen shot.
                Attached Files
                Zabbix | ex GUI developer

                Comment

                • KitWalker
                  Junior Member
                  • Jan 2006
                  • 17

                  #9
                  Ldaps

                  Originally posted by cbidwell
                  Hi! I have a similar situation, however, for me, our ldap servers require ldaps to authenticate which means we need to use a certificate file.

                  Is there a way to implement secure ldap authentication?
                  Yes, there is. You'll have to compile openldap with opensll, though.

                  Considering you already have LDAP working correctly in Zabbix, here are simple steps to have LDAPS working (I'm assuming you're using Active Directory):

                  Extract your Root CA certificate from Active Directory. You can do this in Internet Explorer. Go to Tools > Internet Options > Content > Certificates > Trusted Root Certification Authorities. Find your company's Root certificate. Export it as Base-64 encoded X.509. Select a filename (I for instance use company.pem).

                  Upload the certificate to your Linux server. Place the extracted CAcert into the certs folder for openssl. I think the correct folder is /usr/local/ssl/certs or /usr/share/ssl/certs/. I'm using RHEL4, so, you may have to find this place for your distro.

                  Now, setup the hashed symlinks with the command:
                  /usr/bin/c_rehash

                  Add the following lines to your ldap.conf file:
                  Code:
                  ssl yes
                  pam_password md5
                  	
                  TLS_REQCERT never
                  
                  TLS_CACERT /usr/ssl/certs/[I]company[/I].pem
                  TLS_CACERTDIR /usr/ssl/certs
                  I think that's pretty much it.

                  Comment

                  • cbidwell
                    Senior Member
                    • Aug 2006
                    • 127

                    #10
                    Thank you so much. I'm a major greenhorn when it comes to doing anything with LDAP.

                    Does this look accurate to you? Assuming that the cert and all the backend configuration is correct, is this the proper settings in the GUI?
                    Attached Files

                    Comment

                    • KitWalker
                      Junior Member
                      • Jan 2006
                      • 17

                      #11
                      The LDAP host and port are correct!

                      Comment

                      • cbidwell
                        Senior Member
                        • Aug 2006
                        • 127

                        #12
                        Okay great. Thanks. Another dumb question: Does apache have to be compiled with ldap as well or just php and zabbix? I keep getting 500 Server Errors when trying to test and I'm trying to determine what's causing it.

                        Comment

                        • alfiere
                          Member
                          • May 2008
                          • 51

                          #13
                          Ok, after a quite long troubleshooting I'm able now to login through my openLDAP server.

                          Anyway, If I well understood, every single user must exist in Zabbix as well.
                          I use my LDAP server to match the user and to retrieve the relative password.

                          Is it right?

                          If I say it right, can u suggest me a simple way to import a list of 50 users?
                          It's very bored to use the frontend for a such number of users.

                          Thanks,
                          cheers,
                          Alfredo

                          Comment

                          • alfiere
                            Member
                            • May 2008
                            • 51

                            #14
                            Up!



                            Alf

                            Comment

                            • Aly
                              ZABBIX developer
                              • May 2007
                              • 1126

                              #15
                              Direct insert to DB
                              Zabbix | ex GUI developer

                              Comment

                              Working...