1
0
mirror of https://github.com/rancher/types.git synced 2025-08-31 12:48:45 +00:00

Add starttls option for ldap and AD

This commit is contained in:
mrajashree
2020-12-22 16:35:53 -08:00
parent 991f792ecf
commit 2f4341cb94

View File

@@ -239,6 +239,7 @@ type ActiveDirectoryConfig struct {
Servers []string `json:"servers,omitempty" norman:"type=array[string],required"`
Port int64 `json:"port,omitempty" norman:"default=389"`
TLS bool `json:"tls,omitempty" norman:"default=false"`
StartTLS bool `json:"starttls,omitempty" norman:"default=false"`
Certificate string `json:"certificate,omitempty"`
DefaultLoginDomain string `json:"defaultLoginDomain,omitempty"`
ServiceAccountUsername string `json:"serviceAccountUsername,omitempty" norman:"required"`
@@ -274,6 +275,7 @@ type LdapFields struct {
Servers []string `json:"servers,omitempty" norman:"type=array[string],notnullable,required"`
Port int64 `json:"port,omitempty" norman:"default=389,notnullable,required"`
TLS bool `json:"tls,omitempty" norman:"default=false,notnullable,required"`
StartTLS bool `json:"starttls,omitempty" norman:"default=false"`
Certificate string `json:"certificate,omitempty"`
ServiceAccountDistinguishedName string `json:"serviceAccountDistinguishedName,omitempty" norman:"required"`
ServiceAccountPassword string `json:"serviceAccountPassword,omitempty" norman:"type=password,required"`