Skip to content

Update the cronUserTmpTable cron job

After discussion with @mward, we found out that for a very small amount of accounts, users don't get created in Drupal because they validated their account using the link that was sent in their inbox but did not login to accounts to actually create the Drupal user.

By clicking the link in their inbox, LDAP creates a user using the user's email and username. But since the user does not login, Drupal runs a cron job that deletes any records in the eclipsefdn_accounts_new_user table that are older then 2 days.

This creates a weird state where a user exists in LDAP but can't be created in Drupal.

I think we should update the cron job to look at LDAP first and if we find a record for users that don't have a Drupal user, we don't delete the record in the eclipsefdn_accounts_new_user table.

So far, Matt reported at least 2 users that were in that state in the past 2-3 weeks.