Error on the "Test LDAP User Functionality for a given user" interface

Created on 3 May 2023, almost 2 years ago
Updated 11 November 2023, about 1 year ago

Problem/Motivation

I've an error when I'm testing the option "On sync to Drupal user create or update. Requires a server with binding method of "Service Account Bind" or "Anonymous Bind"" with an existing user:

TypeError: Drupal\externalauth\Authmap::get(): Argument #1 ($uid) must be of type int, string given, called in \modules\contrib\ldap\ldap_user\src\Form\LdapUserTestForm.php on line 193 in Drupal\externalauth\Authmap->get() (line 57 of modules\contrib\externalauth\src\Authmap.php)

Proposed resolution

Like the other Drupal\externalauth\Authmap::get() calls in the module, cast the variable to an int

πŸ“Œ Task
Status

Fixed

Version

4.3

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium detroz

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

Comments & Activities

Production build 0.71.5 2024