Problem/Motivation
When I tried to sync a Drupal user from an LDAP server, didn't worked.
I got in watchdog:
Notice: Undefined property: Drupal\ldap_servers\Entity\Server::$getAuthenticationNameAttribute in Drupal\ldap_servers\LdapBaseManager->queryLdapForUsername() (line 450 of /var/www/html/web/modules/contrib/ldap/ldap_servers/src/LdapBaseManager.php) #0 /var/www/html/web/core/includes/bootstrap.inc(587): _drupal_error_handler_real(8, 'Undefined prope...', '/var/www/html/w...', 450, Array)
Proposed resolution
Since getAuthenticationNameAttribute is a method we need to add paranthesis.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3099466-fixing-missing-paranthesis-2.patch | 2.98 KB | kosa ilma |
Comments
Comment #2
kosa ilma commentedI have created a patch for fixing it.
Comment #3
grahlComment #5
grahlThanks! Not sure how I missed that one...