The following example sets the AD/LDAP configuration settings for the
myminio
deployment.
mc 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))"
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"
.
Brackets []
indicate optional parameters.
Parameters sharing a line are mutually dependent.
Parameters separated using the pipe |
operator are mutually exclusive.
Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.
alias of the MinIO deployment on which to add an AD/LDAP integration.
For example:
mc 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)" \
server_addrsrv_record_name
automatically identifies the port
If your AD/LDAP server uses DNS SRV Records
, do not append the port number to your server_addr
value.
SRV requests automatically include port numbers when returning the list of available servers.
This parameter corresponds with the MINIO_IDENTITY_LDAP_SERVER_ADDR
environment variable.
lookup_bind_dnLookup-Bind authentication to the AD/LDAP server.
The DN account should be a read-only access keys with sufficient
privileges to support querying performing user and group lookups.
This parameter corresponds with the MINIO_IDENTITY_LDAP_LOOKUP_BIND_DN
environment variable.
RequiredSpecify the password for the Lookup-Bind user account.
Changed in version RELEASE.2023-06-23T20-26-00Z: MinIO redacts this value when returned as part of mc admin config get
.
This parameter corresponds with the MINIO_IDENTITY_LDAP_LOOKUP_BIND_PASSWORD
environment variable.
user_dn_search_base_dnLookup-Bind mode.
This parameter corresponds with the MINIO_IDENTITY_LDAP_USER_DN_SEARCH_BASE_DN
environment variable.
user_dn_search_filterMINIO_IDENTITY_LDAP_USER_DN_SEARCH_FILTER
environment variable.
enabledMINIO_IDENTITY_LDAP_GROUP_SEARCH_BASE_DN
environment variable.
group_search_filterMINIO_IDENTITY_LDAP_GROUP_SEARCH_FILTER
environment variable.
server_insecureMINIO_IDENTITY_LDAP_SERVER_INSECURE
environment variable.
New in version RELEASE.2022-12-12T19-27-27Z.
Specify the appropriate value to enable MinIO to select an AD/LDAP server using a DNS SRV record request.
When enabled, MinIO selects an AD/LDAP server by:
Constructing the target SRV record name following standard naming conventions.
Requesting a list of available AD/LDAP servers.
Choosing an appropriate target based on priority and weight.
The configuration examples below presume the AD/LDAP server address is set to example.com
and the SRV record protocol is _tcp
.
For SRV record names beginning with _ldap
, specify ldap
.
The constructed DNS SRV record name resembles the following:
_ldap._tcp.example.com
For SRV record names with beginning with _ldaps
, specify ldaps
.
The constructed DNS SRV record name resembles the following:
_ldaps._tcp.example.com
If your DNS SRV record name uses alternate service or protocol names, specify on
and provide the full record name as your LDAP server address.
Example: _ldapserver._specialtcp.example.com
For more about DNS SRV records, see DNS SRV Records for LDAP.
Server address for DNS SRV record configurations
The specified server name must not include a port number.
This is different from a standard AD/LDAP configuration, where the port number is required.
See server_addr
or MINIO_IDENTITY_LDAP_SERVER_ADDR
for more about configuring an AD/LDAP server address.
This parameter corresponds with the MINIO_IDENTITY_LDAP_SRV_RECORD_NAME
environment variable.
tls_skip_verifyMINIO_IDENTITY_LDAP_TLS_SKIP_VERIFY
environment variable.
Privacy Policy.