Creates a registration entry after checking it and the cap, and audits it.
the entry's record
how the entry got here, recorded on it
the trust domain it must belong to
who created it, for the audit row
ok, the errors, and on success the id and the entry
ok
Creates a registration entry after checking it and the cap, and audits it.