aboutsummaryrefslogtreecommitdiffstats
path: root/templates/base
diff options
context:
space:
mode:
authorZettat123 <zettat123@gmail.com>2023-06-20 11:04:13 +0800
committerGitHub <noreply@github.com>2023-06-20 11:04:13 +0800
commit33cd74ad70591c36dfd1d14bd75f3eb1c2f28906 (patch)
tree9c3e1d35a1e1a3db73f649591e70f51860e3bc2d /templates/base
parent1a5b7c86a311c8ff8f9e4ba867379a9b7fa102b5 (diff)
downloadgitea-33cd74ad70591c36dfd1d14bd75f3eb1c2f28906.tar.gz
gitea-33cd74ad70591c36dfd1d14bd75f3eb1c2f28906.zip
Fix LDAP sync when Username Attribute is empty (#25278)
Fix #21072 ![image](https://github.com/go-gitea/gitea/assets/15528715/96b30beb-7f88-4a60-baae-2e5ad8049555) Username Attribute is not a required item when creating an authentication source. If Username Attribute is empty, the username value of LDAP user cannot be read, so all users from LDAP will be marked as inactive by mistake when synchronizing external users. This PR improves the sync logic, if username is empty, the email address will be used to find user.
Diffstat (limited to 'templates/base')
0 files changed, 0 insertions, 0 deletions