It should be evaluated, if the availablility of libsss-sudo is checked before the setup is executed. At least for some linux distributions this lib seams to miss for newer installations (e.g. Linux Mint 21 or PopOS).
References:
https://ask.linuxmuster.net/t/pop-os-als-linuxclient/9295/26
https://ask.linuxmuster.net/t/linux-mint-client/9290/15