If I try to add a user to a group that does not exist, only a python exception is shown instead of a neat message. # samba-tool group addmembers "not existend group" muehlfeld ERROR(exception): Failed to add members "muehlfeld" to group "not existend group" - Unable to find group "not existend group" File "/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/group.py", line 211, in run add_members_operation=True) File "/usr/local/samba/lib64/python2.6/site-packages/samba/samdb.py", line 247, in add_remove_group_members raise Exception('Unable to find group "%s"' % groupname)
Now says this: ERROR: Failed to add members ['joe'] to group "not existend group" - Unable to find group "not existend group" which is better. The bug title only asks for better, so we can close this.