spider-gazelle / crystal-ldap

a Crystal lang LDAP client
MIT License
17 stars 1 forks source link

Failed authentication #2

Open mbab opened 3 years ago

mbab commented 3 years ago

When authentication fails

begin
  client.authenticate(user, pass)
rescue ex
  puts ex.message
end

got unhandled exception

bind failed with InvalidCredentials: Simple Bind Failed: NT_STATUS_LOGON_FAILURE
Unhandled exception in spawn: Channel is closed (Channel::ClosedError)
  from /usr/lib/crystal/channel.cr:228:9 in 'send'
  from /usr/lib/crystal/log/dispatch.cr:55:7 in 'dispatch'
  from /usr/lib/crystal/log/backend.cr:24:5 in 'dispatch'
  from /usr/lib/crystal/log/log.cr:36:3 in 'process!'
  from lib/ldap/src/ldap/client.cr:27:13 in '->'
  from /usr/lib/crystal/primitives.cr:255:3 in 'run'
  from /usr/lib/crystal/fiber.cr:92:34 in '->'
  from ???
stakach commented 3 years ago

That error is coming out of the logger. I feel like it's an issue with your Log setup