2022-06-20 09:54:16 +00:00
|
|
|
# Configuration for Portainer CE/BE
|
|
|
|
### Settings > Authentication > LDAP > Custom
|
2022-06-12 05:46:11 +00:00
|
|
|
---
|
|
|
|
|
2022-06-20 09:54:16 +00:00
|
|
|
## LDAP configuration
|
|
|
|
|
|
|
|
#### LDAP Server
|
2022-06-12 05:46:11 +00:00
|
|
|
```
|
2022-06-20 09:54:16 +00:00
|
|
|
localhost:3890 or ip-address:3890
|
2022-06-12 05:46:11 +00:00
|
|
|
```
|
2022-06-20 09:54:16 +00:00
|
|
|
#### Anonymous mode
|
2022-06-12 05:46:11 +00:00
|
|
|
```
|
|
|
|
off
|
|
|
|
```
|
2022-06-20 09:54:16 +00:00
|
|
|
#### Reader DN
|
2022-06-12 05:46:11 +00:00
|
|
|
```
|
|
|
|
uid=admin,ou=people,dc=example,dc=com
|
|
|
|
```
|
2022-06-20 09:54:16 +00:00
|
|
|
#### Password
|
2022-06-12 05:46:11 +00:00
|
|
|
```
|
|
|
|
xxx
|
|
|
|
```
|
2022-06-20 09:54:16 +00:00
|
|
|
* Password is the ENV you set at *LLDAP_LDAP_USER_PASS=* or `lldap_config.toml`
|
2022-06-12 05:46:11 +00:00
|
|
|
|
|
|
|
## User search configurations
|
2022-06-20 09:54:16 +00:00
|
|
|
|
|
|
|
#### Base DN
|
2022-06-12 05:46:11 +00:00
|
|
|
```
|
|
|
|
ou=people,dc=example,dc=com
|
|
|
|
```
|
2022-06-20 09:54:16 +00:00
|
|
|
#### Username attribute
|
2022-06-12 05:46:11 +00:00
|
|
|
```
|
|
|
|
uid
|
|
|
|
```
|
2022-06-20 09:54:16 +00:00
|
|
|
### Filter
|
|
|
|
#### All available user(s)
|
2022-06-12 05:46:11 +00:00
|
|
|
```
|
|
|
|
(objectClass=person)
|
|
|
|
```
|
2022-06-20 09:54:16 +00:00
|
|
|
* Using this filter will list all user registered in LLDAP
|
|
|
|
|
|
|
|
#### All user(s) from specific group
|
|
|
|
```
|
|
|
|
(&(objectClass=person)(memberof=cn=lldap_portainer,ou=groups,dc=example,dc=com))
|
|
|
|
```
|
|
|
|
* Using this filter will only list user that included in `lldap_portainer` group.
|
|
|
|
* Admin should manually configure groups and add a user to it. **lldap_portainer** only sample.
|
|
|
|
|
|
|
|
|
2022-06-12 05:46:11 +00:00
|
|
|
|
|
|
|
## Group search configurations
|
2022-06-20 09:54:16 +00:00
|
|
|
|
|
|
|
#### Group Base DN
|
2022-06-12 05:46:11 +00:00
|
|
|
```
|
|
|
|
ou=groups,dc=example,dc=com
|
|
|
|
```
|
2022-06-20 09:54:16 +00:00
|
|
|
#### Group Membership Attribute
|
2022-06-12 05:46:11 +00:00
|
|
|
```
|
|
|
|
cn
|
|
|
|
```
|
2022-06-20 09:54:16 +00:00
|
|
|
#### Group Filter
|
2022-06-12 05:46:11 +00:00
|
|
|
```
|
|
|
|
is optional
|
|
|
|
```
|