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
panicked at 'message id', src/protocol.rs:85:13 #46
Comments
On first glance, that looks like a Notice of Disconnection: the first tag is an ASN.1 integer with value 0. Structurally, that would be a Message ID in the message envelope. Which is somehow not recognized by the parser. What kind of server are you talking to? |
It is an Active Directory running on a Windows Server 2019 |
Ok, now please print the tags on line 61 of |
This is what it is printed before
If I looked correctly, there is one more StructureTag at the end (compared to what it is printed right before the panic): Thanks a lot for your quick response |
Do we have something special to close a connection ? Here is what I do :
The task spawned with Thank you again |
Nothing more should be necessary. What I suspect from the tags printout is that AD is incorrectly encoding the Notice of Disconnection, putting the last
and post the output. |
Here is the output |
Thanks, now I'm almost completely convinced that it's an AD bug (I'll try to coax a Notice of Disconnection from OpenLDAP to confirm). If it is, good luck getting it fixed on the AD side, I guess 😉 I'll try to make a workaround sometime later. |
Thank you for the information. And why I didn't have that issue with the previous version of ldap3 ? The parser was built in a different way ? Anyway. Do you have an idea to avoid that crash quickly ? Everything works well with the new ldap3 alpha, except that panic that I would like to remove. Thank you for your help ! |
The previous parser would also have choked on this kind of message. Perhaps the message never had actually reached the decoder because of internal Tokio differences. Try the |
Awesome, it works well. Thank you very much for your help, your time, I really appreciate !!! |
Hi,
I am using an async connection. I got a panic "message id" returned in protocol.rs.
I printed the tags right before and I had :
Any idea ? I'm still trying to figure it out, but if you have an idea, let me know.
Thank for your help
The text was updated successfully, but these errors were encountered: