My current boss has asked me to provide a standard authentication method for Web services within the enterprise. One of the main problems I encountered was that our company used two main platforms: Unix and. So my first thought was not very
The problem is as follows:Workaround:1, first check the source code installed PHP module whether there is ldap.so[Email protected] ldap]# ll/usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/Total 1576-rwxr-xr-x 1 root root 129484 10:18
Management system, the administrator can be encrypted to operate, enhance security. Lam supports managed account types with SAMBA2/3, UNIX address Book interfaces, and computer-required information, including NIS maps, e-mail aliases, MAC addresses,
LDAP-Series-1-Chapter-3-PHP-LDAPIfyouwanttousePHPwithldap.Youhavetoaddtheextensionlib. (ldap. so) GototheinstallfileofPHP. $ cdoptphp-5.4.5extldap $ us LDAP-Series-1-Chapter-3-PHP-LDAP
If you want to use PHP with ldap. You have to add the extension
Linux compiling Ldap extension
What is Ldap?
Ldap is a Lightweight Directory Access Protocol, which is short for Lightweight Directory Access Protocol.
Start compilation
Cd/usr/local/src/php-5.4.36 (your php
The LDAP-Series-1-Chapter-3-PHP-LDAPIfyouwanttousePHPwithldap.Youhavetoaddtheextensionlib. (ldap. so) GototheinstallfileofPHP. $ cdoptphp-5.4.5extldap $ usrl LDAP-Series-1-Chapter-3-PHP-LDAP
If you want to use PHP with ldap. You have to add the
First, if the source code is compiled[Email protected] php-7.2. 7 ls /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/opcache.a opcache.so# An alarm occurs because the LDAP module does not exist and needs to be compiled to generate the
Ldap-series-1-chapter-3-Php-ldap
If you want the PHP with LDAP. You have to add the extension lib. (ldap.so)
Go to the install file of PHP.
$ cd/opt/php-5.4.5/ext/ldap/$/usr/local/bin/phpize$./configure--with-php-config=/usr/local/bin/php-config--
Operating system: Windows 7
XAMPP version: 1.8.3 free installation version
Because the test requires LDAP environment support, check the XAMPP phpinfo, found that LDAP is not enabled by default. After modifying the php.ini configuration to enable
Restart the service after opening the LDAP extension in php.ini, phpinfo (), no LDAPApache_error.log tip: PHP startup:unable to load Dynamic Library ' D:/myphp/php-5.3/ext/php_ldap.dll '-%1 is not a valid WIN32 application.Check out the PHP manual
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.