From 9bb55626d51f217466bc08104d2f32eb0bf57c02 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 30 Apr 2026 22:29:38 +0100 Subject: Switch ascii comparisons over to our own casemap functions. --- modules/extra/ldap.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/extra/ldap.cpp') diff --git a/modules/extra/ldap.cpp b/modules/extra/ldap.cpp index 50cc9022e..26799df2e 100644 --- a/modules/extra/ldap.cpp +++ b/modules/extra/ldap.cpp @@ -259,12 +259,12 @@ private: if (urlComponents.dwSchemeLength > 0) { const std::string scheme(urlComponents.lpszScheme); - if (insp::equalsci(scheme, "ldaps")) + if (insp::ascii_equals(scheme, "ldaps")) { port = 636; // Default encrypted port. secure = true; } - else if (!insp::equalsci(scheme, "ldap")) + else if (!insp::ascii_equals(scheme, "ldap")) return LDAP_CONNECT_ERROR; // Invalid protocol. } @@ -369,9 +369,9 @@ public: , config(tag) { std::string scope = config->getString("searchscope"); - if (insp::equalsci(scope, "base")) + if (insp::ascii_equals(scope, "base")) searchscope = LDAP_SCOPE_BASE; - else if (insp::equalsci(scope, "onelevel")) + else if (insp::ascii_equals(scope, "onelevel")) searchscope = LDAP_SCOPE_ONELEVEL; else searchscope = LDAP_SCOPE_SUBTREE; @@ -628,7 +628,7 @@ public: for (const auto& [_, tag] : ServerInstance->Config->ConfTags("database")) { - if (!insp::equalsci(tag->getString("module"), "ldap")) + if (!insp::ascii_equals(tag->getString("module"), "ldap")) continue; std::string id = tag->getString("id"); -- cgit v1.3.1-10-gc9f91