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?
Many netizens often ask why their websites always ...
MySQL replace and replace into are both frequentl...
This article shares the installation and configur...
Table of contents Preface Introduction ngram full...
This article introduces the sample code of advanc...
Table of contents 1 Test Cases 2 JS array dedupli...
Table of contents 1. Simple page example 2.uni-ap...
Table of contents The background is: What will ha...
This article example shares the specific code of ...
Table of contents 1. Introduction 2. Main text 2....
Nginx optimization---hiding version number and we...
This article example shares the specific code for...
Find the problem Recently, when I connected to th...
Today I used a virtual machine to do an experimen...
There are two types of scheduled tasks in Linux s...