Files
freeipa/ipaserver/plugins
Florence Blanc-Renaud 794b2c32f6 User and groups: rename with --setattr must check format
There are 2 possible methods to rename users and groups:
- either use ipa user|group-mod oldname --rename newname
- or use settattr:
   ipa user-mod oldname --setattr uid=newname
   ipa group-mod oldname --setattr cn=newname

The first method validates the new name but the second method
doesn't. Add a validation to make both methods consistent

Fixes: https://pagure.io/freeipa/issue/9396

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2023-06-16 15:19:10 -04:00
..
2010-12-20 17:19:53 -05:00
2022-03-11 13:37:08 -05:00
2022-03-11 13:37:08 -05:00
2023-01-10 08:30:58 +01:00
2022-03-11 13:37:08 -05:00
2022-06-09 08:35:15 +02:00
2019-10-21 18:01:32 +11:00
2022-09-29 14:23:44 +02:00
2019-03-28 00:21:00 +01:00
2022-03-11 13:37:08 -05:00
2020-03-31 09:21:37 +03:00
2023-06-01 08:20:37 +02:00
2020-09-23 14:49:15 +02:00
2018-01-09 07:53:28 +01:00
2022-03-11 13:37:08 -05:00
2023-01-10 08:30:58 +01:00
2023-01-10 08:30:58 +01:00