#8909 Unable to set ipaUserAuthType with stageuser-add
Closed: fixed 2 years ago by frenaud. Opened 2 years ago by noahwalden.

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 ~]$

Metadata Update from @frenaud:
- Issue assigned to frenaud

2 years ago

This can easily be reproduced and needs a fix.
In the meantime, there is an easy workaround: first create the stageuser (without user-auth-type), the modify the stageuser:

ipa stageuser-add hpotter --first=Harry --last=Potter
ipa stageuser-mod hpotter --user-auth-type='password'

Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/5871

2 years ago

master:

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

Metadata Update from @frenaud:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1979605

2 years ago

ipa-4-9:

  • 06468b2 stageuser: add ipauserauthtypeclass when required
  • 4a5a0fe XMLRPC test: add a test for stageuser-add --user-auth-type

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata