Drupal mappings to provision fields from LDAP

Created on 26 May 2022, about 2 years ago
Updated 26 January 2024, 5 months ago

Problem/Motivation

Cannot edit LDAP authenticated users in Admin > People. Any changes generate an error on save.
Drupal mappings tab in LDAP module is unavailable. Trying to access it produce same error as trying to save change to user records.
Drupal is 9.3.3, LDAP is 8.x-4.3 using a service account bind to access Active Directory for LDAP

Steps to reproduce

In Admin > People attempt to edit a user who authenticates to the site via LDAP
Make a change (eg add a role, correct a misspelling) and press Save
Get "website encountered unexpected error"
Check log for error messages and find these two errors:

Undefined index: prov_events in Drupal\ldap_user\FieldProvider->loadUserDefinedMappings() (line 157 of /var/www/html/drupal/modules/contrib/ldap/ldap_user/src/FieldProvider.php)

and

TypeError: Argument 5 passed to Drupal\ldap_servers\Mapping::__construct() must be of the type array, null given, called in /var/www/html/drupal/modules/contrib/ldap/ldap_user/src/FieldProvider.php on line 159 in Drupal\ldap_servers\Mapping->__construct() (line 114 of /var/www/html/drupal/modules/contrib/ldap/ldap_servers/src/Mapping.php)

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Closed: outdated

Version

4.3

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States bmenk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024