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)
1001
1001
begin
1002
1002
conn = Connection . new ( :host => @host , :port => @port ,
1003
1003
: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
1007
1007
ensure
1008
1008
conn . close if conn
1009
1009
end
@@ -1402,10 +1402,11 @@ def search(args = {})
1402
1402
scope = args [ :scope ] || Net ::LDAP ::SearchScope_WholeSubtree
1403
1403
raise Net ::LDAP ::LdapError , "invalid search scope" unless Net ::LDAP ::SearchScopes . include? ( scope )
1404
1404
1405
+ sort_control = encode_sort_controls ( args . fetch ( :sort_controls ) { false } )
1406
+
1405
1407
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 )
1407
1409
1408
- sort_control = encode_sort_controls ( args . fetch ( :sort_controls ) { false } )
1409
1410
1410
1411
# An interesting value for the size limit would be close to A/D's
1411
1412
# built-in page limit of 1000 records, but openLDAP newer than version
You can’t perform that action at this time.
0 commit comments