File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1001,9 +1001,9 @@ def rename(args)
10011001 begin
10021002 conn = Connection . new ( :host => @host , :port => @port ,
10031003 :encryption => @encryption )
1004- if ( @result = conn . bind ( args [ :auth ] || @auth ) ) . result_code == 0
1005- @result = conn . rename ( args )
1006- end
1004+ if ( @result = conn . bind ( args [ :auth ] || @auth ) ) . result_code == 0
1005+ @result = conn . rename ( args )
1006+ end
10071007 ensure
10081008 conn . close if conn
10091009 end
@@ -1402,10 +1402,11 @@ def search(args = {})
14021402 scope = args [ :scope ] || Net ::LDAP ::SearchScope_WholeSubtree
14031403 raise Net ::LDAP ::LdapError , "invalid search scope" unless Net ::LDAP ::SearchScopes . include? ( scope )
14041404
1405+ sort_control = encode_sort_controls ( args . fetch ( :sort_controls ) { false } )
1406+
14051407 deref = args [ :deref ] || Net ::LDAP ::DerefAliases_Never
1406- raise LdapError . new ( "invalid alias dereferencing value" ) unless Net ::LDAP ::DerefAliasesArray . include? ( deref )
1408+ raise Net :: LDAP :: LdapError . new ( "invalid alias dereferencing value" ) unless Net ::LDAP ::DerefAliasesArray . include? ( deref )
14071409
1408- sort_control = encode_sort_controls ( args . fetch ( :sort_controls ) { false } )
14091410
14101411 # An interesting value for the size limit would be close to A/D's
14111412 # built-in page limit of 1000 records, but openLDAP newer than version
You can’t perform that action at this time.
0 commit comments