Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Expected 0x2: got 0x63 #769

Closed
hlatki01 opened this issue Nov 8, 2021 · 2 comments
Closed

Expected 0x2: got 0x63 #769

hlatki01 opened this issue Nov 8, 2021 · 2 comments

Comments

@hlatki01
Copy link

hlatki01 commented Nov 8, 2021

Rocket.chat use node-ldapjs library to work with LDAP protocol, I'm getting this error and I have no clue what could be wrong:

{"level":50,"time":"2021-11-05T05:59:24.911Z","pid":1036,"hostname":"node47660-env-0554189.mg01.paas.massivegrid.net","name":"LDAP","section":"Connection","err":{"type":"VError","message":"Parser error for 3__ldap://185.85.241.129:389: Expected 0x2: got 0x63","stack":"VError: Parser error for 3__ldap://185.85.241.129:389: Expected 0x2: got 0x63
at Parser.onParseError (/app/bundle/programs/server/npm/node_modules/ldapjs/lib/client/client.js:890:26)
at Parser.emit (events.js:314:20)
at Parser.EventEmitter.emit (domain.js:483:12)
at Parser.write (/app/bundle/programs/server/npm/node_modules/ldapjs/lib/messages/parser.js:103:10)
at Socket.onData (/app/bundle/programs/server/npm/node_modules/ldapjs/lib/client/client.js:873:22)
at Socket.emit (events.js:314:20)
at Socket.EventEmitter.emit (domain.js:483:12)
at addChunk (_stream_readable.js:297:12)
at readableAddChunk (_stream_readable.js:272:9)
at Socket.Readable.push (_stream_readable.js:213:10)
at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
at TCP.callbackTrampoline (internal/async_hooks.js:126:14)","jse_shortmsg":"Parser error for 3__ldap://185.85.241.129:389","jse_cause":{"type":"Error","message":"Expected 0x2: got 0x63","stack":"InvalidAsn1Error: Expected 0x2: got 0x63
at newInvalidAsn1Error (/app/bundle/programs/server/npm/node_modules/asn1/lib/ber/errors.js:7:13)
at Reader._readTag (/app/bundle/programs/server/npm/node_modules/asn1/lib/ber/reader.js:230:11)
at Reader.readInt (/app/bundle/programs/server/npm/node_modules/asn1/lib/ber/reader.js:146:15)
at Parser.getMessage (/app/bundle/programs/server/npm/node_modules/ldapjs/lib/messages/parser.js:116:25)
at Parser.write (/app/bundle/programs/server/npm/node_modules/ldapjs/lib/messages/parser.js:96:20)
at Socket.onData (/app/bundle/programs/server/npm/node_modules/ldapjs/lib/client/client.js:873:22)
at Socket.emit (events.js:314:20)
at Socket.EventEmitter.emit (domain.js:483:12)
at addChunk (_stream_readable.js:297:12)
at readableAddChunk (_stream_readable.js:272:9)
at Socket.Readable.push (_stream_readable.js:213:10)
at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
at TCP.callbackTrampoline (internal/async_hooks.js:126:14)","name":"InvalidAsn1Error"},"jse_info":{},"name":"VError"},"msg":"Parser error for 3__ldap://185.85.241.129:389: Expected 0x2: got 0x63"}

@UziTech
Copy link
Member

UziTech commented Nov 8, 2021

InvalidAsn1Error: Expected 0x2: got 0x63

That usually means something received the wrong type. The types at https://ldap.com/ldapv3-wire-protocol-reference-asn1-ber/ seem to indicate it was looking for an Integer but received a Search Request Protocol Op

@jsumners
Copy link
Member

👋

On February 22, 2023, we released version 3 of this library. As a result, we are closing this issue/pull request.

Please see issue #839 for more information, including how to proceed if you feel this closure is in error.

@ldapjs ldapjs locked as resolved and limited conversation to collaborators Feb 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants