1
0
mirror of https://github.com/minio/docs.git synced 2025-07-28 19:42:10 +03:00
Files
docs/source/reference/minio-mc/mc-idp-ldap-policy-attach.rst
Andrea Longo 9ea539b8ab Restructure/expand mc idp ldap reference pages (#959)
Improve the AD/LDAP reference docs:

- Break up `mc idp ldap` and `mc idp ldap policy` into parents/children.
- Add commands from the `identity_ldap` configuration key to `mc idp
ldap add` and `mc idp ldap update`.
- Update links from relevant envvars to `mc idp ldap` instead of
`identity_ldap`
- Fix stuff that needs fixing.

Staged:

http://192.241.195.202:9000/staging/DOCS-919-4-idp-ldap/linux/html/reference/minio-mc/mc-idp-ldap.html

http://192.241.195.202:9000/staging/DOCS-919-4-idp-ldap/linux/html/reference/minio-mc/mc-idp-ldap-policy.html
Fixes https://github.com/minio/docs/issues/940

---------

Co-authored-by: Daryl White <53910321+djwfyi@users.noreply.github.com>
2023-08-18 13:50:15 -06:00

3.3 KiB

mc idp ldap policy attach

minio

Table of Contents

mc idp ldap policy attach

Description

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

EXAMPLE

The following example attaches the policy userpolicy to the user bobfisher on the myminio deployment:

class
copyable

mc idp ldap policy attach myminio userpolicy --user='uid=bobfisher,ou=people,ou=hwengg,dc=min,dc=io'

SYNTAX

The command has the following syntax:

mc [GLOBALFLAGS] idp ldap policy attach             \
                                 POLICYNAME         \
                                 [POLICY2] ...      \
                                 ALIAS              \
                                 [--user=`USER`]    \
                                 [--group=`GROUP`]
  • Replace ALIAS with the alias <alias> of a MinIO deployment to configure for AD/LDAP integration.
  • Replace POLICYNAME with the policy to attach to the entity. You may list multiple policies to attach to the entity.
  • Use must use one of either the --user or --group flag. You may only use the flag once in the command. You cannot use both flags in the same command.

Parameters

ALIAS

The alias <alias> of the MinIO deployment with the entity to which to attach a policy.

For example:

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

Example

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

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

Global Flags

Behavior

S3 Compatibility