1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 08:03:12 +02:00

Merge branch '2.0' into 2.1.

This commit is contained in:
Sadie Powell
2024-03-04 12:08:46 +00:00
2 changed files with 18 additions and 0 deletions
+9
View File
@@ -303,6 +303,15 @@ public:
Anope::string new_dn = username_attribute + "=" + na->nick + "," + basedn;
this->ldap->Add(&this->orinterface, new_dn, attributes);
}
void OnPreNickExpire(NickAlias *na, bool &expire) override
{
// We can't let nicks expire if they still have a group or
// there will be a zombie account left over that can't be
// authenticated to.
if (na->nick == na->nc->display && na->nc->aliases->size() > 1)
expire = false;
}
};
MODULE_INIT(ModuleLDAPAuthentication)