]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Check the ident when checking against IP in ldapoper (#1823)
authorChristos Triantafyllidis <ctria@users.noreply.github.com>
Thu, 3 Dec 2020 01:25:47 +0000 (01:25 +0000)
committerGitHub <noreply@github.com>
Thu, 3 Dec 2020 01:25:47 +0000 (01:25 +0000)
src/modules/m_ldapoper.cpp

index 92a47f3b4bd038135a7b713ed847a6e0b55aee79..88baf84f3cb1bf8dff20c84b84a499c4ca524b00 100644 (file)
@@ -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)