mirror of
				https://github.com/nitnelave/lldap.git
				synced 2023-04-12 14:25:13 +00:00 
			
		
		
		
	More clear instruictions
This commit is contained in:
		
							parent
							
								
									d790bf1169
								
							
						
					
					
						commit
						fcd56b58c0
					
				@ -1,55 +1,64 @@
 | 
			
		||||
# Configuration for Portainer CE
 | 
			
		||||
##  Settings > Authentication 
 | 
			
		||||
# Configuration for Portainer CE/BE
 | 
			
		||||
###  Settings > Authentication > LDAP > Custom
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## LDAP configuration 
 | 
			
		||||
### LDAP Server
 | 
			
		||||
## LDAP configuration
 | 
			
		||||
 | 
			
		||||
#### LDAP Server
 | 
			
		||||
```
 | 
			
		||||
localhost:3890
 | 
			
		||||
localhost:3890 or ip-address:3890
 | 
			
		||||
```
 | 
			
		||||
### Anonymous mode
 | 
			
		||||
#### Anonymous mode
 | 
			
		||||
```
 | 
			
		||||
off
 | 
			
		||||
```
 | 
			
		||||
### Reader DN
 | 
			
		||||
#### Reader DN
 | 
			
		||||
```
 | 
			
		||||
uid=admin,ou=people,dc=example,dc=com
 | 
			
		||||
```
 | 
			
		||||
### Password
 | 
			
		||||
#### Password
 | 
			
		||||
```
 | 
			
		||||
xxx
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
* Password is the ENV you set at *LLDAP_LDAP_USER_PASS=* or `lldap_config.toml`
 | 
			
		||||
 | 
			
		||||
## User search configurations
 | 
			
		||||
### Base DN
 | 
			
		||||
 | 
			
		||||
#### Base DN
 | 
			
		||||
```
 | 
			
		||||
ou=people,dc=example,dc=com
 | 
			
		||||
```
 | 
			
		||||
### Username attribute
 | 
			
		||||
#### Username attribute
 | 
			
		||||
```
 | 
			
		||||
uid
 | 
			
		||||
```
 | 
			
		||||
### Filter (all available user)
 | 
			
		||||
### Filter
 | 
			
		||||
#### All available user(s)
 | 
			
		||||
```
 | 
			
		||||
(objectClass=person)
 | 
			
		||||
```
 | 
			
		||||
### Filter by groups (assuming you already create and manage the user into group, in this example the user already in lldap_portainer group)
 | 
			
		||||
* 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.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Group search configurations 
 | 
			
		||||
### Group Base DN
 | 
			
		||||
 | 
			
		||||
#### Group Base DN
 | 
			
		||||
```
 | 
			
		||||
ou=groups,dc=example,dc=com
 | 
			
		||||
```
 | 
			
		||||
### Group Membership Attribute
 | 
			
		||||
#### Group Membership Attribute
 | 
			
		||||
```
 | 
			
		||||
cn
 | 
			
		||||
```
 | 
			
		||||
### Group Filter 
 | 
			
		||||
#### Group Filter 
 | 
			
		||||
```
 | 
			
		||||
is optional
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user