RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1979605 - Unable to set ipaUserAuthType with stageuser-add
Summary: Unable to set ipaUserAuthType with stageuser-add
Keywords:
Status: CLOSED ERRATA
Alias: None
Deadline: 2021-07-12
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: ipa
Version: 8.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Thomas Woerner
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-06 14:07 UTC by Florence Blanc-Renaud
Modified: 2021-11-10 00:00 UTC (History)
4 users (show)

Fixed In Version: idm-client-8050020210708083354.de73ecb2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-09 18:29:22 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FREEIPA-7283 0 None None None 2021-11-09 18:32:35 UTC
Red Hat Product Errata RHBA-2021:4230 0 None None None 2021-11-09 18:29:43 UTC

Description Florence Blanc-Renaud 2021-07-06 14:07:13 UTC
Cloned from upstream: https://pagure.io/freeipa/issue/8909

### Issue
Unable to set `ipaUserAuthType` when creating a new stageuser

#### Steps to Reproduce
Run `ipa stageuser-add --first=$FIRST --last=$LAST $USERNAME --user-auth-type='password'`

#### Actual behavior
```
[root@idm-server ~]$ ipa stageuser-add hpotter --first=Harry --last=Potter --user-auth-type='password'
ipa: ERROR: attribute "ipaUserAuthType" not allowed
[root@idm-server ~]$
```

#### Expected behavior
Stageuser is created successfully with an `ipaUserAuthType` of `password`

#### Version/Release/Distribution
```
[root@idm-server ~]$ rpm -q ipa-server ipa-client 389-ds-base pki-ca krb5-server
ipa-server-4.8.7-16.module+el8.3.0+10289+b6566038.x86_64
ipa-client-4.8.7-16.module+el8.3.0+10289+b6566038.x86_64
389-ds-base-1.4.3.8-7.module+el8.3.0+10310+6e88d919.x86_64
pki-ca-10.9.4-3.module+el8.3.0+10353+73f6df5b.noarch
krb5-server-1.18.2-5.el8.x86_64
[root@idm-server ~]$ cat /etc/redhat-release
Red Hat Enterprise Linux release 8.3 (Ootpa)
[root@idm-server ~]$
```

Comment 1 Florence Blanc-Renaud 2021-07-06 14:08:40 UTC
Fixed upstream:
master:

    ec8b26b stageuser: add ipauserauthtypeclass when required
    05d69c8 XMLRPC test: add a test for stageuser-add --user-auth-type

Comment 2 Florence Blanc-Renaud 2021-07-06 14:11:54 UTC
Upstream ticket:
https://pagure.io/freeipa/issue/8909

Comment 8 Michal Polovka 2021-07-30 10:06:31 UTC
Verified using RHEL8.5 machine with ipa-server-4.9.6-4.module+el8.5.0+11912+1b4496cf.x86_64


# ipa stageuser-add --first=test --last=User testuser --user-auth-type='password'
---------------------------
Added stage user "testuser"
---------------------------
  User login: testuser
  First name: test
  Last name: User
  Full name: test User
  Display name: test User
  Initials: tU
  Home directory: /home/testuser
  GECOS: test User
  Login shell: /bin/sh
  Principal name: testuser.UPSHIFT.RDU2.REDHAT.COM
  Principal alias: testuser.UPSHIFT.RDU2.REDHAT.COM
  Email address: testuser.upshift.rdu2.redhat.com
  UID: -1
  GID: -1
  User authentication types: password
  Password: False
  Kerberos keys available: False

Comment 10 errata-xmlrpc 2021-11-09 18:29:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (ipa bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:4230


Note You need to log in before you can comment on or make changes to this bug.