fixes #1809 - templates for freeipa registration [DON'T MERGE]

Just for collaboration.  Still a WIP.