Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-2854

JLDAP: dref setting causes timeout

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.0.1, 2.1.0, 2.7.0, 2.7.1, 2.8.0
    • Fix Version/s: 2.7.2, 2.8.0
    • Component/s: Providers
    • Labels:
      None
    • Environment:
      linux, mysql, novell nldap
    • Property addition/change required:
      Yes
    • CLE Team Issue:
      Yes

      Description

      The setting of the search constaint to setDereference(LDAPSearchConstraints.DEREF_ALWAYS) can cause timouts on searches on ldap servers that contain many alias object. This should be setable via components.xml

      <property name="searchAliases"><value>false</value></property>

      getEntryFromDirectory then needs:

      if (isSearchAliases())

      { cons.setDereference(LDAPSearchConstraints.DEREF_ALWAYS); }

      else

      { cons.setDereference(LDAPSearchConstraints.DEREF_NEVER); }

      and it is implemented by:
      /**

      • @return Returns the searchAliases
        */
        public boolean isSearchAliases() { return searchAliases; }

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                jean-francois.leveque@upmc.fr Jean-François Lévêque
                Reporter:
                dhorwitz David Horwitz
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration