[Freeipa-devel] [PATCH] 0002 Add missing error message when adding duplicate external member to group

Ana Krivokapic akrivoka at redhat.com
Thu Feb 21 16:46:23 UTC 2013


On 02/19/2013 09:46 PM, Rob Crittenden wrote:
> Ana Krivokapic wrote:
>> When adding a duplicate member to a group, an error message is issued,
>> informing the user that the entry is already a member of the group. This
>> message was missing in case of an external member.
>>
>> Ticket: https://fedorahosted.org/freeipa/ticket/3254
>
> This works ok but the sister command, group-remove-member, has the
> same problem. Can you add a fix there as well?
>
> I don't know if there is a way to add a unit test for this since the
> external member is validated meaning we'd need to set up trusts as
> well. It might be nice to have an optional test that can be run when a
> trust is configured to avoid regressions.
>
> rob
>
I fixed the group-remove-member command and added unit tests which can
be run when the trust is established (they will be skipped when the
trust is not established).

I also noticed that, in contrast to group-add-member,
group-remove-member did not allow the format 'AD\name' or
'name at ad.domain.com' for the --external option. I included this fix in
the patch, so the two user friendly formats are now supported.

Updated patch is attached.

-- 
Regards,

Ana Krivokapic
Associate Software Engineer
FreeIPA team
Red Hat Inc.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-akrivoka-0002-02-Improve-error-messages-for-external-group-members.patch
Type: text/x-patch
Size: 11755 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20130221/2f0651b5/attachment.bin>


More information about the Freeipa-devel mailing list