Add support for 3rd party Password Generators like Genpass

Created on 10 November 2023, 8 months ago
Updated 11 November 2023, 8 months ago

Problem/Motivation

TypeError: Drupal\ldap_user\Processor\DrupalUserProcessor::__construct(): Argument #15 ($passwordGenerator) must be of type Drupal\Core\Password\DefaultPasswordGenerator, Drupal\genpass\GenpassPasswordGenerator given, called in /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php

Steps to reproduce

Install LDAP users and Genpass. Then, click on the "Debug LDAP synchronization events" button.

Proposed resolution

Use an interface instead of a the class. Use \Drupal\Core\Password\PasswordGeneratorInterface instead of Drupal\Core\Password\DefaultPasswordGenerator

This will allow for other Password Generators to be used other than Core. This would allow integration with Genpass → .

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Fixed

Version

4.5

Component

Code

Created by

🇮🇳India shalini_jha

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

Comments & Activities

Production build 0.69.0 2024