@@ -598,6 +598,8 @@ def open
598598 # Net::LDAP::SearchScope_WholeSubtree. Default is WholeSubtree.)
599599 # * :size (an integer indicating the maximum number of search entries to
600600 # 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.)
601603 #
602604 # #search queries the LDAP server and passes <i>each entry</i> to the
603605 # caller-supplied block, as an object of type Net::LDAP::Entry. If the
@@ -1001,8 +1003,8 @@ def rename(args)
10011003 begin
10021004 conn = Connection . new ( :host => @host , :port => @port ,
10031005 :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 )
10061008 end
10071009 ensure
10081010 conn . close if conn
@@ -1402,7 +1404,7 @@ def search(args = {})
14021404 scope = args [ :scope ] || Net ::LDAP ::SearchScope_WholeSubtree
14031405 raise Net ::LDAP ::LdapError , "invalid search scope" unless Net ::LDAP ::SearchScopes . include? ( scope )
14041406
1405- sort_control = encode_sort_controls ( args . fetch ( :sort_controls ) { false } )
1407+ sort_control = encode_sort_controls ( args . fetch ( :sort_controls ) { false } )
14061408
14071409 deref = args [ :deref ] || Net ::LDAP ::DerefAliases_Never
14081410 raise Net ::LDAP ::LdapError . new ( "invalid alias dereferencing value" ) unless Net ::LDAP ::DerefAliasesArray . include? ( deref )
0 commit comments