The Ubuntu AD Wizard script follows a structured workflow designed to guide users through the process of integrating an Ubuntu system into an Active Directory environment. Here's an overview of its step-by-step approach:
Displays a welcome banner and checks for root privileges. Verifies Ubuntu version compatibility. Confirms network connectivity and synchronizes system time.
Checks for required packages and installs any missing dependencies.
Prompts for domain address and validates the input. Checks DNS resolution for the domain. Optionally configures custom DNS settings.
Configures firewall rules to allow necessary communication. Prompts for admin credentials for domain join. Configures Kerberos settings. Ensures SSSD directory exists and is properly set up.
Attempts to join the domain using the provided information. Handles potential errors and provides troubleshooting guidance if join fails.
Configures SSSD for domain integration. Sets up automatic home directory creation for domain users. Installs and configures GPO support packages. Updates system authentication settings (NSSwitch). Optionally configures sudo access for domain users.
Tests domain user lookup to ensure proper integration. Offers advanced troubleshooting if issues are encountered.
Provides a summary of actions taken and important information. Recommends system reboot and offers to perform it. Conducts final checks on service status and configuration.
Maintains a log of all actions for future reference. Performs necessary cleanup operations.