summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/providers/ldap/sdap_async_connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async_connection.c b/src/providers/ldap/sdap_async_connection.c
index da50f4ad..20f282e3 100644
--- a/src/providers/ldap/sdap_async_connection.c
+++ b/src/providers/ldap/sdap_async_connection.c
@@ -1129,7 +1129,7 @@ struct tevent_req *sdap_auth_send(TALLOC_CTX *memctx,
return tevent_req_post(req, ev);
}
pw.bv_val = discard_const(password);
- pw.bv_len = pwlen - 1;
+ pw.bv_len = pwlen;
state->is_sasl = false;
subreq = simple_bind_send(state, ev, sh, user_dn, &pw);