/*
* InspIRCd -- Internet Relay Chat Daemon
*
- * Copyright (C) 2017-2019 Sadie Powell <sadie@witchery.services>
+ * Copyright (C) 2020 Christos Triantafyllidis <ctria@users.noreply.github.com>
+ * Copyright (C) 2018-2020 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2014, 2018 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2013-2014 Adam <Adam@anope.org>
*
public:
AdminBindInterface(Module* c, const std::string& p, const std::string& u, const std::string& o, const std::string& pa, const std::string& b, const std::string& w)
- : LDAPInterface(c), provider(p), user(u), opername(p), password(pa), base(b), what(w)
+ : LDAPInterface(c)
+ , provider(p)
+ , user(u)
+ , opername(o)
+ , password(pa)
+ , base(b)
+ , what(w)
{
}
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)
Version GetVersion() CXX11_OVERRIDE
{
- return Version("Adds the ability to authenticate opers via LDAP", VF_VENDOR);
+ return Version("Allows server operators to be authenticated against an LDAP database.", VF_VENDOR);
}
};