views:

29

answers:

0

I have written an LDAP MembershipProvider and an LDAP RoleProvider for .NET, they are written in C# and I make use of the DirectorySearcher class in the System.DirectoryServices namespace. In the FindUsersByName- and FindUsersByEmail-methods in my MembershipProvider-implementation I want to paginate the result directly on the LDAP server instead of doing it in the client. I have tried to make use of the PageSize-property on the DirectorySearcher but without luck. Can I possibly do paginating directly on the server by adding some kind of filter to the entry I attach to the searcher? Or is it impossible to do this with the build in DirectorySearcher class?

You can take a look at the code of my LdapMembershipProvider here.