Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-23564

freePBX-16 Superfecta LDAP-lookup error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: QA Progress
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 15, 16
    • Component/s: CID Superfecta
    • Labels:
      None
    • ToDo:
    • Distro Version:
      >=16
    • Distro:
      FreePBX Distro
    • Module Fix Version:

      Description

      The LDAP source module in CID Superfecta does not work anymore on freePBX 16 (and above?) distro. I use a TurnKey openLDAP server and it has been working for many years. It still works, when I access openLDAP from a freePBX 15 server.

      The error is "A non-numeric value encountered..."

      The solution is described here

      I changed line 191 in the LDAP-source-file accordingly...from

      $thenumber = substr($thenumber, (-1*$run_param[‘Filter_Length’]));

      to

      $thenumber = substr($thenumber, (-1*(int)$run_param[‘Filter_Length’]));

      ...now it works again. It seems to be related to php >7.1

       

        Gliffy Diagrams

          Attachments

          1. Ldap.png
            Ldap.png
            25 kB
          2. screenshot-1.png
            screenshot-1.png
            18 kB

            Activity

              People

              • Assignee:
                lgaetz Lorne Gaetz
                Reporter:
                Charles_Darwin Charles Darwin
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.