From d71c37e05911d87830987a09128a178c3e402bb4 Mon Sep 17 00:00:00 2001 From: Christos Triantafyllidis Date: Thu, 3 Dec 2020 01:25:47 +0000 Subject: Check the ident when checking against IP in ldapoper (#1823) --- src/modules/m_ldapoper.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/modules/m_ldapoper.cpp') diff --git a/src/modules/m_ldapoper.cpp b/src/modules/m_ldapoper.cpp index 92a47f3b4..88baf84f3 100644 --- a/src/modules/m_ldapoper.cpp +++ b/src/modules/m_ldapoper.cpp @@ -222,8 +222,7 @@ class ModuleLDAPOper : public Module return MOD_RES_PASSTHRU; std::string acceptedhosts = tag->getString("host"); - std::string hostname = user->ident + "@" + user->GetRealHost(); - if (!InspIRCd::MatchMask(acceptedhosts, hostname, user->GetIPString())) + if (!InspIRCd::MatchMask(acceptedhosts, user->MakeHost(), user->MakeHostIP())) return MOD_RES_PASSTHRU; if (!LDAP) -- cgit v1.3.1-10-gc9f91