Page MenuHomePhorge

PHP 8.1 "strlen(null)" exception for LDAP login without password
Closed, ResolvedPublic

Description

  1. PHP 8.3.9, Phorge at 903015312a0bf1efaee75bf2d48e0dedd66ae14a
  2. Try to locally set up an LDAP server to waste a few hours of your life, ideally fail to successfully set a password for your LDAP user
  3. Configure LDAP as an authentication method in Phorge
  4. Try to log in with your LDAP user via http://phorge.localhost/auth/login/ldap:self/
[2024-07-26 14:22:37] ERROR 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [/var/www/html/phorge/phorge/src/applications/auth/provider/PhabricatorLDAPAuthProvider.php:145]
arcanist(head=master, ref.master=84210cedc6ce), ava(head=wmf/stable, ref.master=d3f5a1c67bb4, ref.wmf/stable=0b414fb56fe3), phorge(head=master, ref.master=903015312a0b), translations(head=wmf/stable, ref.master=09fe573a932a, ref.wmf/stable=ad3c1bb2af60)
  #0 PhabricatorLDAPAuthProvider::processLoginRequest(PhabricatorAuthLoginController) called at [<phorge>/src/applications/auth/controller/PhabricatorAuthLoginController.php:42]
  #1 PhabricatorAuthLoginController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #2 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #3 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]
[2024-07-26 14:22:37] ERROR 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [/var/www/html/phorge/phorge/src/applications/auth/provider/PhabricatorLDAPAuthProvider.php:148]
arcanist(head=master, ref.master=84210cedc6ce), ava(head=wmf/stable, ref.master=d3f5a1c67bb4, ref.wmf/stable=0b414fb56fe3), phorge(head=master, ref.master=903015312a0b), translations(head=wmf/stable, ref.master=09fe573a932a, ref.wmf/stable=ad3c1bb2af60)
  #0 PhabricatorLDAPAuthProvider::processLoginRequest(PhabricatorAuthLoginController) called at [<phorge>/src/applications/auth/controller/PhabricatorAuthLoginController.php:42]
  #1 PhabricatorAuthLoginController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #2 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #3 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.