08fbaa516fbb5f0fb34d8be65fa30d1dedc2a295
I've introduced AD_JOIN_optimized.sh, a new script for joining Linux systems (RHEL/CentOS/Oracle Linux) to Active Directory. Key features of AD_JOIN_optimized.sh: - Accepts command-line arguments for domain, OU, admin user, and security groups (SSH access, sudoers) with defaults. - Robust OS detection using /etc/os-release. - Comprehensive error handling (set -e, -u, -o pipefail). - Pre-join AD connectivity check using 'realm discover'. - Modular design with functions for readability and maintainability. - Idempotent SSSD configuration for 'override_homedir'. - Backs up the sudoers file before modification. - Provides informative output and a detailed summary. - Includes a --help option for usage instructions. The script AD_JOIN.sh remains for reference, but AD_JOIN_optimized.sh is recommended for new use.
Active_Directory_Linux
Scripts to Authenticate Users using AD in Linux Servers To Do-- Need to check with RHEL 8 and 9
Description
Languages
Shell
100%