typedef struct {
        boolean fOldIsLocal;
        union {
          sec_id_t           local;      //TRUE
          sec_id_foreign_t   foreign;    //FALSE
        } old_id;

        boolean fNewIsLocal;
        union {
          sec_id_t           local;      //TRUE
          sec_id_foreign_t   foreign;    //FALSE
        } new_id;
} id_to_replace_t;

where

typedef struct {        unsigned32 action;
        union {
          id_to_replace_t user;          //ENTRY_RENAME_USER
          id_to_replace_t group;         //ENTRY_RENAME_GROUP
          sec_acl_entry_t sec_acl;       //all other actions
        } target;
} ent_entry_to_manipulate_t;

where