s4:libcli/ldap: just use gensec_update() in ldap_bind_sasl()
authorStefan Metzmacher <metze@samba.org>
Mon, 15 May 2017 21:53:38 +0000 (23:53 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 21 May 2017 23:12:23 +0000 (01:12 +0200)
commit27324112b61039126799d76a33a2883747f01267
tree7e145821c630c07a1b2d30742629e73c695b130c
parent3c2e02968e687a96cae30ba13d69205644f12dac
s4:libcli/ldap: just use gensec_update() in ldap_bind_sasl()

We're in a blocking/sync call, we should avoid using nested event loops for
this. As far as I can see ldap_bind_sasl() is only called from command line
tools, which are ok to block.

Resolving this requires also resolving the general case in LDB, as that is the
API this is used from.  We would need ldb_connect_send() and ldb_connect_recv()
at a start.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon May 22 01:12:23 CEST 2017 on sn-devel-144
source4/libcli/ldap/ldap_bind.c