Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ldap: Add user DN attributes list config param #19758

Merged
merged 2 commits into from
May 24, 2024

Conversation

donatello
Copy link
Member

@donatello donatello commented May 16, 2024

Description

This change uses the updated ldap library in minio/pkg (which was bumped
up to v3). New config parameter is added for LDAP configuration to
specify extra user attributes to load from the LDAP server and to store
it as additional claims for the user.

A test is added in sts_handlers.go that shows how to access the LDAP
attributes as a claim.

This is in preparation to add SSH pubkey authentication to MinIO's SFTP
integration.

Motivation and Context

How to test this PR?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Optimization (provides speedup with no functional changes)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • Fixes a regression (If yes, please add commit-id or PR # here)
  • Unit tests added/updated
  • Internal documentation updated
  • Create a documentation update request here

@donatello donatello force-pushed the ldap-attribs branch 9 times, most recently from e815d6b to 88e1ac3 Compare May 21, 2024 16:37
@donatello donatello marked this pull request as ready for review May 21, 2024 18:25
go.mod Outdated Show resolved Hide resolved
Copy link
Contributor

@taran-p taran-p left a comment

Choose a reason for hiding this comment

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

Looks good once console is updated

@harshavardhana
Copy link
Member

Waiting to be merged with relevant go.mod changes.

@donatello
Copy link
Member Author

Updated PR with tag for minio/pkg/v3 but still needs console update + release.

go.mod Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
@donatello donatello force-pushed the ldap-attribs branch 2 times, most recently from a91cd38 to ece80eb Compare May 24, 2024 21:21
This change uses the updated ldap library in minio/pkg (which was bumped
up to v3). New config parameter is added for LDAP configuration to
specify extra user attributes to load from the LDAP server and to store
it as additional claims for the user.

A test is added in sts_handlers.go that shows how to access the LDAP
attributes as a claim.

This is in preparation to add SSH pubkey authentication to MinIO's SFTP
integration.
@harshavardhana harshavardhana merged commit 5f78691 into minio:master May 24, 2024
20 checks passed
@donatello donatello deleted the ldap-attribs branch May 24, 2024 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants