Menu

Error: 'Can't contact LDAP server'.

2022-02-16
2024-03-06
  • Afie Yudha Triadi

    2022-02-14 23:08:50 | Info | | ldap_set_option('17', '3') returned true | IssueLog |||
    2022-02-14 23:08:50 | Info | | ldap_set_option('8', '0') returned true | IssueLog |||
    2022-02-14 23:08:50 | Error | | ldap_authentication: cannot bind to the LDAP server '10.210.20.100' (port: 389), user='administratorcis', pwd='****'. Error: 'Can't contact LDAP server'. Check the configuration file config-itop.php. | IssueLog |||

    Why always get error like this? i've been configured as well

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2022-02-16

    From the iTop web server: can you connect to 10.210.20.100 - port 389? (mind that this is deprecated, modern implementations should use LDAPs which is typically on port 636)

     
    • Afie Yudha Triadi

      yes i can ping and telnet server LDAP and on my local with xampp i can login with same ldap server.
      i don't know why on my staging server can't login.

       
      • Jeffrey Bostoen

        Jeffrey Bostoen - 2022-02-18

        Can you share the relevant config? Definitely censor sensitive info.

         
        • Afie Yudha Triadi

          'authent-ldap' => array (
              'host' => '10.210.xx.xxx',
              'port' => 389,
              'default_user' => 'uid=admin,ou=people,dc=xxxxx,dc=co,dc=id',
              'default_pwd' => 'xxxxx',
              'base_dn' => 'ou=people,dc=xxxxx,dc=co,dc=id',
              'user_query' => '(&(uid=%1$s))',
              'options' => array (
                17 => 3,
                8 => 0,
              ),
              'start_tls' => false,
              'debug' => true,
              'servers' => array (
                'MySecond-LDAP-Server' => 
                array (
                  'host' => '10.210.xx.xxx',
                  'port' => 389,
                  'default_user' => 'uid=admin,ou=people,dc=xxxxx,dc=co,dc=id',
                  'default_pwd' => 'xxxxx',
                  'base_dn' => 'ou=people,dc=xxxxx,dc=co,dc=id',
                  'user_query' => '(&(uid=%1$s))',
                  'options' => 
                  array (
                    17 => 3,
                    8 => 0,
                  ),
                  'debug' => true,
                ),
              ),
          ),
          

          This is my config on my itop local and staging server

           

          Last edit: Afie Yudha Triadi 2022-02-22
  • Afie Yudha Triadi

     

    Last edit: Afie Yudha Triadi 2022-02-18
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2022-02-25

    The message (can not contact LDAP server) would be a bit misleading if it's a credentials issue; but have you tried using 'default_user' => 'username' or 'domain\username'?

     
    • Afie Yudha Triadi

      yes, i've tried using default user => 'admin' and same error.
      when i tried with same config before like above on my local is works

       
  • Rhino24

    Rhino24 - 2024-03-06

    Buen día,
    Tengo el mismo problema, . he intentado busc la solucion pero me sale lo mismo. Saben como se puede solucionar?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.