From 9c6e14c0d39f36085f11114e1f3155ee120558d5 Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Mon, 14 Jan 2013 10:29:09 +0100 Subject: Fix LDAP authentication - invalid password length sss_authtok_get_password() already returns length without terminating zero. This broke authentication over LDAP because we removed the last password character. --- src/providers/ldap/sdap_async_connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/providers/ldap/sdap_async_connection.c') diff --git a/src/providers/ldap/sdap_async_connection.c b/src/providers/ldap/sdap_async_connection.c index da50f4ad4..20f282e3d 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); -- cgit