Skip to content

Instantly share code, notes, and snippets.

Wearing red hats

Sotirios ⚕ Roussis xtonousou

Wearing red hats
View GitHub Profile
xtonousou / gist:1d1311bbe2367343dab6b0035b8ad72e
Created Apr 12, 2020
Add Centos 7, 8 Machine into AD Domain. Integrate SSH authentication with Active Directory, manage sudoers via Active Directory, automatic group id mapping and sanitization. Automatic PTR record and DNS computer name. NETBIOS 15 characters max!
View gist:1d1311bbe2367343dab6b0035b8ad72e
#! /usr/bin/env bash
# Author: Sotirios Roussis -
# Description: Configure Linux machine, add it to domain, configure SSH authentication via Active Directory
# Enter: sudo -i for root without auth if you add the domain user to domain group "sudoers" in AD/SOME_DIRECTORY or in any other child group of "sudoers"
# Version: 1.1.7
# Currently tested on CentOS 7, 8
xtonousou /
Created Jul 22, 2017
Keybase verification

Keybase proof

I hereby claim:

  • I am xtonousou on github.
  • I am xtonousou ( on keybase.
  • I have a public key ASCRuD5sqq5ouUhWGpGLdfGAWxlrg5oJ32bnjGER96ZWKAo

To claim this, I am signing this object: