Uploaded image for project: 'Guacamole'
  1. Guacamole
  2. GUACAMOLE-717

LDAP authentication fails if search result count exceeds ldap-max-search-result

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.1.0
    • Component/s: guacamole-client
    • Labels:
      None

      Description

      If the search results from an LDAP search exceed ldap-max-search-results, the search will fail and the user will receive an error on login. The logs do not show any indication of what the problem is.

      After troubleshooting, I've determined that the LDAPSearchResults.next() function returns an LDAPException "Sizelimit Exceeded". In ObjectQueryService.search(), this is not handled within the immediate try/catch block so the other valid results are not returned to the calling function. The fix is to also catch LDAPException when catching LDAPReferralException.

      Pull request is incoming.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                joelb Joel Best
                Reporter:
                joelb Joel Best
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: