The main reason for this is to do proper connection management. I tried hard, but I failed trying to slowly migrate the ads_struct based code to something saner. So I polished tldap, which thanks to metze does proper sasl.
This patch is pretty much a complete rewrite, so looking at it in diff -u format does not really make sense. Look at the final output.
a9b6276 winbind: Base idmap_ad on tldap
source3/winbindd/idmap_ad.c | 1059 +++++++++++++++++++++++++---------------
source3/winbindd/wscript_build | 2 +-
2 files changed, 655 insertions(+), 406 deletions(-)
Upstream: gitweb.samba.org