Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3633474
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:39:28+00:00 2026-05-19T00:39:28+00:00

I am using the following code to fetch list of all users in the

  • 0

I am using the following code to fetch list of all users in the given domain.

DirectoryEntry dirEntry = new DirectoryEntry( "LDAP://domainname", userName, password );
System.DirectoryServices.DirectorySearcher dirSearcher = new System.DirectoryServices.DirectorySearcher( dirEntry );

dirSearcher.Filter = "(&(objectClass=user)(objectCategory=person))";
foreach ( SearchResult resEnt in dirSearcher.FindAll( ) )
{
//Access searchResult
}

But results returned are partial and do not reflect all the registered users in the domain. Is there anything I am missing out here?

Thanks in advance,
Bharath.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T00:39:28+00:00Added an answer on May 19, 2026 at 12:39 am

    Silly question for you, how many are returned? Any chance it is right around 1000 or 2000?

    AD has a default limit on how many search results are returned in one simple query. You can page your results, or change the limit, but if you are getting right around 1000 or 2000 that would be a dead giveaway.

    In that case, Uwe’s answer to test with an external LDAP browser would show the same results. (I personally use LBE or ApacheDS. LBE is 600K and lightweight).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im using the following code to fetch image from a file,create an image list
I am using the following code to fetch all mails since 1 day less
I'm using the following code to fetch data out of my Core Data graph:
I am using the following code to fetch html source website. private string Extract_Source(string
Using following code I try to get updated list of checkbuttons' corresponding text values,
I am using following code to create new wifi access point and to connect
I have two table TABLE_EXAM and TABLE_QUESTION. I fetch record using following code but
i am fetching data using following code _.each(cardIds, function(id){ var mdc = new MdlCard({cardId:
I fetch record from database using following code. for (LocWiseProfileBeans cn : LocWiseProfile) {
I'm using the following code to export all the emails in a specific gmail

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.