Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Login page after success authentication crash ( Illegal offset type ) #705

@netruner

Description

@netruner
  • Laravel Version: 5.2
  • Adldap2-Laravel Version: 5.1
  • PHP Version: 7.2.15
  • LDAP Type: ActiveDirectory

Description:

Login page after authentication crash on helpers.php line 360: Illegal offset type not redirect to page set in AuthController.php

protected $redirectTo = '/dashboard';

[2019-04-02 22:38:43] local.INFO: User 'firstname.lastname' has been successfully found for authentication.
[2019-04-02 22:38:43] local.INFO: User 'firstname.lastname' is being synchronized.
[2019-04-02 22:38:43] local.INFO: User 'firstname.lastname' has been successfully synchronized.
[2019-04-02 22:38:43] local.INFO: User 'firstname.lastname' is authenticating with username: 'CN= firstname.lastname,OU=IT,OU=ZD,OU=DYR,OU=USD,DC=ad,DC=compa,DC=pl'
[2019-04-02 22:38:43] local.INFO: User 'firstname.lastname' has successfully passed LDAP authentication.
[2019-04-02 22:38:43] local.INFO: User 'firstname.lastname' has been successfully logged in.
[2019-04-02 22:38:43] local.ERROR: ErrorException: Illegal offset type in /Users/netruner/developer/www/sflux/vendor/laravel/framework/src/Illuminate/Support/helpers.php:360

Whoops, looks like something went wrong.
1/1 ErrorException in helpers.php line 360: Illegal offset type

in helpers.php line 360
at HandleExceptions->handleError('2', 'Illegal offset type', '/Users/netruner/developer/www/sflux/vendor/laravel/framework/src/Illuminate/Support/helpers.php', '360', array('class' => object(User), 'results' => array())) in helpers.php line 360
at class_uses_recursive(object(User)) in BindsLdapUserModel.php line 55
at BindsLdapUserModel->canBind(object(User)) in BindsLdapUserModel.php line 27
at BindsLdapUserModel->handle(object(Login))
at call_user_func_array(array(object(BindsLdapUserModel), 'handle'), array(object(Login))) in Dispatcher.php line 347
at Dispatcher->Illuminate\Events\{closure}(object(Login))
at call_user_func_array(object(Closure), array(object(Login))) in Dispatcher.php line 221
at Dispatcher->fire('Illuminate\Auth\Events\Login') in SessionGuard.php line 470
at SessionGuard->fireLoginEvent(object(User), false) in SessionGuard.php line 455
at SessionGuard->login(object(User), false) in SessionGuard.php line 360
at SessionGuard->attempt(array('name' => 'firstname.lastname', 'password' => 'xxxxxxxxx'), false) in AuthenticatesUsers.php line 74
at AuthController->login(object(Request))

Steps To Reproduce:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions