module NetLdapPatches::Connection::NextMsgid
Constants
- INITIAL_MSGID_ENV_VAR
Public Instance Methods
next_msgid()
click to toggle source
# File lib/net_ldap_patches/connection/next_msgid.rb, line 5 def next_msgid # 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 ||= ENV.key?(INITIAL_MSGID_ENV_VAR) ? ENV[INITIAL_MSGID_ENV_VAR].to_i : 300 @msgid += 1 end