Took a suggestion from Andre Nathan (andre@digirati.com.br)

to change the behavior of Net::LDAP::Filter#method_missing
to allow case-insensitive attribute names.
This commit is contained in:
blackhedd 2006-05-18 03:52:38 +00:00
parent 7de0147b21
commit 241d9b8fb3
2 changed files with 10 additions and 4 deletions

View file

@ -272,8 +272,14 @@ class Filter
# Converts an LDAP filter-string (in the prefix syntax specified in RFC-2254)
# to a Net::LDAP::Filter.
def self.from_rfc2254 str
FilterParser.new(str).filter
def self.construct ldap_filter_string
FilterParser.new(ldap_filter_string).filter
end
# Synonym for #construct.
# to a Net::LDAP::Filter.
def self.from_rfc2254 ldap_filter_string
construct ldap_filter_string
end
end # class Net::LDAP::Filter