1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-30 19:42:05 +03:00

s4:ldap_server: only set *resp->SASL.secblob = output for OK or MORE_PROCESSING_REQUIRED

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Stefan Metzmacher
2017-05-11 21:14:00 +02:00
committed by Andrew Bartlett
parent 00a387272a
commit 85a6e73695

View File

@ -419,9 +419,9 @@ static NTSTATUS ldapsrv_BindSASL(struct ldapsrv_call *call)
status = gensec_update_ev(conn->gensec, reply, conn->connection->event.ctx,
input, &output);
*resp->SASL.secblob = output;
if (NT_STATUS_EQUAL(NT_STATUS_MORE_PROCESSING_REQUIRED, status)) {
*resp->SASL.secblob = output;
result = LDAP_SASL_BIND_IN_PROGRESS;
errstr = NULL;
goto do_reply;
@ -553,6 +553,8 @@ static NTSTATUS ldapsrv_BindSASL(struct ldapsrv_call *call)
talloc_unlink(conn, conn->gensec);
conn->gensec = NULL;
*resp->SASL.secblob = output;
do_reply:
if (result != LDAP_SASL_BIND_IN_PROGRESS) {
/*