From f8ce77f886cc83238a51ceede7a33fac9f74d0c1 Mon Sep 17 00:00:00 2001 From: bkelly16 Date: Thu, 2 Jun 2022 15:21:21 -0300 Subject: [PATCH] adjusted sed match to account for lack of -U flag when using kerberos auth --- roles/smb/files/net-realmd-wrapper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/smb/files/net-realmd-wrapper b/roles/smb/files/net-realmd-wrapper index 40ba76e..5caf0ba 100644 --- a/roles/smb/files/net-realmd-wrapper +++ b/roles/smb/files/net-realmd-wrapper @@ -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"