diff --git a/mongodbatlas/resource_mongodbatlas_ldap_configuration.go b/mongodbatlas/resource_mongodbatlas_ldap_configuration.go index 014fb4ed98..66b6c6f2dd 100644 --- a/mongodbatlas/resource_mongodbatlas_ldap_configuration.go +++ b/mongodbatlas/resource_mongodbatlas_ldap_configuration.go @@ -202,7 +202,7 @@ func resourceMongoDBAtlasLDAPConfigurationUpdate(ctx context.Context, d *schema. ldap := &matlas.LDAP{} if d.HasChange("authentication_enabled") { - ldap.AuthenticationEnabled = pointy.Bool(d.Get("").(bool)) + ldap.AuthenticationEnabled = pointy.Bool(d.Get("authentication_enabled").(bool)) } if d.HasChange("authorization_enabled") {