Skip to content

Conversation

@Cornelicorn
Copy link
Contributor

…r own groups

Closes #587

Depends on rackslab/RFL#54

@github-actions
Copy link

github-actions bot commented Jun 18, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@Cornelicorn Cornelicorn marked this pull request as draft June 18, 2025 10:30
@Cornelicorn
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@Cornelicorn Cornelicorn marked this pull request as ready for review June 18, 2025 10:47
@Cornelicorn
Copy link
Contributor Author

Tested successfully to work with an ACL for users to read their own groups and without it (when using bind credentials).

@rezib
Copy link
Contributor

rezib commented Jun 18, 2025

Hello @Cornelicorn and @behrmann, thank you very much for your contribution 👍 I'll give it a look with rackslab/RFL#54 ASAP.

@Cornelicorn
Copy link
Contributor Author

Squashed the typo into the first commit

@rezib rezib self-requested a review June 18, 2025 16:12
Copy link
Contributor

@rezib rezib left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@rezib
Copy link
Contributor

rezib commented Jun 18, 2025

I have to release a new version of RFL with rackslab/RFL#54 landed before merging this.

@rezib rezib self-assigned this Jun 19, 2025
@rezib rezib added this to the v5.1.0 milestone Jun 19, 2025
@Cornelicorn Cornelicorn force-pushed the fix-ldap-bind branch 2 times, most recently from 4128eed to 1703803 Compare June 23, 2025 07:47
Cornelicorn and others added 4 commits June 27, 2025 10:34
After successful user authentication, when service bind dn and password
are defined in configuration, Slurm-web now retrieves user information
and user groups in LDAP with these credentials by default. This solves
issues where Slurm-web is unable to retrieve user groups when users do
not have read permissions in groups branch of LDAP directory.

When service bind dn and password are not defined in configuration,
Slurm-web keeps using authenticated user permissions lookup user
information and user groups.

The previous behavior can be restored by setting lookup_as_user = yes
under the [ldap] section in gateway configuration file.

fix rackslab#587
This is required to get LDAPAuthentifier() lookup_as_user argument.
@rezib rezib merged commit 9dd0510 into rackslab:main Jun 27, 2025
30 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jun 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Groups are not fetched in LDAP authentication if users can't query groups

3 participants