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:
parent
7de0147b21
commit
241d9b8fb3
2 changed files with 10 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue