<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jun 14, 2016 at 3:16 PM, cbaker <span dir="ltr"><<a href="mailto:craigb@clemson.edu" target="_blank">craigb@clemson.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">While this seems to work well most of the time eDirectory / Ldaptive has a<br>
bad habit of returning invalid-credentials error codes when a user is out of<br>
grace logins.</blockquote><div><br></div><div>This implementation was contributed, so if you can improve things please submit a patch or file an issue[1].</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
Is there a way to check the graceLogin attribute when I receive the<br>
invalid_credentials message from ValidateUsernamePassword?<br>
<br></blockquote><div><br></div><div>According to the novell docs[2], the error code you should get is -222. Is that the behavior you see?</div><div>If so, you should be able to configure your classified message map with 'BAD_PASSWORD' to signal a flow on this event.</div><div>Otherwise, like Scott said, you can pull the loginGraceRemaining attribute out of the LDAPResponseContext in the authentication context.</div><div><br></div><div>--Daniel Fisher</div><div><br></div><div>[1] <a href="https://github.com/vt-middleware/ldaptive">https://github.com/vt-middleware/ldaptive</a></div><div>[2] <a href="http://support.novell.com/docs/Tids/Solutions/10067240.html">http://support.novell.com/docs/Tids/Solutions/10067240.html</a></div><div><br></div></div></div></div>