From 002950a0415752e6d19a88f1f0f9ef2d7b7e57ef Mon Sep 17 00:00:00 2001 From: jeanGaston Date: Mon, 30 Oct 2023 18:59:01 +0100 Subject: [PATCH] Update ad-join-script.sh --- ad-join-script.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ad-join-script.sh b/ad-join-script.sh index fad871a..5753a95 100644 --- a/ad-join-script.sh +++ b/ad-join-script.sh @@ -1,8 +1,5 @@ #!/bin/bash -# Enable verbose output -set -x - # Prompt the user for the hostname read -p "Enter the hostname for the server: " hostname echo @@ -44,7 +41,7 @@ realm discover $domain_name # Join the domain using the provided information echo "Joining the domain..." -echo $admin_password | realm join -U $admin_user $domain_name --computer-ou=OU=Computers,DC=example,DC=com +echo $admin_password | realm join -U $admin_user $domain_name # Modify the sssd.conf configuration echo "Modifying sssd.conf..."