Closed c0dearm closed 3 years ago
Thanks for making an r2d2
adapter for this crate! It's a very convenient feature to have. However, I wouldn't want to make it part of ldap3
itself; I'd regard it as a kind of layering violation without a pressing need. After all, there are other connection pools (a couple of async ones, for example) which could incorporate LDAP support, and I don't see why r2d2
should have preferential treatment. Therefore, I suggest that the adapter crate remains separate.
Sure! No problem, as you wish of course 👍
So I created the r2d2-ldap crate which is now officially listed in r2d2 and I thought it would be nice to include the
LdapConnectionManager
inldap3
(either by default or as feature) so that end users don't need to maintain dependency whenever they need a connection pool to LDAP, which is common for instance in web development.Here is an example of how I use it with
actix-web
:Let me know if you would like pull request including the
LdapConnectionManager
and if so, if you prefer it having it by default or as an optional feature. Cheers! :smile: