mirror of
https://github.com/anope/anope.git
synced 2026-06-12 19:14:47 +02:00
Merge branch '2.0' into 2.1.
This commit is contained in:
@@ -125,13 +125,13 @@ public:
|
||||
if (!this->binddn.empty())
|
||||
{
|
||||
auto bdn = Anope::Template(this->binddn, {
|
||||
{ "account", u->Account()->display },
|
||||
{ "account", this->ldap->EscapeDN(u->Account()->display) },
|
||||
});
|
||||
this->ldap->Bind(NULL, bdn, this->password.c_str());
|
||||
}
|
||||
|
||||
auto af = Anope::Template(this->filter, {
|
||||
{ "account", u->Account()->display },
|
||||
{ "account", this->ldap->EscapeSF(u->Account()->display) },
|
||||
});
|
||||
this->ldap->Search(new IdentifyInterface(this, u), this->basedn, af);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user