summaryrefslogtreecommitdiff
path: root/source4/ldap_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2017-05-11 21:14:00 +0200
committerAndrew Bartlett <abartlet@samba.org>2017-06-15 09:13:23 +0200
commit85a6e73695d6c16bdb896bbb4c7b95d1dc74de60 (patch)
treef9f800c53f8c6d53ee22c930fc47b6c5812377a5 /source4/ldap_server
parent00a387272afe6939948669174ec61277d310c290 (diff)
downloadsamba-85a6e73695d6c16bdb896bbb4c7b95d1dc74de60.tar.gz
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>
Diffstat (limited to 'source4/ldap_server')
-rw-r--r--source4/ldap_server/ldap_bind.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/ldap_server/ldap_bind.c b/source4/ldap_server/ldap_bind.c
index 337ce125125..451f9d5b56b 100644
--- a/source4/ldap_server/ldap_bind.c
+++ b/source4/ldap_server/ldap_bind.c
@@ -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) {
/*