Page MenuHomePhabricator

LDAP module doesn't check if PHP LDAP library is actually installed before attempting to call ldap_connect()
Closed, DuplicatePublic

Description

When trying to add an external account with LDAP, the LDAP module pukes because it didn't detect that I hadn't thought to install php5-ldap. Simple 'workaround' was to install php5-ldap. The LDAP module should not let itself get enabled unless the dependencies are installed, though. Maybe tie it into the (insanely useful) "potential issues" helper that popped up the first time I pulled it up?

Here's the message it thew at me:

>>> UNRECOVERABLE FATAL ERROR <<<
 
Call to undefined function ldap_connect()
 
/usr/local/bin/libphutil/src/auth/PhutilLDAPAuthAdapter.php:308
 
 
┻━┻ ︵ ¯\_(ツ)_/¯ ︵ ┻━┻

Event Timeline

Krampus raised the priority of this task from to Needs Triage.
Krampus updated the task description. (Show Details)
Krampus added projects: LDAP, Phabricator.
Krampus added a subscriber: Krampus.

✘ Merged into T3347.