Bug 9846 - Better error message when trying to add members to not existend group
Better error message when trying to add members to not existend group
Status: NEW
Product: Samba 4.0
Classification: Unclassified
Component: Tools
4.0.5
x64 Linux
: P5 trivial
: ---
Assigned To: Andrew Bartlett
Samba QA Contact
:
Depends on:
Blocks: 11924
  Show dependency treegraph
 
Reported: 2013-05-02 10:44 UTC by Marc Muehlfeld
Modified: 2016-06-07 16:13 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Muehlfeld 2013-05-02 10:44:27 UTC
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)