search
HomeBackend DevelopmentPHP ProblemHow to install and configure linux php ldap

Linux php ldap installation and configuration method: first use yum to install the phpldapadmin tool; then modify the phpldapadmin configuration file; then start the http service; and finally access phpldapadmin.

How to install and configure linux php ldap

Recommended: "PHP Video Tutorial"

Linux system installation and configuration LDAP management tool phpldapadmin to achieve web-based management ldap

phpldapadmin provides access through the http service, so you need to install the http environment first

yum -y install httpd php php-ldap php-gd php-mbstring php-pear php-bcmath php-xml

yum to install the phpldapadmin tool

After configuring the http environment, use yum to install phpldapadmin Tool yum -y install epel-releaseyum –enablerepo=epel -y install phpldapadmin

Modify the phpldapadmin configuration file

The phpldapadmin configuration file is: /etc/phpldapadmin/config.php, the specific configuration modifications are as follows :[root@localhost ~]# vim /etc/phpldapadmin/config.php#Uncomment line 397 and add comments to line 398 $servers->setValue('login','attr','dn');// $ servers->setValue('login','attr','uid');

[root@localhost ~]# vim /etc/httpd/conf.d/phpldapadmin.conf

// Modify configuration # Apache 2.4Require local #Add a line to specify the accessible ip segment (although I don’t know why, but this management tool cannot be run without filling it in, so I just wrote the local ip directly) Require ip 172.0. 0.0/8 #This allowed IP segment is the user’s own IP segment

Start http service

systemctl restart httpd

Access phpldapadmin

http://10.9.100.100:8080/phpldapadmin/Login: cn=Manager,dc=baidu,dc=com / 12345678

How to install and configure linux php ldap

If you encounter the following error after logging in :

This base cannot be created with PLA. The problem occurs mainly when importing base.ldif. It is best to use the automatically generated base.ldif for import instead of creating it manually.

How to install and configure linux php ldap

The above is the detailed content of How to install and configure linux php ldap. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),