2021-04-18 15:41:13 -04:00
|
|
|
// Copyright (c) 2015-2021 MinIO, Inc.
|
|
|
|
//
|
|
|
|
// This file is part of MinIO Object Storage stack
|
|
|
|
//
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU Affero General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU Affero General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Affero General Public License
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2019-10-23 01:59:13 -04:00
|
|
|
|
|
|
|
package ldap
|
|
|
|
|
2021-06-01 17:59:40 -04:00
|
|
|
import "github.com/minio/minio/internal/config"
|
2019-10-23 01:59:13 -04:00
|
|
|
|
2019-11-19 16:48:13 -05:00
|
|
|
// Help template for LDAP identity feature.
|
2019-10-23 01:59:13 -04:00
|
|
|
var (
|
2019-11-19 16:48:13 -05:00
|
|
|
Help = config.HelpKVS{
|
|
|
|
config.HelpKV{
|
|
|
|
Key: ServerAddr,
|
2019-12-04 18:32:37 -05:00
|
|
|
Description: `AD/LDAP server address e.g. "myldapserver.com:636"`,
|
2019-11-19 16:48:13 -05:00
|
|
|
Type: "address",
|
2021-06-03 11:15:44 -04:00
|
|
|
Sensitive: true,
|
2019-11-19 16:48:13 -05:00
|
|
|
},
|
2020-03-22 01:47:26 -04:00
|
|
|
config.HelpKV{
|
2021-01-25 17:26:10 -05:00
|
|
|
Key: LookupBindDN,
|
|
|
|
Description: `DN for LDAP read-only service account used to perform DN and group lookups`,
|
|
|
|
Optional: true,
|
2019-11-19 16:48:13 -05:00
|
|
|
Type: "string",
|
2021-06-03 11:15:44 -04:00
|
|
|
Sensitive: true,
|
2019-11-19 16:48:13 -05:00
|
|
|
},
|
|
|
|
config.HelpKV{
|
2021-01-25 17:26:10 -05:00
|
|
|
Key: LookupBindPassword,
|
|
|
|
Description: `Password for LDAP read-only service account used to perform DN and group lookups`,
|
|
|
|
Optional: true,
|
2019-11-19 16:48:13 -05:00
|
|
|
Type: "string",
|
2021-06-03 11:15:44 -04:00
|
|
|
Sensitive: true,
|
2019-11-19 16:48:13 -05:00
|
|
|
},
|
|
|
|
config.HelpKV{
|
2021-01-25 17:26:10 -05:00
|
|
|
Key: UserDNSearchBaseDN,
|
2022-01-26 18:05:59 -05:00
|
|
|
Description: `";" separated list of user search base DNs e.g. "dc=myldapserver,dc=com"`,
|
2021-01-25 17:26:10 -05:00
|
|
|
Optional: true,
|
2022-01-26 18:05:59 -05:00
|
|
|
Type: "list",
|
2021-01-25 17:26:10 -05:00
|
|
|
},
|
|
|
|
config.HelpKV{
|
|
|
|
Key: UserDNSearchFilter,
|
|
|
|
Description: `Search filter to lookup user DN`,
|
|
|
|
Optional: true,
|
|
|
|
Type: "string",
|
2020-03-22 01:47:26 -04:00
|
|
|
},
|
2021-01-25 17:26:10 -05:00
|
|
|
config.HelpKV{
|
|
|
|
Key: GroupSearchFilter,
|
|
|
|
Description: `search filter for groups e.g. "(&(objectclass=groupOfNames)(memberUid=%s))"`,
|
2019-11-19 16:48:13 -05:00
|
|
|
Optional: true,
|
2021-01-25 17:26:10 -05:00
|
|
|
Type: "string",
|
2019-11-19 16:48:13 -05:00
|
|
|
},
|
|
|
|
config.HelpKV{
|
2021-01-25 17:26:10 -05:00
|
|
|
Key: GroupSearchBaseDN,
|
|
|
|
Description: `";" separated list of group search base DNs e.g. "dc=myldapserver,dc=com"`,
|
2019-11-19 16:48:13 -05:00
|
|
|
Optional: true,
|
2021-01-25 17:26:10 -05:00
|
|
|
Type: "list",
|
2019-11-19 16:48:13 -05:00
|
|
|
},
|
|
|
|
config.HelpKV{
|
|
|
|
Key: TLSSkipVerify,
|
2020-03-19 22:20:51 -04:00
|
|
|
Description: `trust server TLS without verification, defaults to "off" (verify)`,
|
|
|
|
Optional: true,
|
|
|
|
Type: "on|off",
|
|
|
|
},
|
|
|
|
config.HelpKV{
|
|
|
|
Key: ServerInsecure,
|
2020-03-22 01:47:26 -04:00
|
|
|
Description: `allow plain text connection to AD/LDAP server, defaults to "off"`,
|
2019-11-19 16:48:13 -05:00
|
|
|
Optional: true,
|
|
|
|
Type: "on|off",
|
|
|
|
},
|
2021-01-25 17:26:10 -05:00
|
|
|
config.HelpKV{
|
|
|
|
Key: ServerStartTLS,
|
|
|
|
Description: `use StartTLS connection to AD/LDAP server, defaults to "off"`,
|
|
|
|
Optional: true,
|
|
|
|
Type: "on|off",
|
|
|
|
},
|
2019-11-19 16:48:13 -05:00
|
|
|
config.HelpKV{
|
|
|
|
Key: config.Comment,
|
2019-12-04 18:32:37 -05:00
|
|
|
Description: config.DefaultComment,
|
2019-11-19 16:48:13 -05:00
|
|
|
Optional: true,
|
|
|
|
Type: "sentence",
|
|
|
|
},
|
2019-10-23 01:59:13 -04:00
|
|
|
}
|
|
|
|
)
|