mirror of
https://github.com/minio/docs.git
synced 2025-07-30 07:03:26 +03:00
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>
113 lines
3.3 KiB
ReStructuredText
113 lines
3.3 KiB
ReStructuredText
.. _minio-mc-idp-ldap-policy-attach:
|
|
|
|
=============================
|
|
``mc idp ldap policy attach``
|
|
=============================
|
|
|
|
.. default-domain:: minio
|
|
|
|
.. contents:: Table of Contents
|
|
:local:
|
|
:depth: 2
|
|
|
|
.. mc:: mc idp ldap policy attach
|
|
|
|
|
|
Description
|
|
-----------
|
|
|
|
.. start-mc-idp-ldap-policy-attach-desc
|
|
|
|
The :mc:`mc idp ldap policy attach` command attaches one or more polices to an entity.
|
|
|
|
.. end-mc-idp-ldap-policy-attach-desc
|
|
|
|
.. tab-set::
|
|
|
|
.. tab-item:: EXAMPLE
|
|
|
|
The following example attaches the policy ``userpolicy`` to the user ``bobfisher`` on the ``myminio`` deployment:
|
|
|
|
.. code-block:: shell
|
|
:class: copyable
|
|
|
|
mc idp ldap policy attach myminio \
|
|
userpolicy \
|
|
--user='uid=bobfisher,ou=people,ou=hwengg,dc=min,dc=io'
|
|
|
|
.. tab-item:: SYNTAX
|
|
|
|
The command has the following syntax:
|
|
|
|
.. code-block:: shell
|
|
:class: copyable
|
|
|
|
mc [GLOBALFLAGS] idp ldap policy attach \
|
|
POLICYNAME \
|
|
[POLICY2] ... \
|
|
ALIAS \
|
|
[--user=`USER`] \
|
|
[--group=`GROUP`]
|
|
|
|
|
|
- Replace ``ALIAS`` with the :ref:`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.
|
|
|
|
.. include:: /includes/common-minio-mc.rst
|
|
:start-after: start-minio-syntax
|
|
:end-before: end-minio-syntax
|
|
|
|
|
|
Parameters
|
|
~~~~~~~~~~
|
|
|
|
.. mc-cmd:: ALIAS
|
|
:required:
|
|
|
|
The :ref:`alias <alias>` of the MinIO deployment with the entity to which to attach a policy.
|
|
|
|
For example:
|
|
|
|
.. code-block:: none
|
|
|
|
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:
|
|
|
|
.. code-block:: shell
|
|
:class: copyable
|
|
|
|
mc idp ldap policy attach myminio \
|
|
policy1 \
|
|
policy2 \
|
|
--group='cn=projectb,ou=groups,ou=swengg,dc=min,dc=io'
|
|
|
|
|
|
Global Flags
|
|
~~~~~~~~~~~~
|
|
|
|
.. include:: /includes/common-minio-mc.rst
|
|
:start-after: start-minio-mc-globals
|
|
:end-before: end-minio-mc-globals
|
|
|
|
|
|
Behavior
|
|
--------
|
|
|
|
S3 Compatibility
|
|
~~~~~~~~~~~~~~~~
|
|
|
|
.. include:: /includes/common-minio-mc.rst
|
|
:start-after: start-minio-mc-s3-compatibility
|
|
:end-before: end-minio-mc-s3-compatibility
|