Ticket was cloned from Red Hat Bugzilla: Bug 1721550
Please note that this Bug is private and may not be accessible as it contains confidential Red Hat customer information.
Description of problem: staged user is not recognized without objectClass posixaccount Version-Release number of selected component (if applicable): Red Hat Enterprise Linux 7.6 ipa-server-4.6.4-10.el7_6.3.x86_64 How reproducible: Below output shows a staged user that was manually added with "ldapmodify", but as you can see, it is not found with "ipa stageuser-find". # Get credentials kinit admin # Add staged user ldapmodify -Y GSSAPI dn: uid=newtest,cn=staged users,cn=accounts,cn=provisioning,dc=example.com changetype: add objectClass: top objectClass: inetorgperson objectClass: organizationalPerson objectClass: person uid: newtest sn: newtest givenName: newtest cn: newtest ^D
$ ldapsearch -Y GSSAPI uid=newtest SASL/GSSAPI authentication started SASL username: admin(a)EXAMPLE.COM SASL SSF: 256 SASL data security layer installed.
dn: uid=newtest,cn=staged users,cn=accounts,cn=provisioning,dc=example,dc=com objectClass: top objectClass: inetorgperson objectClass: organizationalPerson objectClass: person uid: atest sn: atest givenName: atest cn: atest
search: 4 result: 0 Success
This user will be recognized, only if we add the following attributes: objectClass: posixaccount uidNumber: gidNumber: homeDirectory: /home/atest Expected results: ipa stageuser-find should list the user "newtest". Additional info: This was being discussed in the upstream community mailing lists. (*) https://lists.fedorahosted.org/archives/list/freeipa-users@lists.fedorahost ed.org/thread/AKYU734SUB2FDZWHFATKGX3OCICEFXAV/
Metadata Update from @frenaud: - Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1721550
Metadata Update from @frenaud: - Issue assigned to frenaud
Metadata Update from @frenaud: - Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/3289
master:
ipa-4-7:
ipa-4-6:
Metadata Update from @frenaud: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
Metadata Update from @frenaud: - Custom field test_case adjusted to ipatests/test_xmlrpc/test_stageuser_plugin.py::TestStagedUser::test_without_posixaccount
Login to comment on this ticket.