{"action":"created","issue":{"url":"https://api.github.com/repos/vesse/passport-ldapauth/issues/26","labels_url":"https://api.github.com/repos/vesse/passport-ldapauth/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/vesse/passport-ldapauth/issues/26/comments","events_url":"https://api.github.com/repos/vesse/passport-ldapauth/issues/26/events","html_url":"https://github.com/vesse/passport-ldapauth/issues/26","id":65975682,"number":26,"title":"Unable to access ldaps - ldapjs error","user":{"login":"random6886","id":11774102,"avatar_url":"https://avatars.githubusercontent.com/u/11774102?v=3","gravatar_id":"","url":"https://api.github.com/users/random6886","html_url":"https://github.com/random6886","followers_url":"https://api.github.com/users/random6886/followers","following_url":"https://api.github.com/users/random6886/following{/other_user}","gists_url":"https://api.github.com/users/random6886/gists{/gist_id}","starred_url":"https://api.github.com/users/random6886/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/random6886/subscriptions","organizations_url":"https://api.github.com/users/random6886/orgs","repos_url":"https://api.github.com/users/random6886/repos","events_url":"https://api.github.com/users/random6886/events{/privacy}","received_events_url":"https://api.github.com/users/random6886/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-02T17:41:43Z","updated_at":"2015-04-02T18:05:01Z","closed_at":null,"body":"I am currently using Node.js version 0.12.2 and passport-ldapauth@0.3.0 with passport @0.2.1.\r\n\r\nI'm running into an issue where I am able to talk to an ldap server using \"ldap://....:389\" successfully, however when using ldaps://, I run into the problem as documented here:\r\n\r\nhttp://stackoverflow.com/questions/28773546/nodejs-passport-ldapauth-cannot-read-on-property-of-undefined\r\n\r\nFollowing the recommended solution of replacing the sub-module for ldapjs seems to fix the problem. \r\n\r\n## node.js project before:\r\n\r\n├─┬ passport@0.2.1\r\n│ ├── passport-strategy@1.0.0\r\n│ └── pause@0.0.1\r\n├─┬ passport-ldapauth@0.3.0\r\n│ ├─┬ ldapauth-fork@2.3.1\r\n│ │ ├── bcryptjs@2.1.0\r\n│ │ ├─┬ ldapjs@0.7.1        **<----- Look here**\r\n│ │ │ ├── asn1@0.2.1\r\n│ │ │ ├── assert-plus@0.1.5\r\n│ │ │ ├─┬ bunyan@0.22.1\r\n│ │ │ │ └── mv@0.0.5\r\n│ │ │ ├─┬ nopt@2.1.1\r\n│ │ │ │ └── abbrev@1.0.5\r\n│ │ │ └─┬ pooling@0.4.6\r\n│ │ │   ├── once@1.3.0\r\n│ │ │   └─┬ vasync@1.4.0\r\n│ │ │     ├─┬ jsprim@0.3.0\r\n│ │ │     │ ├── extsprintf@1.0.0\r\n│ │ │     │ ├── json-schema@0.2.2\r\n│ │ │     │ └── verror@1.3.3\r\n│ │ │     └─┬ verror@1.1.0\r\n│ │ │       └── extsprintf@1.0.0 \r\n│ │ └── lru-cache@2.5.0\r\n│ └── passport-strategy@1.0.0\r\n\r\n## To fix:\r\n\r\n(Start at project root)\r\ncd ./passport-ldapauth/node_modules/ldapauth-fork/node_modules/ldapjs\r\ncd ..\r\nnpm rm ldapjs unbuild ldapjs@0.7.1\r\nnpm install git://github.com/mcavage/node-ldapjs.git\r\n\r\n├─┬ passport@0.2.1\r\n│ ├── passport-strategy@1.0.0\r\n│ └── pause@0.0.1\r\n├─┬ passport-ldapauth@0.3.0\r\n│ ├─┬ ldapauth-fork@2.3.1\r\n│ │ ├── bcryptjs@2.1.0\r\n│ │ ├─┬ ldapjs@0.7.1    **<--- Look here**\r\n│ │ │ ├── asn1@0.2.2\r\n│ │ │ ├── assert-plus@0.1.5 \r\n│ │ │ ├─┬ backoff@2.4.1\r\n│ │ │ │ └── precond@0.2.3\r\n│ │ │ ├─┬ bunyan@1.3.3\r\n│ │ │ │ ├─┬ mv@2.0.3\r\n│ │ │ │ │ ├─┬ mkdirp@0.5.0\r\n│ │ │ │ │ │ └── minimist@0.0.8\r\n│ │ │ │ │ ├── ncp@0.6.0\r\n│ │ │ │ │ └── rimraf@2.2.8\r\n│ │ │ │ └── safe-json-stringify@1.0.3\r\n│ │ │ ├── dashdash@1.7.3\r\n│ │ │ ├─┬ dtrace-provider@0.4.0\r\n│ │ │ │ └── nan@1.5.3\r\n│ │ │ ├── ldap-filter@0.2.1\r\n│ │ │ ├─┬ once@1.3.1\r\n│ │ │ │ └── wrappy@1.0.1\r\n│ │ │ ├─┬ vasync@1.6.2\r\n│ │ │ │ └─┬ verror@1.1.0\r\n│ │ │ │   └── extsprintf@1.0.0\r\n│ │ │ └─┬ verror@1.6.0\r\n│ │ │   └── extsprintf@1.2.0\r\n│ │ └── lru-cache@2.5.0\r\n│ └── passport-strategy@1.0.0\r\n\r\n\r\nThe process of having to manually update the project makes node.js very difficult to manually deploy. I'm not too sure if this should be fixed at the ldapauth-fork or not?\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/vesse/passport-ldapauth/issues/comments/88994394","html_url":"https://github.com/vesse/passport-ldapauth/issues/26#issuecomment-88994394","issue_url":"https://api.github.com/repos/vesse/passport-ldapauth/issues/26","id":88994394,"user":{"login":"random6886","id":11774102,"avatar_url":"https://avatars.githubusercontent.com/u/11774102?v=3","gravatar_id":"","url":"https://api.github.com/users/random6886","html_url":"https://github.com/random6886","followers_url":"https://api.github.com/users/random6886/followers","following_url":"https://api.github.com/users/random6886/following{/other_user}","gists_url":"https://api.github.com/users/random6886/gists{/gist_id}","starred_url":"https://api.github.com/users/random6886/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/random6886/subscriptions","organizations_url":"https://api.github.com/users/random6886/orgs","repos_url":"https://api.github.com/users/random6886/repos","events_url":"https://api.github.com/users/random6886/events{/privacy}","received_events_url":"https://api.github.com/users/random6886/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T18:05:01Z","updated_at":"2015-04-02T18:05:01Z","body":"Ah I see. I appreciate such a quick reply back! I suppose I just got really confused when the version was first: ldapjs@0.7.1 and then after I apply that pull, it's still that same version. Furthermore, several of the sub-modules have pretty old versions it appears ex: bunyan@0.22.1 -> bunyan@1.3.3.\r\n\r\nAppreciate the quick response!"}}