Skip to content

Commit

Permalink
Handle joining an OU with a space in the name
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alexbrett committed May 5, 2016
1 parent eb97a2b commit 9834988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/configure_active_directory.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9834988

Please sign in to comment.