madhatter22 / LinqToLdap

C# LINQ provider built on top of System.DirectoryServices.Protocols for querying and updating LDAP servers.
MIT License
45 stars 23 forks source link

Allow typed search by manually providing a SearchRequest #18

Open BalassaMarton opened 3 years ago

BalassaMarton commented 3 years ago

Hi, this is would be a nice-to-have feature in IDirectoryContext for some ad-hoc search scenarios:

IEnumerable<TEntry> Search<TEntry>(SearchRequest request);
Task<IEnumerable<TEntry>> SearchAsync<TEntry>(SearchRequest request);

It should send the request to the server, and then map the results.

madhatter22 commented 3 years ago

Thanks for the suggestion. I'll take a look at adding this feature.

BalassaMarton commented 3 years ago

If you accept PRs I may do this myself.