His genjutsu wouldnt work on madara, cause of obvious reasons. Madara lived in darkness after his EMS awakening... But this would easly affect even those of with very high ranking.