If this is against the rules, then it is not allowed.
With regard to the salary, if the bank is private, he have to return part of the salary which falls against such action, while if it is partially owned be the government, then this part should be paid to poor people.