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 ???
When authentication fails
got unhandled exception