When we are adding a user with user-add command, post callback makes it a member of ipausers group. However, when user for example also has an automember rule or default group configured to make all new users members of ipausers group, user-add will end with error:
user-add
ipausers
# ipa user-add b First name: b Last name: b ipa: ERROR: This entry is already a member
user-add post-callback should just catch AlreadyGroupMember exception raised by ldap.add_entry_to_group(dn, group_dn) and continue.
ldap.add_entry_to_group(dn, group_dn)
Ticket has been cloned to Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=860682
master: 0edeb9b[[BR]] ipa-3-0: 316d5ca
Metadata Update from @mkosek: - Issue assigned to tbabej - Issue set to the milestone: FreeIPA 3.0 RC2
Login to comment on this ticket.