Add helpers for root DSE and definition parsing
Add helpers for root DSE and definition parsing
Activity
- Côme Chilliet assigned to @cchilliet
assigned to @cchilliet
- Côme Chilliet created merge request !5 (merged) to address this issue
created merge request !5 (merged) to address this issue
- Côme Chilliet mentioned in merge request !5 (merged)
mentioned in merge request !5 (merged)
- Côme Chilliet mentioned in commit fc2f9f69
mentioned in commit fc2f9f69
- bmortier added PJ1802-0188 label
added PJ1802-0188 label
- bmortier changed milestone to %FusionDirectory 1.4
changed milestone to %FusionDirectory 1.4
- Author Reporter
This is working, the only issue is that the definition parsing is not strict, meaning it will accept definitions with an array value where only one value is expected, or where some mandatory field is missing. One of the reason for this is that determining what is mandatory and what can or cannot be multivaluated would require a lot of RFC reading and testing.
This issue means that calling code cannot make any assertion about the structure of the result array, it could have no OID field or an array of values in OID field for instance. This makes strong typing analysis by phpstan harder.
On the plus side this non-strict parsing allows parsing objectClass and attribute definitions with the same function, and even other LDAP types may be parsed the same (equality rules and such).
- bmortier assigned to @tdockx and unassigned @cchilliet
assigned to @tdockx and unassigned @cchilliet
- bmortier changed due date to May 16, 2022
changed due date to May 16, 2022
- bmortier removed due date
removed due date
- bmortier closed
closed