git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12453
e03df62e-2008-0410-955e-
edbf42e46eb7
virtual ModResult OnPassCompare(Extensible* ex, const std::string &data, const std::string &input, const std::string &hashtype)
{
virtual ModResult OnPassCompare(Extensible* ex, const std::string &data, const std::string &input, const std::string &hashtype)
{
- User* user = dynamic_cast<User*>(ex);
if (hashtype == "ldap")
{
if (hashtype == "ldap")
{
- if (LookupOper(user, data, input))
- {
+ if (LookupOper(data, input))
/* This is an ldap oper and has been found, claim the OPER command */
/* This is an ldap oper and has been found, claim the OPER command */
+ return MOD_RES_ALLOW;
+ else
}
/* We don't know this oper! */
return MOD_RES_PASSTHRU;
}
}
/* We don't know this oper! */
return MOD_RES_PASSTHRU;
}
- bool LookupOper(User* user, const std::string &what, const std::string &opassword)
+ bool LookupOper(const std::string &what, const std::string &opassword)
{
if (conn == NULL)
if (!Connect())
{
if (conn == NULL)
if (!Connect())