URL:
https://github.com/freeipa/freeipa/pull/5871
Author: flo-renaud
Title: #5871: stageuser: add ipauserauthtypeclass when required
Action: opened
PR body:
"""
### stageuser: add ipauserauthtypeclass when required
The command
ipa stageuser-add --user-auth-type=xxx
is currently failing because the objectclass ipauserauthtypeclass
is missing from the created entry.
There is code adding the missing objectclass in the
pre_common_callback method of user_add, and this code should
be common to user_add and stageuser_add. In order to avoid code
duplication, it makes more sense to move the existing code to
pre_common_callback of baseuser_add, that is called by both
classes.
Fixes:
https://pagure.io/freeipa/issue/8909
### XMLRPC test: add a test for stageuser-add --user-auth-type
Related:
https://pagure.io/freeipa/issue/8909
"""
To pull the PR as Git branch:
git remote add ghfreeipa
https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/5871/head:pr5871
git checkout pr5871