If you right click on a character's portrait, you can switch their behaviour from normal to aggressive, and they will automatically attack (especially useful if your secondary character is an archer). Whichever character is selected as leader is under your control, so will not auto-attack regardless of this setting.