adldap / adLDAP

adLDAP is a PHP class that provides LDAP authentication and integration with Active Directory.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error on Composer Installation

AliAlGallaf opened this issue · comments

Upon trying to install adldap using Composer on a Laravel installation, I'm getting the below error.

C:\wamp\www\laravel>composer require adldap/adldap
Using version dev-master for adldap/adldap
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - adldap/adldap dev-master requires ext-ldap * -> the requested PHP extension ldap is missing from your system.
    - adldap/adldap dev-master requires ext-ldap * -> the requested PHP extension ldap is missing from your system.
    - Installation request for adldap/adldap dev-master -> satisfiable by adldap/adldap[dev-master].


Installation failed, reverting ./composer.json to its original content.

Seems like you don't have the PHP LDAP extension installed and/or enabled. As you use WAMP on windows, you need to find your php.ini and uncomment the line

;php_ldap.dll

in the extensions section.See http://php.net/manual/en/install.windows.extensions.php for more details.

Just checked php.ini file and php_ldap.dll is not commented out. I have been using adLDAP on other Laravel projects on the same server. I have installed adLDAP multiple times before with no issues, this is the first time that this error is appearing.

Does the LDAP access work if you install the packages witch composer require --ignore-platform-reqs?
https://getcomposer.org/doc/03-cli.md#require

It worked but composer did not pull ext-ldap as it did when I previously used to install adLDAP.

Composer was using a different PHP version that did not have LDAP enabled.