Pardus Domain Joiner CLI is a command-line tool for joining a domain, leaving a domain, checking domain status, viewing domain info, and changing the hostname on Pardus systems.
The CLI uses a custom-built library included in the project to handle domain-related tasks.
pardus-domain-joiner-cli <command> [options]
Join a domain using either the sssd or winbind service.
Parameters:
service:sssdorwinbind(which service to use)domain: Domain name (required)user: Username (required)-p --password: Password (optional, if not provided, the program will ask)--ou: Organizational Unit (optional)--workgroup: Workgroup name (optional, only for winbind)--hostname: Computer name (optional, if not provided, the current hostname is used)
Example Usage:
sudo pardus-domain-joiner-cli join sssd example.com adminThe program will prompt for a password.
Leave a joined domain.
Parameters:
user: Username (required)-p --password: Password (optional, program will ask if not provided)
Example Usage:
sudo pardus-domain-joiner-cli leave adminThe program will prompt for a password.
Check the connection status of the domain.
Example Usage:
sudo pardus-domain-joiner-cli statusDisplays discovery information for the specified domain.
Parameters:
domain: Domain name (required)
Example Usage:
sudo pardus-domain-joiner-cli info example.comChange the hostname of the computer.
Parameters:
hostname: New hostname (required)
Example Usage:
sudo pardus-domain-joiner-cli change newhostnameDisplay the version of the CLI.
Example Usage:
pardus-domain-joiner-cli version- If the password is not provided in the command line, the program will ask securely at runtime.
- Commands must be run with
rootprivileges. - The
workgroupparameter is only used with thewinbindservice.