From 9834988c0db4d14e3a6c7ea0f82cbf8f77f45a2f Mon Sep 17 00:00:00 2001 From: Alex Brett Date: Thu, 5 May 2016 12:38:43 +0100 Subject: [PATCH] Handle joining an OU with a space in the name Previously attempting to join an OU with a space in the name would fail as the createcomputer= string wouldn't be passed to net ads join as a single parameter. --- templates/configure_active_directory.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/configure_active_directory.erb b/templates/configure_active_directory.erb index 4f9b6e0..07898db 100644 --- a/templates/configure_active_directory.erb +++ b/templates/configure_active_directory.erb @@ -112,7 +112,7 @@ if [ "$action" = "join" ]; then fi logger -st $PROG "Joining AD domain" >&2 - $NET ads $action -U "${winbind_acct}%${password}" ${ou_parameter} \ + $NET ads $action -U "${winbind_acct}%${password}" "${ou_parameter}" \ | grep Joined && success=true || success=false if [ $success = "false" ]; then