class Net::LDAP::Filter
def eq(attribute, value)
f = Net::LDAP::Filter.eq("mail", "*anderson*")
mail value containing the substring "anderson":
underlying LDAP protocol. This example selects any entry with a
regular-expressions are not supported due to limitations in the
wildcards: these match zero or more occurrences of any character. Full
parameter to #eq. The string may contain one or more "*" characters as
To match a particular range of values, pass a string as the second
f = Net::LDAP::Filter.eq("sAMAccountName", "*")
one or more values for sAMAccountName:
second parameter to #eq. This example selects only entries that have
mail. Presence is indicated by giving the value "*" in the
the filter. This is useful in case of optional attributes such as
which contain a value for the particular attribute will be selected by
Specifying that an attribute is 'present' means only directory entries
attribute must either be present or match a particular string.
Creates a Filter object indicating that the value of a particular
#
def eq(attribute, value) new(:eq, attribute, value) end