# rhsameera/linux_ad_join architecture

> Architecture diagram of the GitHub repository rhsameera/linux_ad_join, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rhsameera/linux_ad_join
- Repository: https://github.com/rhsameera/linux_ad_join

## Overview

This repository documents a single Linux domain-join script. An administrator runs it on a RHEL-family host; it discovers and installs prerequisites, prompts for domain credentials, joins Active Directory, and configures SSH access and AD-user settings. The graph separates these documented stages and the SSH-key configuration. Only the README was provided as evidence, so relationships describe its stated workflow rather than inspected script calls.

Main entry points: [`RHEL_JOIN.sh`](https://github.com/rhsameera/linux_ad_join/blob/main/RHEL_JOIN.sh) (Join script)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Host setup"]
  node_script["Join script<br/>[RHEL_JOIN.sh]"]
  node_os["OS detection<br/>[RHEL_JOIN.sh]"]
  node_discovery["Realm discovery<br/>[RHEL_JOIN.sh]"]
  node_packages["Package installation<br/>[RHEL_JOIN.sh]"]
end

subgraph group_domain["Domain integration"]
  node_credentials["Credential prompt<br/>[RHEL_JOIN.sh]"]
  node_join["Domain join<br/>[RHEL_JOIN.sh]"]
  node_ad[("Active Directory")]
end

subgraph group_access["User access"]
  node_sshallow["SSH group access<br/>[RHEL_JOIN.sh]"]
  node_sssd["SSSD user settings<br/>[RHEL_JOIN.sh]"]
  node_keyattribute[("AD SSH keys")]
  node_keylookup["SSH key lookup<br/>[RHEL_JOIN.sh]"]
end

node_admin(("Administrator"))

node_admin -->|"runs"| node_script
node_script -->|"detects"| node_os
node_script -->|"discovers packages"| node_discovery
node_script -->|"installs packages"| node_packages
node_script -->|"prompts credentials"| node_credentials
node_script -->|"joins domain"| node_join
node_join -->|"creates membership"| node_ad
node_script -->|"configures SSH access"| node_sshallow
node_script -->|"configures user settings"| node_sssd
node_script -->|"configures key lookup"| node_keylookup
node_keylookup -->|"reads SSH keys"| node_keyattribute

click node_script "https://github.com/rhsameera/linux_ad_join/blob/main/RHEL_JOIN.sh"
click node_os "https://github.com/rhsameera/linux_ad_join/blob/main/RHEL_JOIN.sh"
click node_discovery "https://github.com/rhsameera/linux_ad_join/blob/main/RHEL_JOIN.sh"
click node_packages "https://github.com/rhsameera/linux_ad_join/blob/main/RHEL_JOIN.sh"
click node_credentials "https://github.com/rhsameera/linux_ad_join/blob/main/RHEL_JOIN.sh"
click node_join "https://github.com/rhsameera/linux_ad_join/blob/main/RHEL_JOIN.sh"
click node_sshallow "https://github.com/rhsameera/linux_ad_join/blob/main/RHEL_JOIN.sh"
click node_sssd "https://github.com/rhsameera/linux_ad_join/blob/main/RHEL_JOIN.sh"
click node_keylookup "https://github.com/rhsameera/linux_ad_join/blob/main/RHEL_JOIN.sh"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_script,node_os,node_discovery,node_packages toneBlue
class node_credentials,node_join,node_ad toneAmber
class node_sshallow,node_sssd,node_keyattribute,node_keylookup toneMint
class node_admin toneIndigo
```

## Components

### Host setup

- [Join script](https://github.com/rhsameera/linux_ad_join/blob/main/RHEL_JOIN.sh): `RHEL_JOIN.sh`
- [OS detection](https://github.com/rhsameera/linux_ad_join/blob/main/RHEL_JOIN.sh): `RHEL_JOIN.sh`
- [Realm discovery](https://github.com/rhsameera/linux_ad_join/blob/main/RHEL_JOIN.sh): `RHEL_JOIN.sh`
- [Package installation](https://github.com/rhsameera/linux_ad_join/blob/main/RHEL_JOIN.sh): `RHEL_JOIN.sh`

### Domain integration

- [Credential prompt](https://github.com/rhsameera/linux_ad_join/blob/main/RHEL_JOIN.sh): `RHEL_JOIN.sh`
- [Domain join](https://github.com/rhsameera/linux_ad_join/blob/main/RHEL_JOIN.sh): `RHEL_JOIN.sh`
- **Active Directory**

### User access

- [SSH group access](https://github.com/rhsameera/linux_ad_join/blob/main/RHEL_JOIN.sh): `RHEL_JOIN.sh`
- [SSSD user settings](https://github.com/rhsameera/linux_ad_join/blob/main/RHEL_JOIN.sh): `RHEL_JOIN.sh`
- **AD SSH keys**
- [SSH key lookup](https://github.com/rhsameera/linux_ad_join/blob/main/RHEL_JOIN.sh): `RHEL_JOIN.sh`

### Other components

- **Administrator**

## Connections

- Administrator → Join script: runs (evidence: `README.md`)
- Join script → OS detection: detects (evidence: `README.md`)
- Join script → Realm discovery: discovers packages (evidence: `README.md`)
- Join script → Package installation: installs packages (evidence: `README.md`)
- Join script → Credential prompt: prompts credentials (evidence: `README.md`)
- Join script → Domain join: joins domain (evidence: `README.md`)
- Domain join → Active Directory: creates membership (evidence: `README.md`)
- Join script → SSH group access: configures SSH access (evidence: `README.md`)
- Join script → SSSD user settings: configures user settings (evidence: `README.md`)
- Join script → SSH key lookup: configures key lookup (evidence: `README.md`)
- SSH key lookup → AD SSH keys: reads SSH keys (evidence: `README.md`)
