CanineHQ/canine · error
LDAP: no reader credentials and anonymous reads disabled
Error message
LDAP: no reader credentials and anonymous reads disabled
What it means
Error "LDAP: no reader credentials and anonymous reads disabled" thrown in CanineHQ/canine.
Source
Thrown at app/services/ldap/authenticator.rb:131
options = {
host: config.host,
port: config.port
}
encryption = net_ldap_encryption
options[:encryption] = encryption if encryption
if config.bind_dn.present? && config.bind_password.present?
options[:auth] = {
method: :simple,
username: config.bind_dn,
password: config.bind_password
}
elsif !config.allow_anonymous_reads?
# No way to bind safely
# Let caller see failure via bind result
logger.info "LDAP: no reader credentials and anonymous reads disabled"
raise "LDAP: no reader credentials and anonymous reads disabled"
end
Net::LDAP.new(options)
end
def build_user_auth_connection(user_dn, password)
options = {
host: config.host,
port: config.port
}
encryption = net_ldap_encryption
options[:encryption] = encryption if encryption
ldap = Net::LDAP.new(options)
ldap.auth(user_dn, password)
ldap
endView on GitHub (pinned to ba4ee3968d)
When it happens
Trigger: Thrown at app/services/ldap/authenticator.rb:131 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of CanineHQ/canine@ba4ee3968d (2026-08-23).
Data as JSON: /api/errors/5285e21838cfeb3a.
Report an issue: GitHub.