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

caiobianchi created an issue. See original summary.

  • grahl committed 7d85e5e on 8.x-3.x
    Issue #2852668 by grahl: Provisioning from Drupal to LDAP not working
    
grahl’s picture

Priority: Critical » Major

Hi

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.

caiobianchi’s picture

Hi @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!

grahl’s picture

Status: Active » Fixed

Hi

Not a problem, thanks for your feedback, closing this issue since we have other one.

Status: Fixed » Closed (fixed)

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