Skip to content

Commit 089c737

Browse files
author
blackhedd
committed
Net::LDAP#search now automatically converts filters in rfc-2254 notation.
1 parent faed957 commit 089c737

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/ldap.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ def bind auth
10891089
#
10901090
def search args = {}
10911091
search_filter = (args && args[:filter]) || Filter.eq( "objectclass", "*" )
1092-
#search_filter = Filter.construct(search_filter) if search_filter.is_a?(String)
1092+
search_filter = Filter.construct(search_filter) if search_filter.is_a?(String)
10931093
search_base = (args && args[:base]) || "dc=example,dc=com"
10941094
search_attributes = ((args && args[:attributes]) || []).map {|attr| attr.to_s.to_ber}
10951095
return_referrals = args && args[:return_referrals] == true

0 commit comments

Comments
 (0)