Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi there,
I'm having a couple of issues with this module, which somehow I believe are co-related.
1. Provisioning from Drupal to LDAP - Synchronization Events aren't being saved. (section below /admin/config/people/ldap/user)
2. When testing these 2 event handlers. Both fail:
- On creation or sync of an LDAP entry when a Drupal account is created or updated. Only applied to accounts with a status of approved.
- On creation or sync of an LDAP entry when a user authenticates.
With the following error:
The website encountered an unexpected error. Please try again later.
Error: Call to a member function isAnonymous() on array in Drupal\ldap_user\Processor\LdapUserProcessor->provisionLdapEntry() (line 245 of modules/contrib/ldap/ldap_user/src/Processor/LdapUserProcessor.php).
Am I missing anything?
Comments
Comment #3
grahlHi
I believe one is fixed, the form made an assumption on users which is no longer relevant. There are possibly further issues with that section but it should no longer fail as before. The error should only be related to the form.
Can you please provide full stack traces for (or at least the last few calling function) until the second error occurs?
P.S.: Separate issues per problem are easiest to handle.
Comment #4
caiobianchi CreditAttribution: caiobianchi commentedHi @grahl
Thanks for the quick turnaround. And sorry for my poor bug reporting, I don't usually create issues here, so I'm not used to the etiquette.
I will create a separate issue for the failing tests. Thanks!
Comment #5
grahlHi
Not a problem, thanks for your feedback, closing this issue since we have other one.