mc admin idp ldap

Description

The mc admin idp ldap commands allow you to add, modify, review, list, remove, enable, and disable server configurations to 3rd party Active Directory or LDAP Identity and Access Management (IAM) integrations.

Define configuration settings as an alternative to using environment variables when setting up an AD/LDAP connection.

The mc admin idp ldap command has the following subcommands:

SubcommandDescription
mc admin idp ldap addCreate an AD/LDAP IDP server configuration.
mc admin idp ldap updateModify an existing AD/LDAP IDP server configuration.
mc admin idp ldap lsLists AD/LDAP server configurations.
mc admin idp ldap rmRemove an AD/LDAP IDP server configuration from a deployment.
mc admin idp ldap infoDisplays details for a specific AD/LDAP server configuration.
mc admin idp ldap enableEnables an AD/LDAP server configuration.
mc admin idp ldap disableDisables an AD/LDAP server configuration.
mc admin idp ldap policy entitiesList policy association entities

Configuration Parameters

The mc admin idp ldap subcommands support configuration parameters. The parameters define the server’s interaction with the Active Directory or LDAP IAM provider.

For a more detailed explanation of the configuration parameters, refer to the config setting documentation.

Syntax

add

mc-cmd

Create a new configuration for an AD/LDAP provider. MinIO supports no more than one (1) AD/LDAP provider per deployment.

The following example sets the AD/LDAP configuration settings for the myminio deployment.

 mc admin idp ldap add                                               \
      myminio                                                        \
      server_addr=myldapserver:636                                   \
      lookup_bind_dn=cn=admin,dc=min,dc=io                           \
      lookup_bind_password=somesecret                                \
      user_dn_search_base_dn=dc=min,dc=io                            \
      user_dn_search_filter="(uid=%s)"                               \
      group_search_base_dn=ou=swengg,dc=min,dc=io                    \
      group_search_filter="(&(objectclass=groupofnames)(member=%d))"

The command has the following syntax:

mc [GLOBALFLAGS] admin idp ldap add          \
                           ALIAS             \
                           [CFG_PARAM1]      \
                           [CFG_PARAM2]...
  • Replace ALIAS with the alias of a MinIO deployment to create for AD/LDAP integration.
  • Replace the [CFG_PARAM#] with each of the configuration setting key-value pairs in the format of PARAMETER="value".

update

mc-cmd

Modify an existing set of configurations for an AD/LDAP provider.

The following example changes two of the AD/LDAP configuration settings for the myminio deployment.

mc admin idp ldap update                                \
                  myminio                               \
                  lookup_bind_dn=cn=admin,dc=min,dc=io  \
                  lookup_bind_password=somesecret

The command has the following syntax:

mc [GLOBALFLAGS] admin idp ldap update           \
                                ALIAS            \
                                [CFG_PARAM1]     \
                                [CFG_PARAM2]...
  • Replace ALIAS with the alias of a MinIO deployment to update for AD/LDAP integration.
  • Replace the [CFG_PARAM#] with each of the configuration setting key-value pairs to update in the format of PARAMETER="value".

ls, list

mc-cmd

Lists the existing set of configurations for an AD/LDAP provider.

The following example lists the AD/LDAP configuration settings for the myminio deployment.

mc admin idp ldap ls myminio

The command has the following syntax:

mc [GLOBALFLAGS] admin idp ldap ls ALIAS
  • Replace ALIAS with the alias of a MinIO deployment to list the AD/LDAP integration.

rm, remove

mc-cmd

Remove the existing configuration for an AD/LDAP provider.

The following example removes the AD/LDAP provider settings for the myminio deployment.

mc admin idp ldap rm myminio

The command has the following syntax:

mc [GLOBALFLAGS] admin idp ldap rm     \
                                ALIAS
  • Replace ALIAS with the alias of a MinIO deployment to remove the AD/LDAP integration.

info

mc-cmd

Outputs the current configuration for an AD/LDAP provider on a specified MinIO deployment.

The following example outputs the AD/LDAP configuration settings on the myminio deployment.

mc admin idp ldap info myminio

The command has the following syntax:

mc [GLOBALFLAGS] admin idp ldap info     \
                                ALIAS
  • Replace ALIAS with the alias of a MinIO deployment to retrieve info on the AD/LDAP integration.

enable

mc-cmd

Enables the currently configured AD/LDAP provider.

The following example enables the AD/LDAP configuration on the myminio deployment.

mc admin idp ldap enable       \
                  myminio

The command has the following syntax:

mc [GLOBALFLAGS] admin idp ldap enable     \
                                ALIAS
  • Replace ALIAS with the alias of a MinIO deployment to enable the AD/LDAP integration.

disable

mc-cmd

Disables the currently configured AD/LDAP provider.

The following example disables the AD/LDAP configurations on the myminio deployment.

mc admin idp ldap disable      \
                  myminio

The command has the following syntax:

mc [GLOBALFLAGS] admin idp ldap disable       \
                                ALIAS
  • Replace ALIAS with the alias of a MinIO deployment to disable the AD/LDAP integration.

Global Flags

This command supports any of the global flags.

Last modified August 2, 2026: init commit (8338d5b)

Portions of this page are adapted from the MinIO Object Storage Documentation, © 2020–Present MinIO, Inc., licensed under CC BY 4.0, converted and maintained by the Silo project. Attribution