Stanley Milgram, “Group Effects,” Obedience to Authority: An Experimental View, (New York: Harper Collins, 1974), p. 113:
At this point a distinction must be made between the terms obedience and conformity. Conformity, in particular, has a very broad meaning, but for the purposes of this discussion, I shall limit it to the action of a subject when he goes along with peers, people of his own status, who have no special right to direct his behavior. Obedience will be restricted to the action of the subject who complies with authority. Consider a recruit who enters military service. He scrupulously carries out the orders of his superiors. At the same time, he adopts the habits, routine and language of his peers. The former represents obedience and the latter, conformity.