In speeches to adoring crowds , Obama harshly criticized Kenyan officials for engaging in graft and political divisiveness based on ethnicity .