Skip to content
Snippets Groups Projects

Issue #3357811 by bluegeek9: Error on the "Test LDAP User Functionality for a given user" interface

Merged Issue #3357811 by bluegeek9: Error on the "Test LDAP User Functionality for a given user" interface
Merged Steven Ayers requested to merge issue/ldap-3357811:3357811-error-on-the into 8.x-4.x
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -189,8 +189,9 @@ final class LdapUserTestForm extends FormBase implements LdapUserAttributesInter
->loadByProperties(['name' => $username]);
$existingAccount = $existingAccount ? reset($existingAccount) : FALSE;
if ($existingAccount) {
$user_id = (int) $existingAccount->id();
$results['user entity (before provisioning or syncing)'] = $existingAccount->toArray();
$results['User Authmap'] = $this->externalAuth->get($existingAccount->id(), 'ldap_user');
$results['User Authmap'] = $this->externalAuth->get($user_id, 'ldap_user');
}
else {
$results['User Authmap'] = 'No authmaps available. Authmaps only shown if user account exists beforehand';
Loading