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.

Comments

Kosa Ilma created an issue. See original summary.

kosa ilma’s picture

StatusFileSize
new2.98 KB

I have created a patch for fixing it.

grahl’s picture

Status: Active » Needs review

  • grahl committed 8e9a646 on 8.x-4.x authored by Kosa Ilma
    Issue #3099466 by Kosa Ilma: Missing () for some...
grahl’s picture

Status: Needs review » Fixed

Thanks! Not sure how I missed that one...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.