473,396 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Retrieving Users and Groups from AD in chunks??

Here is my problem and I hope there is someone out-there who can help
me.

I want to search my domain for all users and groups. And since there
are lot of them I want to read them back in chunks of 50, how do I do
that?

I have tried to use the property SizeLimit of the Directory searcher
and yea I only get 50 objects back but how the h-ll do I get the next
chunk of 50 objects back? Can I somehow specify a range similar to the
range that is used to retrive chunks of attributes?

Hope I made some sense atleast because I'm a bit cunfused hera about
what is used for different things in the direcory searcher and the
documentation is quite poor.

I'm starting to get desperate here!

Johan
Nov 20 '05 #1
1 1019
You can't. You need to use Paged searches (0 < PageSize <= max page size,
normally 1000) , but you can't retrieve the pages explicitly. That is all
done for you as you enumerate the results.

You could enumerate the results 50 at a time, but you need to enumerate the
whole result set from one search.

Joe K.

"Johan" <c_*************@hotmail.com> wrote in message
news:d2**************************@posting.google.c om...
Here is my problem and I hope there is someone out-there who can help
me.

I want to search my domain for all users and groups. And since there
are lot of them I want to read them back in chunks of 50, how do I do
that?

I have tried to use the property SizeLimit of the Directory searcher
and yea I only get 50 objects back but how the h-ll do I get the next
chunk of 50 objects back? Can I somehow specify a range similar to the
range that is used to retrive chunks of attributes?

Hope I made some sense atleast because I'm a bit cunfused hera about
what is used for different things in the direcory searcher and the
documentation is quite poor.

I'm starting to get desperate here!

Johan

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Don | last post by:
How do I retrieve the full path (C:\.....filename) of a file uploaded to a php script on the server. I think $_FILES will only provide 'name', which is only the filename itself. Thanks, Don ...
0
by: Alistair | last post by:
Hi all, I am creating a database based site that keeps track of books, who has read them and the comments they have. After a little help in M.P.I.asp.DB I managed to create a database (access...
0
by: James | last post by:
Hello All, I am working in a Windows NT domain environment, working with C#. What I want to be able to do is view all the groups a user belongs to, and also be able to add the users to groups. ...
0
by: Neo | last post by:
Hi Everyone I am trying to set and retrieve NTFS permssions for fileshares on remote machine using ActiveDs Interop. It works for domain groups and users but when try to retrieve permssions for...
0
by: Jason | last post by:
I am working on an ASP.Net application that retrieves various information about groups and users from AD and then I would like to look at the security information on some folder, on our server. I...
1
by: tangus via DotNetMonster.com | last post by:
Hello all, I'm really struggling with getting some Active Directory code to work in ASP.NET. Can you please provide assistance? I am executing the following code: Dim enTry As DirectoryEntry =...
1
by: Glenn T. Kitchen | last post by:
Dear Group, I'm having problems retrieving the child rows of a parent row. The parent table is Users and the child table is Addresses. I used the Schema to create a DataRelation between the...
3
by: =?Utf-8?B?YW1pcg==?= | last post by:
Hi, I have a Generic Object that has a private List field item. I populate the List in a different function I use a FOREACH LOOP with a FindAll function to get all items that have a certain...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.