Boris Kuzevanov
Boris Kuzevanov

Reputation: 1302

rails devsie_ldp how to ignore certificate verification?

I am using devise, devise_ldap_authenticatable module to do simple ldap authentication. But if I try to authenticate on ssl (689 port), I have this error:

Net::LDAP::Error (hostname "x.x.x.x" does not match the server certificate):

So, I need to ignore this verification. I tried to google, but I have no result :( How I can do it?

Upvotes: 0

Views: 384

Answers (1)

Justin Cervero
Justin Cervero

Reputation: 379

Per the devise_ldap_authenticatable documentation

If you're using a test LDAP server running a self-signed SSL certificate, make sure the appropriate root certificate is installed on your system. Alternately, you may temporarily disable certificate checking for SSL by modifying your system LDAP configuration (e.g., /etc/openldap/ldap.conf or /etc/ldap/ldap.conf) to read TLS_REQCERT never.

Upvotes: 2

Related Questions