Part of samba.netcmd.group View In Hierarchy
The command deletes an existing AD group from the Active Directory domain. The groupname specified on the command is the sAMAccountName.
Deleting a group is a permanent operation. When a group is deleted, all permissions and rights that users in the group had inherited from the group account are deleted as well.
The command may be run from the root userid or another authorized userid. The -H or --URL option can be used to execute the command on a remote server.
Example1: samba-tool group delete Group1 -H ldap://samba.samdom.example.com -Uadministrator%passw0rd
Example1 shows how to delete an AD group from a remote LDAP server. The -U parameter is used to pass the userid and password of a user that exists on the remote server and is authorized to issue the command on that server.
Example2: sudo samba-tool group delete Group2
Example2 deletes group Group2 from the local server. The command is run under root using the sudo command.
Method | run | Run the command. This should be overriden by all subclasses. |
Inherited from Command:
Method | __init__ | Undocumented |
Method | usage | Undocumented |
Method | show_command_error | display a command error |
Method | message | Undocumented |
Method | get_logger | Get a logger object. |
Method | _get_short_description | Undocumented |
Method | _get_full_description | Undocumented |
Method | _get_name | Undocumented |
Method | _create_parser | Undocumented |
Method | _run | Undocumented |