Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-4213

LDAP Auth - Simple ldaps implementation

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • None
    • Professional Edition, Enterprise Edition, CE-21.10
    • Authentication
    • None

    Description

      Currently it is not possible to use ldaps when using auth_mechanism => ldap.
      A simple implementation could be by checking the port if it has the value 636
      File => html/includes/authentication/ldap.inc.php

      ldap_connect modified => line 111-116

       

      104-function ldap_init()
      105-{
      106-  global $ds, $config;
      107-
      108-  if (!is_resource($ds))
      109-  {
      110-    print_debug('LDAP[Connecting to ' . implode(' ',$config['auth_ldap_server']) . ']');
      111:    if ($config['auth_ldap_port'] === 636)
      112-    {
      113-     $ds = @ldap_connect(implode(' ',preg_filter('/^/', 'ldaps://', $config['auth_ldap_server'])), $config['auth_ldap_port']);
      114-    } else {
      115-     $ds = @ldap_connect(implode(' ',$config['auth_ldap_server']), $config['auth_ldap_port']);
      116-    }
       

      I tried it in our test env by connecting to MS AD server and it works as expected.

       

      Attachments

        Activity

          People

            adama Adam Armstrong
            ds-ops DS-Operations
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: