Uploaded image for project: 'Directory Client API'
  1. Directory Client API
  2. DIRAPI-89

EntryCursorImpl loops forever in next() when using AD Server with referrals

Watch issueLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0-M12
    • 1.0.0-M14
    • Mac

    Description

      Search for a user that doesn’t exist on AD. Cursor provides four referrals, but no SearchResultDone.

      val searchArg = "(&(objectclass=%s)(samaccountname=%s))".format(s.objectClass, user)
      val cursor = connection.search(s.baseDn, searchArg, SearchScope.SUBTREE, "*")

      next() hangs in this loop ending on line 102:
      while ( !( response instanceof SearchResultDone ) );

      Using this code instead causes a SearchResultDone to appear after three referrals:

      val searchRequest = new SearchRequestImpl().setBase(new Dn(s.baseDn))
      .setFilter(searchArg).setScope(SearchScope.SUBTREE).addControl(new ManageDsaITImpl())

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            elecharny Emmanuel Lécharny
            dcbriccetti Dave Briccetti
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment