diff options
author | Kelley Spoon <kelley.spoon@linaro.org> | 2023-06-30 17:24:01 -0500 |
---|---|---|
committer | Kelley Spoon <kelley.spoon@linaro.org> | 2023-06-30 22:28:03 +0000 |
commit | 5db3e3974cdf4ce174624b1daa2fae2cb22e8ce4 (patch) | |
tree | 4b508d229cae3aabe5ff752dc17761c69599bf6e | |
parent | 7f962b7e289f0908d1eddcc17411d459c4e853cb (diff) |
In ldap, the 'linaro' group was deprecated and
replaced by the 'everybody-flat' group.
Since it was hardcoded here, we need to update
the group name in order to allow linaro
employees access to protected urls.
Change-Id: I6b340728ff26faa64a29fd2384d9ebe321dcff36
Signed-off-by: Kelley Spoon <kelley.spoon@linaro.org>
Reviewed-on: https://review.linaro.org/c/infrastructure/linaro-license-protection/+/44724
-rw-r--r-- | license_protected_downloads/group_auth_ldap.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/license_protected_downloads/group_auth_ldap.py b/license_protected_downloads/group_auth_ldap.py index ad485b8..577a9cc 100644 --- a/license_protected_downloads/group_auth_ldap.py +++ b/license_protected_downloads/group_auth_ldap.py @@ -22,6 +22,8 @@ def process_group_auth(request, required_groups): ldap_groups = linaro_ldap.get_groups_and_users() for group in required_groups: + if group == 'linaro': + group = 'everyone-flat' # skip non-existent groups if group not in ldap_groups: log.warn("Requested membership in non-existent group: %s" % group) |