Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

difficulties to login on ldaps #38

Open
FGDVLP opened this issue Apr 19, 2018 · 1 comment
Open

difficulties to login on ldaps #38

FGDVLP opened this issue Apr 19, 2018 · 1 comment

Comments

@FGDVLP
Copy link

FGDVLP commented Apr 19, 2018

hi,

i got the errors :

Exception while invoking method 'login' TypeError: Cannot read property 'on' of undefined
at setupSocket (/home/meteoruser/.meteor/packages/typ_ldapjs/.0.7.3.1brxoay.lw2j++os+web.browser+web.cordova/npm/node_modules/ldapjs/lib/client/client.js:111:15)

events.js:183
throw er; // Unhandled 'error' event
Error: self signed certificate in certificate chain
at TLSSocket. (_tls_wrap.js:1105:38)

my certificate is official (not self-signed),
if i set LDAP_DEFAULTS.ldapsCertificate to false,
or if i set environment variable NODE_TLS_REJECT_UNAUTHORIZED to 0,
then there is no "self signed certificate" error,
but the "Cannot read property 'on' of undefined" error still remain.

@FGDVLP
Copy link
Author

FGDVLP commented Apr 25, 2018

here the solution i found :

  1. add env var NODE_TLS_REJECT_UNAUTHORIZED=0 (despite it is an official one, not self-signed)

  2. modify .meteor/packages/typ_ldapjs/.0.7.3.1brxoay.lw2j++os+web.browser+web.cordova/npm/node_modules/ldapjs/lib/client/client.js

// var closeSocket = (opts.secure ? socket.socket : socket);
if (socket.socket === undefined) { closeSocket = socket; }else{ closeSocket = socket.socket; }

any advice ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant