Skip to content
Snippets Groups Projects
Commit 7592a9b9 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

make sure we don't test against stored values starting with "{"

parent 0fffad53
No related branches found
No related tags found
No related merge requests found
......@@ -328,7 +328,8 @@ lutil_passwd(
#ifdef SLAPD_CLEARTEXT
if( is_allowed_scheme("{CLEARTEXT}", schemes ) ) {
return passwd->bv_len == cred->bv_len
return (( passwd->bv_len == cred->bv_len ) &&
( passwd->bv_val[0] != '{' /*'}'*/ ))
? memcmp( passwd->bv_val, cred->bv_val, passwd->bv_len )
: 1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment