This will setup portainer with testing image and openldap service with bootstrap data + StartTLS/TLS enabled
git clone https://github.com/oscarzhou/portainer-openldap-quick-setup.git && cd portainer-openldap-quick-setup
chmod +x ldap-run.sh
./ldap-run.sh
After the output Portainer run up successfully
shows up, it may take a while for portainer to finish initialization. You can refresh the web page every 5 seconds.
Key | Value |
---|---|
Admin Login DN | cn=admin,dc=example,dc=org |
Admin Password | admin_pass |
Server IP | 172.31.0.10 |
Port over TLS (STARTTLS) | 389 |
Port over SSL | 636 |
CA Certificate | ./data/certs/ldap-ca.pem |
username1 | developer |
password1 | developer_pass |
username2 | maintainer |
password2 | maintainer_pass |
❗ Note that if you want to display group, you'll need to select custom server type instead of OpenLDAP on Portainer page.
Key | Value |
---|---|
LDAP Server | 172.31.0.10:389 |
Reader DN | cn=admin,dc=example,dc=org |
Password | admin_pass |
Key | Value |
---|---|
Base DN 1 | cn=maintainer,dc=example,dc=org |
Username attribute 1 | uid |
Base DN 2 | cn=developer,dc=example,dc=org |
Username attribute 2 | uid |
Key | Value |
---|---|
Group Base DN 1 | cn=Maintainers,ou=Groups,dc=example,dc=org |
Group Membership Attribute 1 | uniqueMember |
Group Filter 1 | (objectClass=groupOfUniqueNames) |
Group Base DN 2 | cn=Admins,ou=Groups,dc=example,dc=org |
Group Membership Attribute 2 | uniqueMember |
Group Filter 2 | (objectClass=groupOfUniqueNames) |