1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 17:04:47 +02:00

Add EscapeDN and EscapeSF to the LDAP API.

This commit is contained in:
Sadie Powell
2026-05-26 09:29:57 +01:00
parent 01fc7421b6
commit 449cfa6503
2 changed files with 84 additions and 0 deletions
+10
View File
@@ -166,6 +166,16 @@ class LDAPProvider : public Service
* @param attributes The attributes to modify
*/
virtual void Modify(LDAPInterface *i, const Anope::string &base, LDAPMods &attributes) = 0;
/** Escapes a LDAP string for use in a DN.
* @param str The string to escape.
*/
virtual Anope::string EscapeDN(const Anope::string &str) const = 0;
/** Escapes a LDAP string for use in a search filter.
* @param str The string to escape.
*/
virtual Anope::string EscapeSF(const Anope::string &str) const = 0;
};
#endif // ANOPE_LDAP_H