<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, May 20, 2015 at 5:09 PM, Emilio Penna <span dir="ltr"><<a href="mailto:emilio.penna@seciu.edu.uy" target="_blank">emilio.penna@seciu.edu.uy</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>With respect to ppolicy control, I thinks there's some limitation in the<br>
control handling in ValidateUsernamePasswordAgainstLDAP, let me explain:<br>
<br>
As you said, in case of bind success (and accountState not null), the<br>
message generated is:<br>
<span class="">String.format("%s:%s:%s", "ACCOUNT_WARNING", response.getResultCode(),<br>
response.getMessage())<br>
<br>
</span>In bind failure, the message is<br>
String.format("%s:%s:%s", state.getError(), response.getResultCode(),<br>
response.getMessage())<br></blockquote><div><br></div><div>Our design made some assumptions that perhaps need to be revisited. Most notably that warnings are associated with login success and errors are associated with login failures. I need to think about this use case some more, but more configuration knobs to drive different flows may be in order.</div><div><br></div><div>--Daniel Fisher</div><div><br></div></div></div></div>