The paged LDAP query doesn't work - there are comments for it in the code too.

To reproduce:
- at server settings: enable 'Use LDAP Pagination' and set 'Pagination size limit' (e.g. 1000)

There will be no result for LDAP queries with php notices:
Undefined property: Drupal\ldap_servers\Entity\Server::$searchPageSize in Drupal\ldap_servers\Entity\Server->pagedLdapQuery()
Undefined property: Drupal\ldap_servers\Entity\Server::$searchPageStart in Drupal\ldap_servers\Entity\Server->pagedLdapQuery()
Undefined property: Drupal\ldap_servers\Entity\Server::$searchPageEnd in Drupal\ldap_servers\Entity\Server->pagedLdapQuery()

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

szato created an issue. See original summary.

grahl’s picture

Hi szato

Thanks for your patch, just two questions:

One, why did add the constructor which just calls the parent constructor? AFAIK that is called either way, as long as you do not define __construct, doesn't it?

Two, do paged queries work for you with the attached patch or is this an initial patch to fix the obvious errors? I do not have a test setup to simulate paged queries.

  • grahl committed 42bfefa on 8.x-3.x authored by szato
    Issue #2832461 by szato: LDAP Server pagination - pagedLdapQuery
    
grahl’s picture

Status: Needs review » Fixed

Looks good, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.