Uploaded image for project: 'OpenICF'
  1. OpenICF
  2. OPENICF-653

AD PowerShell: problem with Get-ADUser

    XMLWordPrintable

Details

    Description

      It looks like the AD-GetUser (and probably the AD-GetGroup) is not thread safe...

      The error message:
      "invalid enumeration context." appears even if page size and timeout etc... are properly set.

      I managed to reproduce it with a recon on 5 users.
      I suspect some thread safety issue.
      Needs to be investigated. (runspace pool or not, pool size etc...)

      Found this recently:
      https://gotspeechguy.com/2012/04/11/problems-with-get-aduser/

      Attachments

        1. adsearch-fragment.txt
          1 kB
        2. ADSISearch.psm1
          7 kB
        3. invalidEnumContext.png
          invalidEnumContext.png
          14 kB

        Issue Links

          Activity

            People

              gael Gael Allioux
              gael Gael Allioux
              Michal Orlik Michal Orlik
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: