@@ -553,7 +553,7 @@ def open
553553 # anything with the bind results. We then pass self to the caller's
554554 # block, where he will execute his LDAP operations. Of course they will
555555 # all generate auth failures if the bind was unsuccessful.
556- raise LdapError , "Open already in progress" if @open_connection
556+ raise Net :: LDAP :: LdapError , "Open already in progress" if @open_connection
557557
558558 begin
559559 @open_connection = Net ::LDAP ::Connection . new ( :host => @host ,
@@ -1034,7 +1034,7 @@ def delete(args)
10341034 # dn = "[email protected] , ou=people, dc=example, dc=com" 10351035 # ldap.delete_tree :dn => dn
10361036 def delete_tree ( args )
1037- delete ( args . merge ( :control_codes => [ [ LDAPControls ::DELETE_TREE , true ] ] ) )
1037+ delete ( args . merge ( :control_codes => [ [ Net :: LDAP :: LDAPControls ::DELETE_TREE , true ] ] ) )
10381038 end
10391039 # This method is experimental and subject to change. Return the rootDSE
10401040 # record from the LDAP server as a Net::LDAP::Entry, or an empty Entry if
@@ -1106,7 +1106,7 @@ def search_subschema_entry
11061106 #++
11071107 def paged_searches_supported?
11081108 @server_caps ||= search_root_dse
1109- @server_caps [ :supportedcontrol ] . include? ( LDAPControls ::PAGED_RESULTS )
1109+ @server_caps [ :supportedcontrol ] . include? ( Net :: LDAP :: LDAPControls ::PAGED_RESULTS )
11101110 end
11111111end # class LDAP
11121112
@@ -1403,7 +1403,7 @@ def search(args = {})
14031403 controls = [ ]
14041404 controls <<
14051405 [
1406- LDAPControls ::PAGED_RESULTS . to_ber ,
1406+ Net :: LDAP :: LDAPControls ::PAGED_RESULTS . to_ber ,
14071407 # Criticality MUST be false to interoperate with normal LDAPs.
14081408 false . to_ber ,
14091409 rfc2696_cookie . map { |v | v . to_ber } . to_ber_sequence . to_s . to_ber
@@ -1451,7 +1451,7 @@ def search(args = {})
14511451 more_pages = false
14521452 if result_code == 0 and controls
14531453 controls . each do |c |
1454- if c . oid == LDAPControls ::PAGED_RESULTS
1454+ if c . oid == Net :: LDAP :: LDAPControls ::PAGED_RESULTS
14551455 # just in case some bogus server sends us more than 1 of these.
14561456 more_pages = false
14571457 if c . value and c . value . length > 0
0 commit comments