kanidm / ldap3

Rust LDAP3 Server Protocol Library
Mozilla Public License 2.0
53 stars 11 forks source link

Add support for unsupported controls #28

Closed nitnelave closed 1 year ago

nitnelave commented 1 year ago

We've run into an issue with a client sending extra controls with their request, that we don't care about but fail the query parsing: https://github.com/lldap/lldap/issues/301 The error is Unsupported control oid | o: 2.16.840.1.113730.3.4.2, and then Failed to parse ldapcontrol

Would there be a way to either add support for the controls, or add a "parse with unsupported controls as an extra return" method?

Firstyear commented 1 year ago

I think we add the control. This is from https://www.rfc-editor.org/rfc/rfc3296 which is the managedDSAIT control, It's sent to prevent referral chasing server side.

So I think we just add it (and in your case, ignore it) since you don't have referrals.