You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/tests
Pavel Ezhov 98770d3db8
Fix group filter for ldap source sync (#22506)
There are 2 separate flows of creating a user: authentication and source
sync.
When a group filter is defined, source sync ignores group filter, while
authentication respects it.
With this PR I've fixed this behavior, so both flows now apply this
filter when searching users in LDAP in a unified way.

- Unified LDAP group membership lookup for authentication and source
sync flows
- Replaced custom group membership lookup (used for authentication flow)
with an existing listLdapGroupMemberships method (used for source sync
flow)
- Modified listLdapGroupMemberships and getUserAttributeListedInGroup in
a way group lookup could be called separately
- Added user filtering based on a group membership for a source sync
- Added tests to cover this logic

Co-authored-by: Pavel Ezhov <paejov@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
1 year ago
..
e2e Implement FSFE REUSE for golang files (#21840) 2 years ago
fuzz Move fuzz tests into tests/fuzz (#22376) 1 year ago
gitea-lfs-meta Test views of LFS files (#22196) 2 years ago
gitea-repositories-meta Test views of LFS files (#22196) 2 years ago
integration Fix group filter for ldap source sync (#22506) 1 year ago
mssql.ini.tmpl Kd/ci playwright go test (#20123) 2 years ago
mysql.ini.tmpl Disable test for incoming email (#22686) 1 year ago
mysql8.ini.tmpl Kd/ci playwright go test (#20123) 2 years ago
pgsql.ini.tmpl Kd/ci playwright go test (#20123) 2 years ago
sqlite.ini.tmpl Add a simple test for external renderer (#20033) 2 years ago
test_utils.go Test views of LFS files (#22196) 2 years ago
testlogger.go Implement FSFE REUSE for golang files (#21840) 2 years ago