Net::LDAP#search now automatically converts filters in rfc-2254 notation.

This commit is contained in:
blackhedd 2006-08-15 08:34:06 +00:00
parent faed957164
commit 089c737160

View file

@ -1089,7 +1089,7 @@ module Net
#
def search args = {}
search_filter = (args && args[:filter]) || Filter.eq( "objectclass", "*" )
#search_filter = Filter.construct(search_filter) if search_filter.is_a?(String)
search_filter = Filter.construct(search_filter) if search_filter.is_a?(String)
search_base = (args && args[:base]) || "dc=example,dc=com"
search_attributes = ((args && args[:attributes]) || []).map {|attr| attr.to_s.to_ber}
return_referrals = args && args[:return_referrals] == true