#7597 IPA: IDM drops all custom attributes when moving account from preserved to stage
Opened a year ago by frenaud. Modified a year ago

Ticket was cloned from Red Hat Bugzilla: Bug 1583950

Please note that this Bug is private and may not be accessible as it contains confidential Red Hat customer information.

Description of problem:

When moving an IPA user from preserved to stage, all custom attributes attached
to that account are dropped.

Version-Release number of selected component (if applicable):

ipa-server-4.5.4-10.el7.x86_64

How reproducible:

Always

Steps to Reproduce:

1) Add a user to IDM stage by running the following command:

   $ ipa stageuser-add <loginID> --random --first=xxx --last=xxx --cn=xxx
--displayname=xxx --initials=xxx --homedir=xxx --gecos=xxx --shell=xxx
--email=xxx --title=xxx --employeenumber=xxx --manager=xxx --street=xxx
--city=xxx --state=xxx --postalcode=xxx --emmployeetype=xxx
*--addattr=dtsUniqueID=xxx
--addattr=mailAlternateAddress=xxx --addattr=mailAlternateAddress=xxx
--addattr=apple-generateduid=xxxxxxxx --addattr=nickName=xxxxx*

As per above some custom attributes are added to the IDM account.

2) Activate the user:

   $ ipa stageuser-activate <loginID>

3) Deactivate the account by:

   $ ipa user-del <loginID> --preserve

  * So far all attributes including custom attribute still show on the account.
    Same can be confirmed  with  ldapsearch.*

4) When we  activate the account again. Move the account to stage and check
   its attributes. The custom attributes will not be present.

   $ ipa user-stage <loginID>
   $ ipa stageuser-show <loginID> --all

Actual results:

IDM drops all custom attributes when moving account from preserved to stage

Expected results:

We expect to keep all custom attributes.

Additional info:

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

a year ago

Login to comment on this ticket.

Metadata