<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 5.8.2014 13:04, Marek Posolda wrote:<br>
</div>
<blockquote cite="mid:53E0BA4D.9050408@redhat.com" type="cite">
<blockquote type="cite" style="color: #000000;">
<blockquote type="cite" style="color: #000000;">
<pre wrap="">* The semantics of "searchForUser" is a bit different for
<span class="moz-txt-citetags">>> </span>FederationProviders and our model implementations. For example, if you
<span class="moz-txt-citetags">>> </span>have user "John Doe" and you search for "ohn Do" in admin console, then
<span class="moz-txt-citetags">>> </span>both JPA and Mongo local providers will return you "John Doe" as they
<span class="moz-txt-citetags">>> </span>add % at the beginning/end. However federation providers are looking
<span class="moz-txt-citetags">>> </span>exactly for FirstName: "ohn" , LastName: "Do", so if "John Doe" exists
<span class="moz-txt-citetags">>> </span>in LDAP, he won't be returned.
<span class="moz-txt-citetags">>></span>
</pre>
</blockquote>
<pre wrap=""><span class="moz-txt-citetags">> </span>Can we do anything about that? Does LDAP have a "like"?
</pre>
</blockquote>
<pre wrap="">yes, LDAP has * . Workaround, which works for me is to put directly
search string like: <b class="moz-txt-star"><span class="moz-txt-tag">*</span>ohn Do<span class="moz-txt-tag">*</span></b> into admin console, but this is not pretty
and is LDAP specific though.</pre>
</blockquote>
btv. Found a typo when test ldap searching. Not sure if it's ok to
commit at this stage, so just send PR for that
<a class="moz-txt-link-freetext" href="https://github.com/keycloak/keycloak/pull/590">https://github.com/keycloak/keycloak/pull/590</a> .<br>
<br>
Marek<br>
</body>
</html>