]> granicus.if.org Git - icinga2/commitdiff
Fix: Common name in node wizard isn't case sensitive
authorMichael Friedrich <michael.friedrich@netways.de>
Fri, 11 Mar 2016 13:22:24 +0000 (14:22 +0100)
committerMichael Friedrich <michael.friedrich@netways.de>
Fri, 11 Mar 2016 13:22:24 +0000 (14:22 +0100)
fixes #11159

lib/cli/nodewizardcommand.cpp

index 9c89196d07ebcee7551b1fa1b59666cb96085696..d592b0073c5a0b311d1cd0524acd2d4cc8b8063d 100644 (file)
@@ -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();