<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">Added another commit for deleting of
      users on mongo . Both are one liners and I hope they are quite
      safe to be included though.<br>
      <br>
      Marek<br>
      <br>
      On 5.8.2014 13:33, Marek Posolda wrote:<br>
    </div>
    <blockquote cite="mid:53E0C109.7020700@redhat.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <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">&gt;&gt; </span>FederationProviders and our model implementations. For example, if you
<span class="moz-txt-citetags">&gt;&gt; </span>have user "John Doe" and you search for "ohn Do" in admin console, then
<span class="moz-txt-citetags">&gt;&gt; </span>both JPA and Mongo local providers will return you "John Doe" as they
<span class="moz-txt-citetags">&gt;&gt; </span>add % at the beginning/end. However federation providers are looking
<span class="moz-txt-citetags">&gt;&gt; </span>exactly for FirstName: "ohn" , LastName: "Do", so if "John Doe" exists
<span class="moz-txt-citetags">&gt;&gt; </span>in LDAP, he won't be returned.
<span class="moz-txt-citetags">&gt;&gt;</span>
</pre>
          </blockquote>
          <pre wrap=""><span class="moz-txt-citetags">&gt; </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
        moz-do-not-send="true" 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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
keycloak-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-dev">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a></pre>
    </blockquote>
    <br>
  </body>
</html>