From 4746b214d66d0f58f30c459eb6b49da825060611 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Fri, 11 Mar 2016 14:22:24 +0100 Subject: [PATCH] Fix: Common name in node wizard isn't case sensitive fixes #11159 --- lib/cli/nodewizardcommand.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/cli/nodewizardcommand.cpp b/lib/cli/nodewizardcommand.cpp index 9c89196d0..d592b0073 100644 --- a/lib/cli/nodewizardcommand.cpp +++ b/lib/cli/nodewizardcommand.cpp @@ -127,7 +127,6 @@ int NodeWizardCommand::Run(const boost::program_options::variables_map& vm, << " [" << Utility::GetFQDN() << "]: "; std::getline(std::cin, answer); - boost::algorithm::to_lower(answer); if (answer.empty()) answer = Utility::GetFQDN(); @@ -151,7 +150,6 @@ wizard_endpoint_loop_start: << " (CN from your master setup): "; std::getline(std::cin, answer); - boost::algorithm::to_lower(answer); if (answer.empty()) { Log(LogWarning, "cli", "Master CN is required! Please retry."); @@ -182,7 +180,6 @@ wizard_endpoint_loop_start: << ConsoleColorTag(Console_Normal) << " (Your master's IP address or FQDN): "; std::getline(std::cin, answer); - boost::algorithm::to_lower(answer); if (answer.empty()) { Log(LogWarning, "cli", "Please enter the master's endpoint connection information."); @@ -200,7 +197,6 @@ wizard_endpoint_loop_start: << " [" << tmpPort << "]: "; std::getline(std::cin, answer); - boost::algorithm::to_lower(answer); if (!answer.empty()) tmpPort = answer; @@ -230,7 +226,6 @@ wizard_master_host: << ConsoleColorTag(Console_Normal) << " [" << master_endpoint_name << "]: "; std::getline(std::cin, answer); - boost::algorithm::to_lower(answer); if (answer.empty() && !master_endpoint_name.IsEmpty()) answer = master_endpoint_name; @@ -245,7 +240,6 @@ wizard_master_host: << ConsoleColorTag(Console_Normal) << " [" << tmpPort << "]: "; std::getline(std::cin, answer); - boost::algorithm::to_lower(answer); if (!answer.empty()) tmpPort = answer; @@ -322,7 +316,6 @@ wizard_ticket: << " (Hint: # icinga2 pki ticket --cn '" << cn << "'): "; std::getline(std::cin, answer); - boost::algorithm::to_lower(answer); if (answer.empty()) goto wizard_ticket; @@ -365,7 +358,6 @@ wizard_ticket: << ConsoleColorTag(Console_Normal) << " []: "; std::getline(std::cin, answer); - boost::algorithm::to_lower(answer); String bind_host = answer; bind_host = bind_host.Trim(); @@ -373,7 +365,6 @@ wizard_ticket: std::cout << "Bind Port []: "; std::getline(std::cin, answer); - boost::algorithm::to_lower(answer); String bind_port = answer; bind_port = bind_port.Trim(); @@ -477,7 +468,6 @@ wizard_ticket: << " (CN) [" << Utility::GetFQDN() << "]: "; std::getline(std::cin, answer); - boost::algorithm::to_lower(answer); if (answer.empty()) answer = Utility::GetFQDN(); @@ -518,7 +508,6 @@ wizard_ticket: << "Bind Host" << ConsoleColorTag(Console_Normal) << " []: "; std::getline(std::cin, answer); - boost::algorithm::to_lower(answer); String bind_host = answer; bind_host = bind_host.Trim(); @@ -527,7 +516,6 @@ wizard_ticket: << "Bind Port" << ConsoleColorTag(Console_Normal) << " []: "; std::getline(std::cin, answer); - boost::algorithm::to_lower(answer); String bind_port = answer; bind_port = bind_port.Trim();