1
0
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:
Sadie Powell
2026-05-26 10:48:07 +01:00
5 changed files with 93 additions and 7 deletions
+2 -2
View File
@@ -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);
}