Commit Graph
3 Commits
Author SHA1 Message Date
Lauri Ojansivu 5f0716fc74 UCS: refuse to publish an app whose LDAP group settings refuse every login.
After the 12.32 UCS upgrade every LDAP login failed with "LDAP authentication
failed". The UCS compose (wekan/univention) kept the 6.09 setting
LDAP_GROUP_FILTER_ENABLE=true with no group id attribute and no group name.
6.09 read that as "in any group". WeKan now refuses an incomplete group
filter, as intended since #3700, so isUserInGroup refused everyone. The
compose is fixed in wekan/univention: the filter is off, because UCS grants
access through (wekanActivated=TRUE), and the group id attribute is cn, so
Domain Admins become admins again.

releases/ucs-release.py now applies WeKan's own group-setting rule to the
compose before it prepares a portal upload. With the group filter or admin
sync on, it needs the three group lookup settings, and an enabled filter
needs a group name. A compose that would refuse every LDAP login is not
published. It refuses the 12.32 compose and passes the fixed one.
tests/ucsRelease.test.py covers both, plus the rule.
tests/ldapGroupFilterConfig.test.cjs shows that WeKan refuses the 6.09 UCS
settings and needs nothing missing with the fixed ones.

The UCS README describes the failure and gives a workaround for installs that
already upgraded: two appcenter/env/wekan UCR values and univention-app
reinitialize. It also explains the cross-origin error seen when WeKan is
opened through a host other than ROOT_URL.

Thanks to xet7 !
2026-10-11 22:59:15 +03:00
Lauri Ojansivu 139bf43418 Close LDAP admin-group login filtering gaps
Preserve the existing admin-group and multi-group login support while parsing names once, removing blank and duplicate entries, escaping every configured assertion value, and refusing blank-only group lists before an LDAP search.

Thanks to Hellnino18 and xet7 !

Fixes #4036,
2026-08-25 19:36:31 +03:00
Lauri Ojansivu 433348c667 Fail closed on incomplete LDAP group filters
Name every missing membership setting before a group lookup. Refuse filtered logins and return no synchronization groups instead of silently omitting the member clause and searching every group in the directory.

Thanks to fgoe and xet7 !

Fixes #3700,
2026-08-25 19:24:25 +03:00