- php-ldap on Debian 10 (Buster)
- 2. Uninstall / Remove php-ldap package
- 3. Details of php-ldap package
- 4. References on Debian 10 (Buster)
- 5. The same packages on other Linux Distributions
- Php ldap install debian
- User Contributed Notes 14 notes
- php-ldap on Debian 11 (Bullseye)
- 2. Uninstall / Remove php-ldap package
- 3. Details of php-ldap package
- 4. References on Debian 11 (Bullseye)
- 5. The same packages on other Linux Distributions
- How To Install php-ldap on Debian 9
- What is php-ldap
- Install php-ldap Using apt-get
- Install php-ldap Using apt
- Install php-ldap Using aptitude
- How To Uninstall php-ldap on Debian 9
- Uninstall php-ldap And Its Dependencies
- Remove php-ldap Configurations and Data
- Remove php-ldap configuration, data, and all of its dependencies
- Dependencies
- References
- Summary
php-ldap on Debian 10 (Buster)
Please follow the guidelines below to install php-ldap package:
2. Uninstall / Remove php-ldap package
Please follow the steps below to uninstall php-ldap package:
3. Details of php-ldap package
Package: php-ldap
Source: php-defaults (92+0~20220117.43+debian10~1.gbpe0d14e)
Version: 2:8.1+92+0~20220117.43+debian10~1.gbpe0d14e
Architecture: all
Maintainer: Debian PHP Maintainers
Installed-Size: 14
Depends: php-common, php8.1-ldap
Priority: optional
Section: php
Filename: pool/main/p/php-defaults/php-ldap_8.1+92+0~20220117.43+debian10~1.gbpe0d14e_all.deb
Size: 7420
SHA256: 5a772d9d1aae71b5b00b013567e4e67a0a51154b04177308662b9172b900921e
SHA1: ffa5eef9276887936efcd1ca42e6402bda1685d1
MD5sum: 2c310c0fcfabadbc1d28a55508206b58
Description: LDAP module for PHP [default]
This package provides a LDAP module for PHP.
.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.
.
This package is a dependency package, which depends on Debian’s default
PHP version (currently 8.1).
Description-md5: 71a1b092057ff77f251e7f207c8eafc5
Package: php-ldap
Source: php-defaults (69)
Version: 2:7.3+69
Installed-Size: 12
Maintainer: Debian PHP Maintainers
Architecture: all
Depends: php-common, php7.3-ldap
Description: LDAP module for PHP [default]
Description-md5: 691b2ee018df622c62eccc97ad7376da
Section: php
Priority: optional
Filename: pool/main/p/php-defaults/php-ldap_7.3+69_all.deb
Size: 5988
MD5sum: 13deb5b9de0544da1d1dab2b0336ad45
SHA256: 84aa69cb57e24588d2369a4728de2eea937c8c37f4082caa7d0128fd1eb0f5e8
4. References on Debian 10 (Buster)
lmarbles (1.0.8-0.2)
libgraphite2-dev (1.3.13-7)
libghc-vector-space-points-prof (0.2.1.2-6+b1)
libgfal-srm-ifce1 (1.24.3-1+b1)
fusiondirectory-plugin-repository (1.2.3-4+deb10u1)
splint-data (1:3.1.2+dfsg-1)
ronn (0.8.0-2+deb10u1)
ddclient (3.8.3-1.1)
gcc-8-plugin-dev-m68k-linux-gnu (8.3.0-2cross2)
wmwork (0.2.6-2+b1)
node-babel-template (6.26.0+dfsg-3)
pd-kollabs (2~repack-2)
libphp-phpmailer (6.0.6-0.1)
r-cran-rcppprogress (0.4.1-1)
libgnat-8-ppc64el-cross (8.3.0-2cross1)
libasr-dev (1.0.2-2)
5. The same packages on other Linux Distributions
php-ldap (2:8.1+92+ubuntu18.04.1+deb.sury.org+2) Ubuntu 18.04 LTS (Bionic Beaver)
php-ldap (1:7.0+35ubuntu6.1) Ubuntu 16.04 LTS (Xenial Xerus)
php-ldap (2:8.0+85+ubuntu21.10.1+deb.sury.org+1) Ubuntu 21.10 (Impish Indri)
php-ldap (2:8.1+92+ubuntu22.04.1+deb.sury.org+1) Ubuntu 22.04 LTS (Jammy Jellyfish)
Php ldap install debian
Поддержка LDAP в PHP не доступна по умолчанию. Для активации нужно использовать опцию —with-ldap[=DIR] при компиляции PHP, где DIR — это каталог установки базы LDAP. Для включения поддержки SASL, убедитесь что использована опция —with-ldap-sasl[=DIR], и что sasl.h существует в системе.
Замечание: Примечание для пользователей Win32
Для работы этого модуля системной переменной Windows PATH должны быть доступны DLL -файлы. Чтобы узнать как этого достичь, обратитесь к разделу FAQ «Как добавить мою директорию с PHP в переменную Windows PATH». Хотя копирование DLL-файлов из директории PHP в системную папку Windows также решает проблему (потому что системная директория по умолчанию находится в переменной PATH ), это не рекомендуется. Этому модулю требуются следующие файлы в переменной PATH : libeay32.dll и ssleay32.dll , либо, начиная с OpenSSL 1.1, libcrypto-*.dll и libssl-*.dll .
Для того чтобы использовать библиотеки Oracle LDAP, должны быть установлены надлежащие параметры окружающей среды Oracle.
User Contributed Notes 14 notes
I found not only «Versions before PHP 4.3.0 additionally require libsasl.dll.».
If you use php-5.3.3-Win32-VC9-x86 or later Versions that
It’s require libsasl.dll.
Running under Windows & Apache 2.2.8
PHP file is download from http://windows.php.net/downloads/releases/archives/
When I use php-5.2.x-Win32-VC6-x86 and php-5.3.x-Win32-VC6-x86
1.just uncomment extension=php_ldap.dll in php.ini
2.Restart apache,it’s ok
When I use php-5.3.x-Win32-VC9-x86 and php-5.4.x-Win32-VC9-x86
1.just uncomment extension=php_ldap.dll in php.ini
2.Restart apache,always fail.
(only php-5.3.1-Win32-VC9-x86 & php-5.3.2-Win32-VC9-x86 is ok. )
2.copy libsasl.dll to [apache folder]\bin
3.Restart apache,it’s ok
On newer versions of Windows and Windows Server, if you’ve installed PHP from the Microsoft Web Platform Installer (PI) then all you have to do is add extension=php_ldap.dll to the extensions section and restart IIS.
If using a debian machine (debian or ubuntu variants) just do apt-get install php5-ldap, that’s all to get ldap work on php. No need to get sources, try to compiling them and so on.
OCI client from Oracle distributes un ldap.h which may collision with the SO ldap.h.
You can, remove the Oracle ldap.h and build or configure php without oci8 and then add OCI8 later as a shared extension.
This latter step is easiest using PECL: pecl install oci8. You will then need to add ‘extension=oci8.so’ to your php.ini.
If you’re running on Windows XP with Apache, and you installed PHP 5 from the windows installer rather than the full zipped version — you may not have the php_ldap.dll file.
I had to follow the steps above, making sure PHP was added to my Windows Path, adding the 2 dll files to the system32 directory, also making sure the php.ini extensions directory was set correctly (in my case: C:\Program Files\PHP\ext).
Still was a getting a message about not being able to locate the «php_lamp.dll» file. I finally went back, downloaded the full .zip file of latest PHP version, and that missing dll file is included there — along with many others.
Remember to restart Apache server after you do all this.
To enable PHP LDAP for IIS, I installed PHP Manager which integrates with IIS. Open this up and you can enable/disable extensions. Enable php_ldap.dll and it works straight away.
The easiest way to install ldap extension on Ubuntu 12.04 is:
sudo apt-get install php5-ldap
Also don’t forget to laod the extension.
I can confirm Frank’s note (made 1 year ago, see below) about requirement of «libsasl.dll» library. I have «PHP Version 5.4.7» and my Apache fails to restart with error saying, that «libsasl.dll» is missing, once I enable php_ldap.dll extension in PHP configuration.
What is even more strange, I DO HAVE this library (along with required «ssleay32.dll» and «libeay32.dll» in my PHP’s directory and my PHP’s directory IS listed in Windows’ PATH variable and even so, I’m facing the problem of Apache failing to start.
The only workaround, I found is to copy «libsasl.dll» to «system32» system directory. Solution, that PHP documentation here discourages.
So, to summarize, section «Note to Win32 users» is twice wrong. You DO have to have «libsasl.dll» directory and you have to place it in your system folder.
Running under IIS, I did not find the need to download and compile libraries.
1. Edit PHP.INI (which should be in windows directory)
2. Uncomment the line extension=php_ldap.dll
3. Restart IIS
Running under IIS, I found php_ldap would not load even though d:\php contained libeay32.dll and ssleay32.dll, and d:\php was in the PATH environment variable.
I finally tracked this down to the position of d:\php in the PATH. If d:\php is near the head of the PATH, everything works fine. If d:\php is near the end of the PATH, apparently it gets ignored by IIS (even though it works fine from the command line, e.g., with php -m). Have no idea why this is.
Runing in IIS 8.5 on Server 2012 R2 I tried to install PHP Manager same as nesbittp needed to install Dot Net 3.5 and HTTP Activation first then installed without issue.
php-ldap on Debian 11 (Bullseye)
In this section, we are going to explain the necessary steps to install php-ldap package:
2. Uninstall / Remove php-ldap package
Here is a brief guide to show you how to uninstall php-ldap package:
3. Details of php-ldap package
Package: php-ldap
Source: php-defaults (92+0~20220117.43+debian11~1.gbpe0d14e)
Version: 2:8.1+92+0~20220117.43+debian11~1.gbpe0d14e
Architecture: all
Maintainer: Debian PHP Maintainers
Installed-Size: 14
Depends: php-common, php8.1-ldap
Priority: optional
Section: php
Filename: pool/main/p/php-defaults/php-ldap_8.1+92+0~20220117.43+debian11~1.gbpe0d14e_all.deb
Size: 7424
SHA256: ed7b6ada4c3f48b550777edb307c059df174b5778d8febcd0c3610b2160f77e2
SHA1: 8d884b7177e838ebe31147ed2e972b39742bca65
MD5sum: 75ba7555a79dfcb549677e5dca329a18
Description: LDAP module for PHP [default]
This package provides a LDAP module for PHP.
.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.
.
This package is a dependency package, which depends on Debian’s default
PHP version (currently 8.1).
Description-md5: 71a1b092057ff77f251e7f207c8eafc5
Package: php-ldap
Source: php-defaults (76)
Version: 2:7.4+76
Installed-Size: 13
Maintainer: Debian PHP Maintainers
Architecture: all
Depends: php-common, php7.4-ldap
Description: LDAP module for PHP [default]
Description-md5: 6075d6be9bd5f375194e0983bcc461d4
Section: php
Priority: optional
Filename: pool/main/p/php-defaults/php-ldap_7.4+76_all.deb
Size: 6364
MD5sum: 208c17f064c1c016cad5140e83523ffa
SHA256: d96069ed9fb94cf380463a8aaad5e09f0b9ae90dc1b34421b355f4d5c3067f7b
4. References on Debian 11 (Bullseye)
5. The same packages on other Linux Distributions
php-ldap (2:8.1+92+ubuntu18.04.1+deb.sury.org+2) Ubuntu 18.04 LTS (Bionic Beaver)
php-ldap (1:7.0+35ubuntu6.1) Ubuntu 16.04 LTS (Xenial Xerus)
php-ldap (2:8.0+85+ubuntu21.10.1+deb.sury.org+1) Ubuntu 21.10 (Impish Indri)
php-ldap (2:8.1+92+ubuntu22.04.1+deb.sury.org+1) Ubuntu 22.04 LTS (Jammy Jellyfish)
php-ldap (2:8.1+92+0~20220117.43+debian10~1.gbpe0d14e) Debian 10 (Buster)
How To Install php-ldap on Debian 9
In this tutorial we learn how to install php-ldap on Debian 9.
What is php-ldap
This package provides a LDAP module for PHP.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.
This package is a dependency package, which depends on Debian’s default PHP version (currently 7.0).
There are three methods to install php-ldap on Debian 9. We can use apt-get , apt and aptitude . In the following sections we will describe each method. You can choose one of them.
Install php-ldap Using apt-get
Update apt database with apt-get using the following command.
After updating apt database, We can install php-ldap using apt-get by running the following command:
Install php-ldap Using apt
Update apt database with apt using the following command.
After updating apt database, We can install php-ldap using apt by running the following command:
Install php-ldap Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.
After updating apt database, We can install php-ldap using aptitude by running the following command:
How To Uninstall php-ldap on Debian 9
To uninstall only the php-ldap package we can use the following command:
Uninstall php-ldap And Its Dependencies
To uninstall php-ldap and its dependencies that are no longer needed by Debian 9, we can use the command below:
Remove php-ldap Configurations and Data
To remove php-ldap configuration and data from Debian 9 we can use the following command:
Remove php-ldap configuration, data, and all of its dependencies
We can use the following command to remove php-ldap configurations, data and all of its dependencies, we can use the following command:
Dependencies
References
Summary
In this tutorial we learn how to install php-ldap package on Debian 9 using different package management tools: apt , apt-get and aptitude .