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

example for using own ldapconnection #11

Closed v2kiran closed 4 years ago

v2kiran commented 4 years ago

Hi is is possible to use a custom System.DirectoryServices.Protocols.Ldapconnection with ldapconfiguration ? if yes could you post an example of how we may use it.

madhatter22 commented 4 years ago

You need to implement a custom LdapConnectionFactory and register it with the configuration method ConfigureCustomFactory.

madhatter22 commented 4 years ago

See LdapConnectionFactory for an example of implementing your own connection factory. Call config.ConfigureCustomFactory(your instance) to configure it.

v2kiran commented 4 years ago

thanks