lib/net/ldap.rb in socialcast-net-ldap-0.1.6 vs lib/net/ldap.rb in socialcast-net-ldap-0.1.7

- old
+ new

@@ -244,11 +244,11 @@ # operation (typically binding first) and then disconnect from the server. # The exception is Net::LDAP#open, which makes a connection to the server # and then keeps it open while it executes a user-supplied block. # Net::LDAP#open closes the connection on completion of the block. class Net::LDAP - VERSION = "0.1.6" + VERSION = "0.1.7" class LdapError < StandardError; end SearchScope_BaseObject = 0 SearchScope_SingleLevel = 1 @@ -1196,10 +1196,13 @@ @conn.close @conn = nil end def next_msgid - @msgid ||= 0 + # avoids using the msgid range 128-255 by starting the msgid counter at 300 + # otherwise certain versions and/or configurations of Microsoft's Active Directory will + # return Error Searching: invalid response-type in search: 24 and halt the mirroring process + @msgid ||= 300 @msgid += 1 end def bind(auth) meth = auth[:method]