1. Background Use LDAP to centrally manage operation and maintenance related usernames and passwords. One account can be used to log in to multiple different systems. 2. Deploy Docker to build LDAP# Pull the image docker pull osixia/openldap:1.3.0 # Create and enter the mapping directory mkdir -p /usr/local/ldap && cd /usr/local/ldap # Start the container docker run \ -d \ -p 389:389 \ -p 636:636 \ -v /usr/local/ldap:/usr/local/ldap \ --name ldap \ osixia/openldap:1.3.0 #Default configuration dn dc=example,dc=org admin admin,dc=example,dc=org password admin Enter the container and verify whether it is available # Enter the container docker exec -it ldap /bin/bash # Execute the query ldapsearch -x -H ldap://localhost:389 -b dc=example,dc=org -D "cn=admin,dc=example,dc=org" -w admin # Or execute the query directly outside the container docker exec -it ldap ldapsearch -x -H ldap://localhost:389 -b dc=example,dc=org -D "cn=admin,dc=example,dc=org" -w admin Docker builds phpLDAPadmin # Pull the image docker pull osixia/phpldapadmin # Start the container docker run -dit \ > -p 8081:80 \ > --link ldap \ > --name suiyue_pla \ > --env PHPLDAPADMIN_HTTPS=false \ > --env PHPLDAPADMIN_LDAP_HOSTS=ldap \ > --restart always \ > --detach osixia/phpldapadmin Finish Enter http://localhost:8081/ Username: admin,dc=example,dc=org Password: admin Reference tutorial: https://blog.csdn.net/weixin_42257195/article/details/102769495 This is the end of this article about how to build OpenLDAP+phpLDAPadmin unified user authentication with Docker. For more relevant Docker user authentication content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: XHTML Getting Started Tutorial: Simple Web Page Creation
>>: It's the end of the year, is your MySQL password safe?
Background: I'm working on asset reporting re...
I am currently developing a video and tool app, s...
There are two ways to configure multiple projects...
Table of contents 1. Trigger Solution 2. Partitio...
Before reading this article, I hope you have a pr...
Preface Today I encountered a very strange proble...
1. Introduction (1) Introduction to vw/vh Before ...
Here, clever use of CSS techniques allows you to g...
Table of contents Function Introduction Rendering...
Table of contents Written in front Precautions De...
Preface After installing MySQL and Navicat, when ...
This article example shares the specific code of ...
Table of contents 1. JavaScript can change all HT...
This article shares the specific code for JavaScr...
<br />Previous article: Web Design Tutorial ...