Skip to content

Commit

Permalink
adjusted sed match to account for lack of -U flag when using kerberos…
Browse files Browse the repository at this point in the history
… auth
  • Loading branch information
bkelly16 committed Jun 2, 2022
1 parent 2e795a6 commit f8ce77f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/smb/files/net-realmd-wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ get_realmd_wrapper_style () {
USE_UPDATED_WRAPPER="$(get_realmd_wrapper_style)"
if [ $USE_UPDATED_WRAPPER -eq 1 ]; then
echo "net-realmd-wrapper -> Using realmd (version >= 0.16.3-25) style substitution (new)"
ARGS=$(echo $TMPARGS | sed -E 's/(--configfile|-s)[[:space:]]([^ ]+[[:space:]])(-U[[:space:]][^ ]+).*(-k[[:space:]])?(ads.*$)/\5 --configfile \/etc\/samba\/smb.conf.tmp \3 --use-kerberos=required/g')
ARGS=$(echo $TMPARGS | sed -E 's/(--configfile|-s)[[:space:]]([^ ]+[[:space:]])(-U[[:space:]][^ ]+)?.*(-k[[:space:]])?(ads.*$)/\5 --configfile \/etc\/samba\/smb.conf.tmp \3 --use-kerberos=required/g')
echo "net-realmd-wrapper substitution -> /usr/bin/net $ARGS"
BASH_COMMAND=("/usr/bin/net $ARGS")
echo "net-realmd-wrapper bash command -> $BASH_COMMAND"
Expand Down

0 comments on commit f8ce77f

Please sign in to comment.