Quick way to retrieve user information Active Directory

前端 未结 5 868
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-13 04:33

How to query user information from Active Directory? I have code that works, but it\'s really slow. I\'m using C#. This is the code I currently use:

    sta         


        
5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-13 05:01

    I'm not sure how much of your "slowness" will be due to the loop you're doing to find entries with particular attribute values, but you can remove this loop by being more specific with your filter. Try this page for some guidance ... Search Filter Syntax

提交回复
热议问题