Part of samba.netcmd.user View In Hierarchy
This command deletes a user account from the Active Directory domain. The username specified on the command is the sAMAccountName.
Once the account is deleted, all permissions and memberships associated with that account are deleted. If a new user account is added with the same name as a previously deleted account name, the new user does not have the previous permissions. The new account user will be assigned a new security identifier (SID) and permissions and memberships will have to be added.
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 against a remote server.
Example1: samba-tool user delete User1 -H ldap://samba.samdom.example.com --username=administrator --password=passw1rd
Example1 shows how to delete a user in the domain against a remote LDAP server. The -H parameter is used to specify the remote target server. The --username= and --password= options are used to pass the username 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 user delete User2
Example2 shows how to delete a user in the domain against the local server. sudo is used so a user may run the command as root.
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 |