I got php errors when try to login via social_auth_facebook module with non-existing in ldap server user. Ldap returns:

Notice: Array to string conversion in Drupal\ldap_servers\Entity\Server->userUserNameToExistingLdapEntry() (line 1047 of .../ldap/ldap_servers/src/Entity/Server.php).
Drupal\ldap_servers\Entity\Server->userUserNameToExistingLdapEntry(NULL, 'ldap_user_prov_to_drupal') (Line: 61)
Drupal\ldap_servers\ServerFactory->getUserDataFromServerByIdentifier(NULL, 'base_ldap_server', 'ldap_user_prov_to_drupal') (Line: 81)
Drupal\ldap_servers\ServerFactory->getUserDataFromServerByAccount(Object, 'base_ldap_server', 'ldap_user_prov_to_drupal') (Line: 671)
ldap_user_user_login(Object)
call_user_func_array('ldap_user_user_login', Array) (Line: 402)
Drupal\Core\Extension\ModuleHandler->invokeAll('user_login', Array) (Line: 546)
user_login_finalize(Object) (Line: 571)
Drupal\social_auth_facebook\FacebookAuthUserManager->userLoginFinalize(Object) (Line: 227)
Drupal\social_auth_facebook\FacebookAuthUserManager->loginUser(Object) (Line: 163)
Drupal\social_auth_facebook\Controller\FacebookAuthController->returnFromFb()
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 574)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
call_user_func_array(Object, Array) (Line: 144)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 64)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 652)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Andriy Khomych created an issue. See original summary.

Andriy Khomych’s picture

Title: LDAP Servers:Php errors when try to login via social_auth_facebook » LDAP Servers: Php errors when try to login via social_auth_facebook
Andriy Khomych’s picture

Issue summary: View changes
Andriy Khomych’s picture

Assigned: Unassigned » Andriy Khomych
Andriy Khomych’s picture

Andriy Khomych’s picture

Status: Active » Needs review
grahl’s picture

Assigned: Andriy Khomych » grahl
Issue tags: -login, -social_auth_facebook

  • grahl committed 2e7bd71 on 8.x-3.x
    Issue #2842368 by Andriy Khomych, grahl: LDAP Servers: Php errors when...

  • grahl committed 080cb4e on 8.x-3.x
    Issue #2842368 by Andriy Khomych, grahl: LDAP Servers: Php errors when...
grahl’s picture

Status: Needs review » Fixed

Thanks for your patch Andriy, I fixed that a bit earlier, please report back if this isn't fixed with current DEV for you.

Andriy Khomych’s picture

HI grah
You are welcome, when I tested on dev the problem was exists(last week). Hope in current DEV it is fixed. Regards

Status: Fixed » Closed (fixed)

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