Repository navigation
Conversation
f31bb9f to
6827b49
Compare
Code Review by QodoView medium (1)🟠 **Medium** 1. Automatic LDAP fallback has no test
|
trasher
left a comment
There was a problem hiding this comment.
Seem correct from a code point of view; and there is less code.
Change itself seem globally correct to me. Maybe should we make sure it still can work on a non compliant implementation?
I'm not sure I can. I only have, and have experience with, Active Directory and this is a core, hard-coded feature that doesn't seem to be able to be disabled. I think this is something we may only identify issues with after it is used in the wild with obscure LDAP servers that refuse to follow the LDAP spec(s) (much like email clients refusing to adhere to specs). |
Checklist before requesting a review
Description
Virtually every modern LDAP server natively supports paged results. It is an extension of LDAPv3 which has been around since 2000. There are only rare edge-cases where GLPI would need to handle non-paged results and this can be handled automatically by GLPI by requesting paged results, non-critically, and then checking if the server responds with a paged result or not.
If needed, we can re-introduce allowing admins to explicitly disable paging by treating a pagesize of 0 as disabled (critical true).