The cronjob related "Action to perform on Drupal account that no longer have a corresponding LDAP entry" fails.

I've found these issues :
1) Third step of the process is done outside the batch loop.
This way the third step only has the data available from the last iteration of the loop.
2) The entityfieldquery has : ->range(0, $ldap_user_conf->orphanedCheckQty - 1)
The second option is range is not an array index but the actual number of records to return

patch will follow..

Comments

thelmer’s picture

johnbarclay’s picture

Thanks. This is committed. Any followups and testing of this is greatly appreciated; the cron orphan functionality has not been tested at all (as your patch demonstrates).

johnbarclay’s picture

Issue summary: View changes
Status: Active » Closed (fixed)