summaryrefslogtreecommitdiffstats
path: root/source/libcli
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-12-05 04:10:13 +0000
committerAndrew Bartlett <abartlet@samba.org>2005-12-05 04:10:13 +0000
commit5f0099463438d2f4bdf4d87a0f54c9e411a9eb40 (patch)
treea2b93a7901fee832fead0bfa44b59629eac3cdfa /source/libcli
parent058ea2b86909b0a9d6c16f32631716d0a0200d2b (diff)
downloadsamba-5f0099463438d2f4bdf4d87a0f54c9e411a9eb40.tar.gz
samba-5f0099463438d2f4bdf4d87a0f54c9e411a9eb40.tar.xz
samba-5f0099463438d2f4bdf4d87a0f54c9e411a9eb40.zip
r12062: SASL negotiation now requires a gensec_security context, so that we
only try permitted mechanims. Andrew Bartlett
Diffstat (limited to 'source/libcli')
-rw-r--r--source/libcli/ldap/ldap_bind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libcli/ldap/ldap_bind.c b/source/libcli/ldap/ldap_bind.c
index 81e0c8b4e6d..766416f5758 100644
--- a/source/libcli/ldap/ldap_bind.c
+++ b/source/libcli/ldap/ldap_bind.c
@@ -223,7 +223,7 @@ NTSTATUS ldap_bind_sasl(struct ldap_connection *conn, struct cli_credentials *cr
}
sasl_names[i] = NULL;
- mechs = gensec_security_by_sasl(tmp_ctx, sasl_names);
+ mechs = gensec_security_by_sasl(conn->gensec, tmp_ctx, sasl_names);
if (!mechs || !mechs[0]) {
DEBUG(1, ("None of the %d proposed SASL mechs were acceptable\n",
count));