From f7416ea17beee07e29ba9e621b3555b230c8f204 Mon Sep 17 00:00:00 2001 From: Rex Zhang Date: Wed, 8 Feb 2023 16:22:59 +0800 Subject: [PATCH] Update gitea.md --- example_configs/gitea.md | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/example_configs/gitea.md b/example_configs/gitea.md index 76ca187..f14fff6 100644 --- a/example_configs/gitea.md +++ b/example_configs/gitea.md @@ -44,22 +44,6 @@ Replace every instance of `dc=example,dc=com` with your configured domain. # Configuration for Gitea in `simple auth` mode -* Host: Your lldap server's ip/hostname -* Port: Your lldap server's port (389 by default) -* User Search Base: `ou=people,dc=example,dc=com` -* 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 +* The configuration method is the same as `BindDN` mode. +* `BindDN` and `password` are not required +* Gitea will not be able to pre-sync users, user account will be created at login time.