Commit Graph

4 Commits

Author SHA1 Message Date
Sameera Hewage 08fbaa516f Add optimized AD join script and initial README (#1)
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.
2025-07-19 21:02:33 +05:30
Sameera Hewage e56753e540 Readme To Do Added 2022-07-25 06:31:02 +05:30
Rhsameera 2c14a327f3 Create AD_JOIN.sh 2020-11-10 15:39:13 +05:30
Rhsameera 932b677c9a Initial commit 2020-11-10 15:38:32 +05:30