1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

r12062: SASL negotiation now requires a gensec_security context, so that we

only try permitted mechanims.

Andrew Bartlett
(This used to be commit 0f50239dc4)
This commit is contained in:
Andrew Bartlett
2005-12-05 04:10:13 +00:00
committed by Gerald (Jerry) Carter
parent c3f35aafed
commit 687545e94e

View File

@ -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));