mirror of
				https://github.com/nitnelave/lldap.git
				synced 2023-04-12 14:25:13 +00:00 
			
		
		
		
	Update gitea.md
This commit is contained in:
		
							parent
							
								
									480919b399
								
							
						
					
					
						commit
						f7416ea17b
					
				@ -44,22 +44,6 @@ Replace every instance of `dc=example,dc=com` with your configured domain.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Configuration for Gitea in `simple auth` mode
 | 
					# Configuration for Gitea in `simple auth` mode
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* Host: Your lldap server's ip/hostname
 | 
					* The configuration method is the same as `BindDN` mode.
 | 
				
			||||||
* Port: Your lldap server's port (389 by default)
 | 
					* `BindDN` and `password` are not required
 | 
				
			||||||
* User Search Base: `ou=people,dc=example,dc=com`
 | 
					* Gitea will not be able to pre-sync users, user account will be created at login time.
 | 
				
			||||||
* User DN: `uid=%s,ou=people,dc=example,dc=com`
 | 
					 | 
				
			||||||
* User Filter: 
 | 
					 | 
				
			||||||
    * If you want all users to be able to log in, use `(&(objectClass=person)(|(uid=%[1]s)(mail=%[1]s)))`. To log in they can either use their email address or user name. 
 | 
					 | 
				
			||||||
    * If you only want members a specific group to be able to log in, in this case the group git_user, use `(&(memberof=cn=gitea_user,ou=groups,dc=example,dc=com)(|(uid=%[1]s)(mail=%[1]s)))`
 | 
					 | 
				
			||||||
* Admin Filter: Use `(memberof=cn=gitea_admin,ou=groups,dc=example,dc=com)` if you want lldap admins to become Gitea admins. Leave empty otherwise.
 | 
					 | 
				
			||||||
* Username Attribute: `uid`
 | 
					 | 
				
			||||||
* First Name Attribute: `givenName`
 | 
					 | 
				
			||||||
* Surname Attribute: `sn`
 | 
					 | 
				
			||||||
* Email Attribute: `mail`
 | 
					 | 
				
			||||||
* Avatar Attribute: `jpegPhoto`
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
notes:
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
* `dc=example,dc=com` is your domain
 | 
					 | 
				
			||||||
* `gitea_user` is group name of the gitea user in the lldap
 | 
					 | 
				
			||||||
* `gitea_admin` is group name of the gitea admin in the lldap
 | 
					 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user