class LDAP::Request::Filter
- LDAP::Request::Filter
- Reference
- Object
Defined in:
ldap/request/filter.crConstant Summary
-
ESCAPE_RE =
Regex.new(String.build do |str| str << "[" ESCAPES.keys.each do |e| str << (Regex.escape(e)) end str << "]" end)
-
Compiled character class regexp using the keys from the above hash.
-
ESCAPES =
{"\u0000" => "\\00", "*" => "\\2A", "(" => "\\28", ")" => "\\29", "\\" => "\\5C"}
Constructors
Class Method Summary
- .begins(attribute : String, value)
- .contains(attribute : String, value)
- .ends(attribute : String, value)
- .equal(object : String, value, escaped : Bool = false)
-
.escape(string : String) : String
Escape a string for use in an LDAP filter
- .greater_than(object : String, value)
- .intersect(left : BER, right : BER)
- .intersect(left : Filter, right : Filter)
- .join(left : BER, right : BER)
- .join(left : Filter, right : Filter)
- .less_than(object : String, value)
- .negate(filter : Filter)
- .negate(filter : BER)
- .not_equal(object : String, value, escaped : Bool = false)
- .present?(attribute : String)
- .unescape(value : String, escaped : Bool = false) : String
Instance Method Summary
-
#&(filter)
Joins two or more filters so that all conditions must be true.
-
#|(filter)
Selects entries where either the left or right side are true.
-
#~
Negates a filter.
- #operation : Type
- #to_ber : ASN1::BER
- #to_slice