Skip to content

TypeError with discourse 3.0.0.beta16 #71

Closed
@loganharbour

Description

@loganharbour

With 0.6.0 and discourse 3.0.0.beta16, I get the following deprecation warning:

Deprecation warning: please give :encryption option as a Hash to Net::LDAP.new

And the following error:

(ldap) Authentication failure! ldap_error: TypeError, no implicit conversion of Hash into String
Started GET "/auth/failure?message=ldap_error&strategy=ldap" for x.x.x.x at 2023-01-06 23:02:12 +0000
Processing by Users::OmniauthCallbacksController#failure as HTML
  Parameters: {"message"=>"ldap_error", "strategy"=>"ldap"}

I've tried to do into this some but I'm not nearly capable enough. I tried setting :encryption at

base: SiteSetting.ldap_base,
to get rid of the deprecation warning, but still have the conversion error.

If I knew how to get a trace of the error... I'd be glad to contribute to a solution here.

First reported at https://meta.discourse.org/t/jonmbake-discourse-ldap-auth-ldap-plugin-not-working-after-upgrading-discourse-to-3-0-0-beta16/250979.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions