Results 1 to 2 of 2

Thread: LDAP - speed question

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2009
    Posts
    1

    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.

  2. #2
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724

    Re: LDAP - speed question

    You've hit the nail on the head: the AD LDAP provider lazy loads information to improve performance, I think it best to follow the pattern

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width