Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConstraintViolationError: Exceed password retry limit. Account locked. #21

Closed
CoinCoderBuffalo opened this issue Feb 4, 2015 · 2 comments

Comments

@CoinCoderBuffalo
Copy link

Using passport-ldapauth module and getting this error when trying to login using a locked account. The trace below points to ldapjs client. Any ideas?

ConstraintViolationError: Exceed password retry limit. Account locked.
at messageCallback (C:\Users\jg63717\projects\raap\node_modules\passport-ldapauth\node_modules\ldapauth-fork\node_modules\ldapjs\lib\client\client.js:867:40)
at Parser.onMessage (C:\Users\jg63717\projects\raap\node_modules\passport-ldapauth\node_modules\ldapauth-fork\node_modules\ldapjs\lib\client\client.js:199:12)
at Parser.emit (events.js:95:17)
at Parser.write (C:\Users\jg63717\projects\raap\node_modules\passport-ldapauth\node_modules\ldapauth-fork\node_modules\ldapjs\lib\messages\parser.js:105:8)
at CleartextStream.onData (C:\Users\jg63717\projects\raap\node_modules\passport-ldapauth\node_modules\ldapauth-fork\node_modules\ldapjs\lib\client\client.js:155:24)
at CleartextStream.emit (events.js:95:17)
at CleartextStream. (stream_readable.js:764:14)
at CleartextStream.emit (events.js:92:17)
at emitReadable (_stream_readable.js:426:10)
at _stream_readable.js:419:7
@vesse
Copy link
Owner

vesse commented Feb 5, 2015

Could you try adding ConstraintViolationError to error handler in your passport-ldapauth installation so it would be handled like InvalidCredentialsError?

I would expect that the error is returned to passport-ldapauth, but since it currently does not treat that particular error as a login failure but execption (see here) it will raise an error.

@CoinCoderBuffalo
Copy link
Author

Fixed it and submitted pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants