github minio/minio RELEASE.2024-04-18T19-09-19Z
Bug fix Release

Upgrading for LDAP enabled setups

If you are not using the MinIO server's LDAP integration, please follow the usual upgrade instructions.

Release version RELEASE.2024-03-30T09-41-56Z brought a change to LDAP user and group policy mappings storage where the Distinguished Name (DN) of a user or group is stored in a normalized form. This normalization was necessary to ensure consistent handling of values with non-ASCII unicode characaters in a DN. However, this broke existing deployments with LDAP integration enabled, especially for existing mappings because older releases did not store them in a normalized form. The main way to restore mappings in that release and in release version RELEASE.2024-04-06T05-26-02Z was to recreate the mappings - however this was not sufficient to restore operation of access keys (aka service accounts) created by LDAP users.

This release provides a fix for this - however user action is required. Please follow these steps:

  1. In your existing MinIO cluster export all IAM data as an administrator with:

    mc admin cluster iam export ALIAS

    This will output a zip file containing IAM data (credentials, policies and policy mappings) in JSON format.

  2. Upgrade your cluster to the current release following the usual upgrade instructions.

  3. Now import the IAM data with:

    mc admin cluster iam import ALIAS /path/to/zipfile

    providing the path to the zip file from step 1.

For most deployments this should be enough to migrate the IAM policy mappings on LDAP users into the right format.

In some setups there may be duplicate mappings for the same user or group DN but with casing/normalization differences. In these cases, step 3 will return an error describing the conflicting mapping as the server cannot determine the right mapping to use. To fix this error, unzip the exported zip file, open the appropriate mapping file (either iam-assets/stsuser_mappings.json or iam-assets/group_mappings.json). Both these files have a simple JSON structure - they are JSON objects with DN strings as keys and the values are JSON objects. Remove the conflicting DN keys from this file, zip it again and run step 3 once more.

What's Changed

New Contributors

Full Changelog: RELEASE.2024-04-06T05-26-02Z...RELEASE.2024-04-18T19-09-19Z

Don't miss a new minio release

NewReleases is sending notifications on new releases.