@@ -598,6 +598,8 @@ def open
598
598
# Net::LDAP::SearchScope_WholeSubtree. Default is WholeSubtree.)
599
599
# * :size (an integer indicating the maximum number of search entries to
600
600
# return. Default is zero, which signifies no limit.)
601
+ # * :deref (one of: Net::LDAP::DerefAliases_Never, Net::LDAP::DerefAliases_Search,
602
+ # Net::LDAP::DerefAliases_Find, Net::LDAP::DerefAliases_Always. Default is Never.)
601
603
#
602
604
# #search queries the LDAP server and passes <i>each entry</i> to the
603
605
# caller-supplied block, as an object of type Net::LDAP::Entry. If the
@@ -1001,8 +1003,8 @@ def rename(args)
1001
1003
begin
1002
1004
conn = Connection . new ( :host => @host , :port => @port ,
1003
1005
:encryption => @encryption )
1004
- if ( @result = conn . bind ( args [ :auth ] || @auth ) ) . result_code == 0
1005
- @result = conn . rename ( args )
1006
+ if ( @result = conn . bind ( args [ :auth ] || @auth ) ) . result_code == 0
1007
+ @result = conn . rename ( args )
1006
1008
end
1007
1009
ensure
1008
1010
conn . close if conn
@@ -1402,7 +1404,7 @@ def search(args = {})
1402
1404
scope = args [ :scope ] || Net ::LDAP ::SearchScope_WholeSubtree
1403
1405
raise Net ::LDAP ::LdapError , "invalid search scope" unless Net ::LDAP ::SearchScopes . include? ( scope )
1404
1406
1405
- sort_control = encode_sort_controls ( args . fetch ( :sort_controls ) { false } )
1407
+ sort_control = encode_sort_controls ( args . fetch ( :sort_controls ) { false } )
1406
1408
1407
1409
deref = args [ :deref ] || Net ::LDAP ::DerefAliases_Never
1408
1410
raise Net ::LDAP ::LdapError . new ( "invalid alias dereferencing value" ) unless Net ::LDAP ::DerefAliasesArray . include? ( deref )
0 commit comments