app/models/canvas/ldap.rb
# Performs search for guest users updated since last import
Performs search for guest users updated since last import
Performs search for guest users updated since last import
def search_updated_guests(timestamp)
      ldap_timestamp = timestamp.to_time.utc.strftime(TIMESTAMP_FORMAT)
      modified_timestamp_filter = Net::LDAP::Filter.ge('modifytimestamp', ldap_timestamp)
      args = {}
      args[:base] = GUEST_DN
      args[:filter] = modified_timestamp_filter
      updated_guests = client.search(args)
    end
def search_updated_guests ( timestamp ) ldap_timestamp = timestamp . to_time . utc . strftime ( TIMESTAMP_FORMAT ) modified_timestamp_filter = Net :: LDAP :: Filter . ge ( 'modifytimestamp' , ldap_timestamp ) args = { } args [ :base ] = GUEST_DN args [ :filter ] = modified_timestamp_filter updated_guests = client . search ( args ) end
Performs search for guest users updated since last import
Performs search for guest users updated since last import
timestamp