I don't know Duncun, more than a few of my friends that are in the service have told me, that if they get cuaght doing it with anyone else in thier command in the field or at sea, on even on base property in some cases; that there are consequences, even if its on shore leave or off post sometimes.
More often than not they go after the woman alone and eaither don't penalize the male or have far less harsher penalty enforced, and regardless of rank or duty assignment if it's relations with the same sex, its over they are going to be kicked out of the service period.