Author: Prysson | Posted on: 6/24/2008 11:39:40 AM | Views : 271

I use teh following bit of code to access our ldap server and grab a list of users..

 

I then cycle through the entryies to grab a list of userid's and a second piece of data call SAP (see code below)

 

Here is the problem you will note I use the mySearcher.SizeLimit = 100;  to restrict the returns for testing purposes.

all the records it returns arent valid active users...they have no SID when I query for the sid and the arent in a precompiled list of active users I have for testing.

So its like its giving me back a bunch of old userids or something.

 Anyone have anyidea what the problem is..is there some filter I should add to only show active userid's or something?

Also the return isnt in any particular order..is there anyway to make it sort the records alphabeticaly for cycling through.

 

 
DirectoryEntry e ...

Go to the complete details ...