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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user