Manual joining and configuration - PierreGode/Linux-Active-Directory-join-script GitHub Wiki

Realm commands

realm, command, arguments example: realm join ad.example.com realm permit user_name

Command Description

Realm Commands

Discover Run a discovery scan for domains on the network.

Join Add the system to the specified domain.

Leave Remove the system from the specified domain.

List List all configured domains for the system or all discovered and configured domains.

LoginCommands

Permit Enable access for specified users or for all users within a configured domain to access the local system.

Deny Restrict access for specified users or for all users within a configured domain to access the local system.

Discover

$ realm discover $ realm discover domain.example.com

Join

$ realm join domain.example.com $ realm join --user=admin --computer-ou=OU=Special domain.example.com

Leave

$ realm leave $ realm leave domain.example.com

List

$ realm list

Permit

$ realm permit --all $ realm permit [email protected] $ realm permit DOMAIN\User2 $ realm permit --withdraw [email protected]

Deny

$ realm deny --all $ realm deny -R : Specify the name of the realm to deny users login to.

Users

$ id user@domain_name $ id user : depending of the sssd setup

Service

$ service sssd restart

SSSD.conf

SSSD.conf configurations example

nsswitch.conf

nsswitch.conf configurations example

⚠️ **GitHub.com Fallback** ⚠️