Skip to content
Snippets Groups Projects
Commit 4e255230 authored by Steven Ayers's avatar Steven Ayers
Browse files

Issue #3357811 by bluegeek9, detroz: Error on the "Test LDAP User...

Issue #3357811 by bluegeek9, detroz: Error on the "Test LDAP User Functionality for a given user" interface
parent 84a6b3e2
No related branches found
No related tags found
1 merge request!60Issue #3357811 by bluegeek9: Error on the "Test LDAP User Functionality for a given user" interface
Pipeline #48080 passed with warnings
......@@ -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';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment