mc idp ldap policy attach

The mc idp ldap policy attach command attaches one or more polices to an entity.

Syntax

Parameters

ALIAS[:CONFIG_NAME]

Required

The alias of the AIStor deployment with the entity to which to attach a policy.

Optionally append :CONFIG_NAME to use a non-default LDAP configuration. If not specified, the command uses the default LDAP configuration.

Examples

Attach policies to a group

The following example attaches two policies, policy1 and policy2, to the projectb group on the myaistor deployment:

mc idp ldap policy attach myaistor                                                 \
                          policy1                                                 \
                          policy2                                                 \
                          --group='cn=projectb,ou=groups,ou=swengg,dc=min,dc=io'

Attach a policy using a non-default LDAP configuration

The following example attaches a policy using the LDAP configuration named myldap instead of the default configuration.

mc idp ldap policy attach myaistor:myldap                                          \
                          userpolicy                                               \
                          --user='uid=bobfisher,ou=people,ou=hwengg,dc=min,dc=io'

Global flags

This command supports any of the global flags.

Behavior

S3 compatibility

The mc command-line tool is built for compatibility with the AWS S3 API and is tested with AIStor and AWS S3 for expected functionality and behavior.

MinIO provides no guarantees for other S3-compatible services, as their S3 API implementation is unknown and therefore unsupported.

While mc commands may work as documented, any such usage is at your own risk.