Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LDAP cannot be installed #230

Open
ajstanley opened this issue Feb 23, 2022 · 5 comments
Open

LDAP cannot be installed #230

ajstanley opened this issue Feb 23, 2022 · 5 comments

Comments

@ajstanley
Copy link
Contributor

To run the LDAP module, PHP's LDAP extension must be enabled on the server. Unfortunately, Alpine doesn't come with apt-get and there is no way to add the module to the container.

@nigelgbanks kindly added this module to the underlying nginx container, but those changes have not propagated down into the current containers.

Ideally, we'd be able to replace the Drupal container on a running site with the PHP LDAP extension available.

@nigelgbanks
Copy link
Contributor

@ajstanley If you set TAG=25edadbae83e45bafedeff39eebe0b16664334e4 you can use the image with LDAP

@ajstanley
Copy link
Contributor Author

Thanks @nigelgbanks! The php -m shows ldap now, but installing the ldap module brings a world of pain -

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - drupal/ldap 4.x-dev is an alias of drupal/ldap dev-4.x and thus requires it to be installed too.
    - drupal/ldap[dev-4.x, 4.3.0] require grahl/ldap ^5.2 -> satisfiable by grahl/ldap[v5.2.0-BETA1, ..., 5.2.x-dev].
    - symfony/security v4.4.37 conflicts with grahl/ldap v5.2.0.1.
    - symfony/security v4.4.37 conflicts with grahl/ldap v5.2.0.
    - symfony/security v4.4.37 conflicts with grahl/ldap v5.2.0-RC2.
    - symfony/security v4.4.37 conflicts with grahl/ldap v5.2.0-RC1.
    - symfony/security v4.4.37 conflicts with grahl/ldap v5.2.0-BETA3.
    - symfony/security v4.4.37 conflicts with grahl/ldap v5.2.0-BETA2.
    - symfony/security v4.4.37 conflicts with grahl/ldap v5.2.0-BETA1.
    - symfony/security v4.4.37 conflicts with grahl/ldap 5.2.x-dev.
    - islandora/crayfish-commons 2.0.0 requires symfony/security ^3.4 || ^4.4 -> satisfiable by symfony/security[v4.4.37].
    - islandora/islandora 2.1.1 requires islandora/crayfish-commons ^2 -> satisfiable by islandora/crayfish-commons[2.0.0].
    - islandora/islandora_defaults 2.x-dev requires islandora/islandora ^2 -> satisfiable by islandora/islandora[2.1.1].
    - islandora/islandora_install_profile_demo dev-main requires islandora/islandora_defaults 2.x-dev -> satisfiable by islandora/islandora_defaults[2.x-dev].
    - islandora/islandora_install_profile_demo is locked to version dev-main and an update of this package was not requested.
    - Root composer.json requires drupal/ldap ^4.3 -> satisfiable by drupal/ldap[4.3.0, 4.x-dev (alias of dev-4.x)].

@ajstanley
Copy link
Contributor Author

Also, this image will not run unless the matomo module is uninstalled.
2022/02/24 14:02:01 [error] 1006#1006: *1 FastCGI sent in stderr: "PHP message: TypeError: in_array() expects parameter 2 to be array, null given in /var/www/drupal/web/modules/contrib/matomo/matomo.module on line 66 #0 /var/www/drupal/web/modules/contrib/matomo/matomo.module(66): in_array()

@nigelgbanks
Copy link
Contributor

nigelgbanks commented Feb 24, 2022

Also, this image will not run unless the matomo module is uninstalled.
...
parameter 2 to be array, null given in /var/www/drupal/web/modules/contrib/matomo/matomo.module on line 66

https://git.drupalcode.org/project/matomo/-/blob/dc9773fdc963c97122379884e191ec3056018687/matomo.module#L66

  // Early return if status matches configured values.
  $disabled_status_codes = $config->get('status_codes_disabled');
  if (in_array($status, $disabled_status_codes)) {
    return;
  }

That looks some other aspect of the site that is messed up perhaps an install from configuration which used an earlier version of matomo is to blame?

installing the ldap module brings a world of pain

Looks like grahl/ldap 5.x cannot be used with Drupal 9 as it conflicts (as it uses symphony 4.4). 4.4.17 is the latest version that could be used. Though the drupal module for ldap explicitly requires 5.2. Ah this normally wouldn't be a problem but islandora/crayfish-commons requires symfony/security which I assume normally doesn't get installed on Drupal sites.

@ajstanley
Copy link
Contributor Author

It may all be moot - I was able to install another LDAP module - composer require 'drupal/ldap_auth:^1.26' without any issues. I'm testing it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants