@@ -553,7 +553,7 @@ def open
553
553
# anything with the bind results. We then pass self to the caller's
554
554
# block, where he will execute his LDAP operations. Of course they will
555
555
# 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
557
557
558
558
begin
559
559
@open_connection = Net ::LDAP ::Connection . new ( :host => @host ,
@@ -1034,7 +1034,7 @@ def delete(args)
1034
1034
# dn = "[email protected] , ou=people, dc=example, dc=com"
1035
1035
# ldap.delete_tree :dn => dn
1036
1036
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 ] ] ) )
1038
1038
end
1039
1039
# This method is experimental and subject to change. Return the rootDSE
1040
1040
# record from the LDAP server as a Net::LDAP::Entry, or an empty Entry if
@@ -1106,7 +1106,7 @@ def search_subschema_entry
1106
1106
#++
1107
1107
def paged_searches_supported?
1108
1108
@server_caps ||= search_root_dse
1109
- @server_caps [ :supportedcontrol ] . include? ( LDAPControls ::PAGED_RESULTS )
1109
+ @server_caps [ :supportedcontrol ] . include? ( Net :: LDAP :: LDAPControls ::PAGED_RESULTS )
1110
1110
end
1111
1111
end # class LDAP
1112
1112
@@ -1403,7 +1403,7 @@ def search(args = {})
1403
1403
controls = [ ]
1404
1404
controls <<
1405
1405
[
1406
- LDAPControls ::PAGED_RESULTS . to_ber ,
1406
+ Net :: LDAP :: LDAPControls ::PAGED_RESULTS . to_ber ,
1407
1407
# Criticality MUST be false to interoperate with normal LDAPs.
1408
1408
false . to_ber ,
1409
1409
rfc2696_cookie . map { |v | v . to_ber } . to_ber_sequence . to_s . to_ber
@@ -1451,7 +1451,7 @@ def search(args = {})
1451
1451
more_pages = false
1452
1452
if result_code == 0 and controls
1453
1453
controls . each do |c |
1454
- if c . oid == LDAPControls ::PAGED_RESULTS
1454
+ if c . oid == Net :: LDAP :: LDAPControls ::PAGED_RESULTS
1455
1455
# just in case some bogus server sends us more than 1 of these.
1456
1456
more_pages = false
1457
1457
if c . value and c . value . length > 0
0 commit comments