|
-
Jul 7th, 2009, 09:13 PM
#1
Thread Starter
New Member
LDAP - speed question
Hey all,
I'm writing a little app to make some of the AD management tasks single click jobs for my offsider and I'm also using it as an opportunity to learn some C#. I'm doing ok so far, I've decided to create a user class that contains the AD object properties with the intention of expanding it later. For now I only really need it to have the displayName and distinguishedName which works fine but I thought I might as well just populate a Hashtable with every property in case I use them later.
What I have so far: http://pastebin.ca/1487675
I'm working with groups of around 500 users, when I create 500 of these to loop through it works but takes AGES. Now if I remove the foreach() loop and just set the two names its almost instant. Pretty much I'm just asking am I doing something wrong or is it normal to take that long querying an LDAP server and I should cut down the amount of info I'm trying to pull out?
Cheers.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|