From c5259df63445f28dfe901905916343d6b403f3a8 Mon Sep 17 00:00:00 2001 From: Hirotake Kobayashi Date: Thu, 1 Apr 2021 17:58:53 +0900 Subject: [PATCH] remove use_tls attribute (#12) * remove use_tls property * update document --- README.md | 1 - docs/index.md | 1 - internal/provider/provider.go | 6 ------ 3 files changed, 8 deletions(-) diff --git a/README.md b/README.md index 23cbfd8..4336df2 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,6 @@ EOF provider "ldap" { ldap_host = "ldap.example.org" ldap_port = 389 - use_tls = true bind_user = "cn=admin,dc=example,dc=com" bind_password = "admin" } diff --git a/docs/index.md b/docs/index.md index 3b718d7..9512146 100644 --- a/docs/index.md +++ b/docs/index.md @@ -44,4 +44,3 @@ provider "ldap" { - **start_tls** (Boolean) Upgrade TLS to secure the connection (default: false). - **tls** (Boolean) Enable TLS encryption for LDAP (LDAPS) (default: false). - **tls_insecure** (Boolean) Don't verify server TLS certificate (default: false). -- **use_tls** (Boolean, Deprecated) Use TLS to secure the connection (default: true). diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 67445cd..6fabd1a 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -21,12 +21,6 @@ func Provider() *schema.Provider { DefaultFunc: schema.EnvDefaultFunc("LDAP_PORT", 389), Description: "The LDAP protocol port (default: 389).", }, - "use_tls": { - Type: schema.TypeBool, - Optional: true, - Description: "Use TLS to secure the connection (default: true).", - Deprecated: "use_tls attribute has been rename to start_tls.", - }, "bind_user": { Type: schema.TypeString, Required: true,