794b2c3 User and groups: rename with --setattr must check format

2 files Authored by frenaud a year ago, Committed by rcritten a year ago,
    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>
    
        
file modified
+11 -0
file modified
+10 -0