diff options
| author | 2026-05-31 11:18:32 +0100 | |
|---|---|---|
| committer | 2026-06-05 13:43:29 +0100 | |
| commit | b7e5357b144c2e20c72431e22f0f2b13e5be82ce (patch) | |
| tree | 1ffa052689d2f29bab7d4b7f924588579811f090 /include | |
| parent | Fix unnecessary truncation of numbers in some stats output. (diff) | |
Port over some recent changes to the Anope LDAP API.
Diffstat (limited to 'include')
| -rw-r--r-- | include/modules/ldap.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/modules/ldap.h b/include/modules/ldap.h index 706ab890c..d72dd1422 100644 --- a/include/modules/ldap.h +++ b/include/modules/ldap.h @@ -191,4 +191,15 @@ public: * @param val value to compare attr of dn */ virtual void Compare(LDAPInterface* i, const std::string& dn, const std::string& attr, const std::string& val) = 0; + + /** Escapes a LDAP string for use in a DN. + * @param str The string to escape. + */ + virtual std::string EscapeDN(const std::string& str) const = 0; + + /** Escapes a LDAP string for use in a search filter. + * @param str The string to escape. + */ + virtual std::string EscapeSF(const std::string& str) const = 0; + }; |
