1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 21:46:38 +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
+3 -3
View File
@@ -92,8 +92,8 @@ public:
if (ii->admin_bind)
{
auto sf = Anope::Template(search_filter, {
{ "account", ii->req->GetAccount() },
{ "object_class", object_class },
{ "account", ii->lprov->EscapeSF(ii->req->GetAccount()) },
{ "object_class", object_class },
});
try
{
@@ -310,7 +310,7 @@ public:
attributes[3].name = this->password_attribute;
attributes[3].values.push_back(pass);
Anope::string new_dn = username_attribute + "=" + na->nick + "," + basedn;
Anope::string new_dn = username_attribute + "=" + this->ldap->EscapeDN(na->nick) + "," + basedn;
this->ldap->Add(&this->orinterface, new_dn, attributes);
}