Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-2641

bind() returns before binding operation is done

    XMLWordPrintable

Details

    Description

      In function main(), I had to insert sleep(3) between bind() on line 533 and search_for_groups() on line 541. Without this delay, the Active Directory server thinks the bind operation is still in progress, and search_for_groups() throws an exception. This is arguably not the right way to handle it. Ideally, bind() should poll for the completion of the operation and block until the operation finishes or times out. Script is running under Windows XP.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Anonymous Anonymous
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: