GSOC cockpit samba ad dc: Difference between revisions
Line 1: | Line 1: | ||
= Cockpit Samba AD DC Plugin Documentation = |
= Cockpit Samba AD DC Plugin Documentation = |
||
= What is Cockpit? = |
= What is Cockpit? = |
||
⚫ | |||
To work with the plugin, you need to have Cockpit installed. |
|||
⚫ | |||
Cockpit helps you manage your Linux servers using a user interface that runs in a browser. It also lets developers develop their own plugins using an API cockpit provides for interacting with the server. This project sought to incorporate tasks done using the samba-tool command line utility for Samba AD DC in an intuitive UI for easier usage and administration. |
Cockpit helps you manage your Linux servers using a user interface that runs in a browser. It also lets developers develop their own plugins using an API cockpit provides for interacting with the server. This project sought to incorporate tasks done using the samba-tool command line utility for Samba AD DC in an intuitive UI for easier usage and administration. |
||
= Installation = |
= Installation = |
Revision as of 14:33, 27 August 2020
Cockpit Samba AD DC Plugin Documentation
What is Cockpit?
According to Cockpit’s documentation, it’s an "easy-to-use, integrated, glanceable, and open web-based interface for your servers" (https://cockpit-project.org/).
Cockpit helps you manage your Linux servers using a user interface that runs in a browser. It also lets developers develop their own plugins using an API cockpit provides for interacting with the server. This project sought to incorporate tasks done using the samba-tool command line utility for Samba AD DC in an intuitive UI for easier usage and administration.
Installation
Fedora 32 Installation
Prerequisite: Cockpit
1. Download the repository https://download.opensuse.org/repositories/home:/Hezekiah/Fedora_32/home:Hezekiah.repo
2. Place it to /etc/yum.repos.d/
3. Run the following command
# dnf install cockpit-samba-ad-dc
4. If you already have Cockpit on your server, point your web browser to: https://ip-address-of-machine:9090
5. Use your system user account and password to log in.
Ubuntu 20.04 Installation
Prerequisite: Cockpit
1. Update the apt package index and install packages to allow apt to use a repository over HTTPS:
$ sudo apt update $ sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
2. Add Cockpit-Samba-AD-DC GPG key:
$ curl -fsSL https://download.opensuse.org/repositories/home:/Hezekiah/xUbuntu_20.04/Release.key | sudo apt-key add -
3. Add the repository to the sources.list file
$ sudo add-apt-repository "deb https://download.opensuse.org/repositories/home:/Hezekiah/xUbuntu_20.04 ./"
4. Update the apt package index, and download the latest version of Cockpit-Samba-AD-DC plugin.
$ sudo apt-get update $ sudo apt-get install cockpit-samba-ad-dc
5. If you already have Cockpit on your server, point your web browser to: https://ip-address-of-machine:9090
6. Use your system user account and password to log in.
Debian 10 Installation
Prerequisite: Cockpit
1. Update the apt package index and install packages to allow apt to use a repository over HTTPS:
$ sudo apt update $ sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
2. Add Cockpit-Samba-AD-DC GPG key:
$ curl -fsSL https://download.opensuse.org/repositories/home:/Hezekiah/Debian_10/Release.key | sudo apt-key add -
3. Add the repository to the sources.list file
$ sudo add-apt-repository "deb https://download.opensuse.org/repositories/home:/Hezekiah/Debian_10 ./"
4. Update the apt package index, and download the latest version of Cockpit-Samba-AD-DC plugin.
$ sudo apt-get update $ sudo apt-get install cockpit-samba-ad-dc
5. If you already have Cockpit on your server, point your web browser to: https://ip-address-of-machine:9090
6. Use your system user account and password to log in
Using the Plugin
Provisioning an AD DC Domain
The plugin first checks the Samba configuration file (smb.conf) to make sure that the server is set as an Active Directory Domain Controller (AD DC). If the server is not, the user is prompted to setup one.
Once provisioned, a page with a list of actions you can perform with the plugin appears.
Computer Management
Using the plugin you can:
• Create a computer
• Delete a computer
• Display a Computer Active Directory object
• List all computers
• Move a computer to an organizational unit/container.
Contact Management
• Creating a Contact
• Deleting a Contact
• Listing all Contacts
• Showing a Contact
Delegation Management
Use the plugin to:
• Add a service principal as msDS-AllowedToDelegateTo
• Delete a service principal as msDS-AllowedToDelegateTo
• Show the delegation setting of an account
• Set/unset UF_TRUSTED_FOR_DELEGATION for an account
• Set/unset UF_TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION (S4U2Proxy) for an account
DNS Management
• Creating a DNS record
• Deleting a DNS record
• Cleanup DNS records
• Query for server information
• Creating zones
• Deleting zones
• Showing zone information
Domain Management
Using the plugin, you can:
• Promote an existing domain member or NT4 PDC to an AD DC
• Get basic info about a domain
• Demote a Domain Controller
• Join domain as either member or backup domain controller
• Upgrade from Samba classic (NT4-like) database to Samba AD DC database
• Create a domain or forest trust
• Delete a domain trust
• List domain trusts
• Show trusted domain details
• Validate a domain trust
• Manage forest trust namespaces
• Copy a running DC's current DB into a backup tar file
• Backup the local domain directories safely into a tar file
• Copy a running DC's DB to backup file, renaming the domain in the process
• Restore the domain's DB from a backup-file
Forest Management
• Show
• DSHeuristics
FSMO Management
• Seize Roles
• Show Roles
• Transfer Roles
Group Policy Object (GPO) Management
• Create an empty GPO
• Deleting a GPO
• Backing up a GPO
• Delete GPO link from a container
• Downloading a GPO
• Get inheritance flag for a container
• List GPO Links for a container
• List GPOs for an account
• List all GPOs
• List all linked containers for a GPO
• Restore a GPO to a new container
• Set inheritance flag on a container
• Add or update a GPO link to a container
• Show information for a GPO
Group Management
• Create a new AD group
• Delete an AD group
• List all groups
• List all members of an AD group
• Move a group to an organizational unit/container
• Remove members from an AD group
• Display a group AD object
Organization Unit (OU) Management
• Create an organizational unit
• Delete an organizational unit
• List all organizational units
• List all objects in an organizational unit
• Move an organizational unit
• Rename an organizational unit
Sites Management
Use the plugin to:
• Create a new site
• Delete an existing site
• Create a new subnet
• Delete an existing subnet
• Assign a subnet to a site
SPN Management
With the plugin, you can:
• Create a new spn
• Delete a spn
• List spns of a given user
User Management
Using the plugin you can:
• Create a new user
• Delete a user
• Disable a user
• Enable a user
• List all users
• Move a user to an organizational unit/container
• Change password for a user account
• Set or reset the password of a user account
• Set the expiration of a user account
• Display a user AD object
Server Time
DS ACLs manipulation
Using the plugin, you can:
• Get access list on a directory object
• Modify access list on a directory object
NT ACLs manipulation
Use the plugin to:
• Change the domain SID for ACLs
• Get ACLs of a file
• Get DOS info of a file from xattr
• Set ACLs on a file
• Check sysvol ACLs match defaults
• Reset sysvol ACLs to defaults