Coder Social home page Coder Social logo

LDAP login failing on 3.10.X about eventum HOT 10 CLOSED

areis422 avatar areis422 commented on June 20, 2024
LDAP login failing on 3.10.X

from eventum.

Comments (10)

glensc avatar glensc commented on June 20, 2024

The error comes from here:

Need fuller trace of why this is happening.

Add such debug code to get it:

            $container = static::getKernel()->getContainer();
            if (!$container) {
                $e = new \Exception();
                error_log($e->getTraceAsString());
            }

from eventum.

areis422 avatar areis422 commented on June 20, 2024

Here's the error:

[Wed Sep 08 08:28:51.247700 2021] [proxy_fcgi:error] [pid 879497:tid 139643479652096] [client SOMEIP:15734] AH01071: Got error 'PHP message: 
#0 /var/www/eventum-3.10.6/src/Auth/Adapter/LdapAdapter.php(68): Eventum\\ServiceContainer::getLogger()
#1 [internal function]: Eventum\\Auth\\Adapter\\LdapAdapter->__construct()
#2 /var/www/eventum-3.10.6/src/Auth/Adapter/Factory.php(34): ReflectionClass->newInstanceArgs()
#3 /var/www/eventum-3.10.6/src/Auth/Adapter/ChainAdapter.php(29): Eventum\\Auth\\Adapter\\Factory::create()
#4 [internal function]: Eventum\\Auth\\Adapter\\ChainAdapter->__construct()
#5 /var/www/eventum-3.10.6/src/Auth/Adapter/Factory.php(34): ReflectionClass->newInstanceArgs()
#6 /var/www/eventum-3.10.6/lib/eventum/class.auth.php(473): Eventum\\Auth\\Adapter\\Factory::create()
#7 /var/www/eventum-3.10.6/lib/eventum/class.auth.php(99): Auth::getAuthBackend()
#8 /var/www/eventum-3.10.6/src/Controller/ListController.php(81): Auth::checkAuthentication()
#9 /var/www/eventum-3.10.6/src/Controller/BaseController.php(80): Eventum\\Controller\\ListController->canAccess()
#10 /var/www/eventum-3.10.6/htdocs/list.php(17): Eventum\\Controlle...PHP message: [2021-09-08 08:28:50] app.CRITICAL: Unable to instantiate auth adapter {"exception":"[object] (Error(code: 0): Call to a member function get() on null at /var/www/eventum-3.10.6/src/ServiceContainer.php:93)"} {"file":"/var/www/eventum-3.10.6/lib/eventum/class.auth.php","line":476,"class":"Auth","function":"getAuthBackend","memory_peak_usage":"4 MB","memory_usage":"4 MB","url":"/list.php","ip":"SOMEIP","http_method":"GET","server":"URL","referrer":"https://URL/login.php"}', referer: https://URL/login.php

from eventum.

vladsf avatar vladsf commented on June 20, 2024

I guess src/Auth/Adapter/LdapAdapter.php is borken since 3.10.2 #898

from eventum.

areis422 avatar areis422 commented on June 20, 2024

Bump: Any update?

from eventum.

vladsf avatar vladsf commented on June 20, 2024

@areis422 I tried to fix myself but failed so I changed to $this->logger = ServiceContainer::getLogger(); and continued.

from eventum.

areis422 avatar areis422 commented on June 20, 2024

Bump @glensc

from eventum.

shiyamk avatar shiyamk commented on June 20, 2024

Thank you. it worked

from eventum.

areis422 avatar areis422 commented on June 20, 2024

@glensc This issue still exists in v3.10.9

from eventum.

areis422 avatar areis422 commented on June 20, 2024

Any update on this @glensc ?

from eventum.

areis422 avatar areis422 commented on June 20, 2024

Still currently exists in v3.10.12. Will this be released as part of v3.10.13?

I manually added the fix from #1482 to src/ServiceContainer.php and can confirm it seems to work. Thank you @glensc for all the work you guys do!

from eventum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.