If the key contains spaces, the shell qouting through "testit" does
not work properly. Avoid having to fix that quoting by replacing
spaces with '\20'.
You can force it by setting the
my $samsid = "S-1-5-21-1-32-" . int(rand(
4294967295));
in selftest/target/Samba3.pm.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Mon Jun 8 14:49:01 UTC 2026 on atb-devel-224
echo " key='${k}' (length=${#k})"
done
-key=$(echo "$ndr_keys" | head -1)
+key=$(echo "$ndr_keys" | head -1 | sed 's/ /\\20/g')
echo "DEBUG: Using key='${key}' (length=${#key})"
if [ -n "$key" ]; then